internals:windows:libs:libjpeg
no way to compare when less than two revisions

Differences

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


Previous revision
Next revision
internals:windows:libs:libjpeg [2012/09/21 11:58] – [Building LibJpeg 6b] ab
Line 1: Line 1:
 +====== LipJpeg for Windows, How to compile ======
 +
 +
 +===== Available prebuilt libraries =====
 +
 +All prebuilt libraries are available in the php-libs [[http://pecl2.php.net/downloads/php-windows-builds/php-libs/|repositories]]
 +
 +The filename format is:
 +
 +libjpeg-x.y.z-vcversion.zip
 +
 +where x.y.z defines the version, vcversion which Visual C++ has been used.
 +
 +Only static library (.lib) are available for now.
 +
 +===== Building libjpeg 8d =====
 +
 +
 +
 +==== 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]
 +  * 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 =====
 +
 +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>
 +
  
internals/windows/libs/libjpeg.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1