1Win32 build instructions 2------------------------- 3 4Tested using MS Visual Studio 2005 (VC8) 5 6NOTE: If using a later version of any library, you need to modify Makefile.PL. 7 8Be sure to run C:\Program Files\Microsoft Visual Studio 8\vc\vcvarsall.bat 9 101. Build libjpeg-turbo 11 12Requires cygwin installed with GNU make. 13 14* Download libjpeg-turbo-1.1.1.tar.gz 15 NOTE: The vc.exe version only contains a DLL not a static library, so it can't be used. 16* Extract to ../libjpeg-turbo-1.1.1 17* Download and install nasm. Make sure it's in the path. 18* Download and install cmake. 19* mkdir build 20* cd build 21* cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release .. 22* nmake 23* Static library will be at jpeg-static.lib 24 252. Build zlib (with x86 ASM) 26 27* Download zlib125.zip, extract to ../zlib (needed for libpng to find it) 28* Run: nmake /f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj" 29 303. Build libpng 31 32* Download png143.zip, extract to ../lpng143 33* Run: nmake /f scripts/makefile.vcwin32 test 34 354. Build giflib, this one is a pain... 36 37* Download giflib-4.1.6.tar.gz, extract to ../giflib-4.1.6 38* Download http://www.azillionmonkeys.com/qed/pstdint.h as C:\Program Files\Microsoft Visual Studio 8\vc\include\stdint.h 39* The old VC project files won't work, to get one that does: 40 * Get the vs2008-1.66.zip file from Leptonica, http://code.google.com/p/leptonica/downloads/list 41 * Extract vs2008/giflib4.1.6.zip and copy giflib.vcproj to giflib-4.1.6/windows 42 * Edit giflib.vcproj and change Version from 9.00 to 8.00 43 * Search/replace "..\..\lib\" to "..\lib\" 44 * Open giflib.vcproj in Visual Studio. 45 * Change to Release and build. 46 475. Build Image::Scale 48 49perl Makefile.PL 50nmake 51nmake test 52