internals:windows:libs:libjpeg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
internals:windows:libs:libjpeg [2008/05/27 20:28] pajoyeinternals:windows:libs:libjpeg [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== LipJpegWindows, How to compile ======+====== LipJpeg for Windows, How to compile ====== 
  
 ===== Available prebuilt libraries ===== ===== Available prebuilt libraries =====
  
-All prebuilt libraries are available in the php-libs [[http://pecl2.php.net/downloads/php-windows-builds/php-libs/|repositories]]+All prebuilt libraries are available in the php-libs [[http://windows.php.net/downloads/php-sdk/deps/|repositories]]
  
 The filename format is: The filename format is:
Line 11: Line 12:
 where x.y.z defines the version, vcversion which Visual C++ has been used. where x.y.z defines the version, vcversion which Visual C++ has been used.
  
-===== Building LibJpeg 6b =====+Only static library (.lib) are available for now. 
 + 
 +===== Building libjpeg 8d ===== 
  
  
 ==== Requirements ===== ==== Requirements =====
-  * LibJpeg Sources, fetch our patched (see below) [[http://pecl2.php.net/downloads/php-windows-builds/source/|version]] or the original [[http://www.ijg.org|sources]+  * LibJpeg Sources, fetch our (possibly patched) [[https://github.com/winlibs/libjpeg|version]] or the original [[http://www.ijg.org|sources]
   * Common tools used to compile PHP   * Common tools used to compile PHP
  
 +
 +==== Preparing the sources =====
 +
 +To compile libjpeg to be used with PHP (and more generally with any decent VC), the makefile has to be altered, add the /MT flag as follow (~ line 15):
 +
 +<code makefile>
 +CFLAGS= $(cflags) $(cdebug) $(cvars) -I. /MD
 +</code> 
 +
 +then 
 +
 +
 +<code makefile>
 + copy jconfig.vc jconfig.h
 +</code> 
  
 ==== Configuration ===== ==== Configuration =====
  
-LibPNG can be compiled using various modes. Only the following list can be used with PHP:+Two modes are available, debug or non debug (fully optimized). 
 + 
 + 
 +==== Compilation ===== 
 + 
 +=== Release ==== 
 + 
 +<code bash> 
 +nmake /f makefile.vc nodebug=1 
 +</code> 
 + 
 +=== Debug ==== 
 + 
 +<code bash> 
 +nmake /f makefile.vc 
 +</code> 
 + 
 +For VC11 you might need to copy the win32.mak from the Windows SDK file into the jpeg source dir.
internals/windows/libs/libjpeg.1211920138.txt.gz · Last modified: 2017/09/22 13:28 (external edit)