internals:windows:libs:libjpeg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
internals:windows:libs:libjpeg [2008/05/27 20:28] – pajoye | internals:windows:libs:libjpeg [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
===== Available prebuilt libraries ===== | ===== Available prebuilt libraries ===== | ||
- | All prebuilt libraries are available in the php-libs [[http://pecl2.php.net/ | + | All prebuilt libraries are available in the php-libs [[http://windows.php.net/ |
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 | + | Only static library (.lib) are available for now. |
+ | |||
+ | ===== Building | ||
==== Requirements ===== | ==== Requirements ===== | ||
- | * LibJpeg Sources, fetch our patched | + | * LibJpeg Sources, fetch our (possibly |
* 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 | ||
+ | </ | ||
+ | |||
+ | then | ||
+ | |||
+ | |||
+ | <code makefile> | ||
+ | copy jconfig.vc jconfig.h | ||
+ | </ | ||
==== Configuration ===== | ==== Configuration ===== | ||
- | LibPNG can be compiled using various | + | Two modes are available, debug or non debug (fully optimized). |
+ | |||
+ | |||
+ | ==== Compilation ===== | ||
+ | |||
+ | === Release ==== | ||
+ | |||
+ | <code bash> | ||
+ | nmake /f makefile.vc nodebug=1 | ||
+ | </ | ||
+ | |||
+ | === Debug ==== | ||
+ | |||
+ | <code bash> | ||
+ | nmake /f makefile.vc | ||
+ | </ | ||
+ | |||
+ | For VC11 you might need to copy the win32.mak from the Windows SDK file into the jpeg source dir. |
internals/windows/libs/libjpeg.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1