*******************************************************************************
-** Building on Unix Platforms
+** Building on Unix Platforms (including Cygwin)
*******************************************************************************
======================
The following procedure will build libjpeg-turbo on Linux, FreeBSD, 32-bit
-OS X, and Solaris/x86 systems (on Solaris, this generates a 32-bit library.
-See below for 64-bit build instructions.)
+OS X, Cygwin, and Solaris/x86 systems (on Solaris, this generates a 32-bit
+library. See below for 64-bit build instructions.)
cd {source_directory}
autoreconf -fiv
libjpeg.so.{version} (Linux, Solaris)
libjpeg.{version}.dylib (OS X)
+ cygjpeg-{version}.dll (Cygwin)
Shared library for libjpeg-turbo
libjpeg.so (Linux, Solaris)
libjpeg.dylib (OS X)
+ libjpeg.dll.a (Cygwin)
Development stub for libjpeg-turbo shared library
libturbojpeg.a
libturbojpeg.dylib (OS X)
Shared library and development stub for TurboJPEG/OSS
+ cygturbojpeg.dll (Cygwin)
+ Shared library for TurboJPEG/OSS
+
+ libturbojpeg.dll.a (Cygwin)
+ Development stub for TurboJPEG/OSS shared library
+
{version} is 62.0.0, 7.0.0, or 8.0.2, depending on whether libjpeg v6b
-(default), v7, or v8b emulation is enabled.
+(default), v7, or v8b emulation is enabled. If using Cygwin, {version} is
+62, 7, or 8.
+
+
+libjpeg v7 or v8b Emulation
+---------------------------
+
+Add --with-jpeg7 to the configure command line to build a version of
+libjpeg-turbo that is compatible with libjpeg v7. Add --with-jpeg8 to the
+configure command to build a version of libjpeg-turbo that is compatible with
+libjpeg v8b. See README-turbo.txt for more information on libjpeg v7 and v8b
+emulation.
+
========================
to the configure command line.
+MinGW Build on Cygwin
+---------------------
+
+Use CMake (see recipes below)
+
+
+
*******************************************************************************
-** Building on Windows (Visual C++, MinGW, or Cygwin)
+** Building on Windows (Visual C++ or MinGW)
*******************************************************************************
... OR ...
--- MinGW or Cygwin
+-- MinGW
GCC v4.1 or later recommended for best performance
v8b emulation is enabled.
-Cygwin
-------
-
- cd {build_directory}
- cmake -G "Unix Makefiles" {source_directory}
- make
-
-This will generate the following files under {build_directory}
-
- libjpeg.a
- Static link library for libjpeg-turbo
- sharedlib/cygjpeg-{version}.dll
- DLL for libjpeg-turbo
- sharedlib/libjpeg.dll.a
- Import library for libjpeg-turbo DLL
- libturbojpeg.a
- Static link library for TurboJPEG/OSS
- cygturbojpeg.dll
- DLL for TurboJPEG/OSS
- libturbojpeg.dll.a
- Import library for TurboJPEG/OSS DLL
-
-{version} is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
-v8b emulation is enabled.
-
-
Debug Build
-----------
Add "-DWITH_JPEG7=1" to the cmake command line to build a version of
libjpeg-turbo that is compatible with libjpeg v7. Add "-DWITH_JPEG8=1" to the
cmake command to build a version of libjpeg-turbo that is compatible with
-libjpeg v8. See README-turbo.txt for more information on libjpeg v7 and v8b
+libjpeg v8b. See README-turbo.txt for more information on libjpeg v7 and v8b
emulation.
For example,
- cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release \
+ cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=c:\libjpeg-turbo {source_directory}
nmake install
cd {build_directory}
CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ \
- cmake -G"Unix Makefiles" -DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar \
+ cmake -G "Unix Makefiles" -DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar \
-DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib {source_directory}
make
cd {build_directory}
CC=/usr/bin/i686-w64-mingw32-gcc CXX=/usr/bin/i686-w64-mingw32-g++ \
- cmake -G"Unix Makefiles" -DCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \
+ cmake -G "Unix Makefiles" -DCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \
-DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib {source_directory}
make
cd {build_directory}
CC={mingw-w64_binary_path}/x86_64-w64-mingw32-gcc \
CXX={mingw-w64_binary_path}/x86_64-w64-mingw32-g++ \
- cmake -G"MSYS Makefiles" \
+ cmake -G "MSYS Makefiles" \
-DCMAKE_AR={mingw-w64_binary_path}/x86_64-w64-mingw32-ar \
-DCMAKE_RANLIB={mingw-w64_binary_path}/x86_64-w64-mingw32-ranlib \
{source_directory}
cd {build_directory}
CC={mingw_binary_path}/i386-mingw32-gcc \
CXX={mingw_binary_path}/i386-mingw32-g++ \
- cmake -G"Unix Makefiles" -DCMAKE_AR={mingw_binary_path}/i386-mingw32-ar \
+ cmake -G "Unix Makefiles" -DCMAKE_AR={mingw_binary_path}/i386-mingw32-ar \
-DCMAKE_RANLIB={mingw_binary_path}/i386-mingw32-ranlib \
-DCMAKE_SYSTEM_NAME=Windows {source_directory}
make
fork can be made backward compatible as well by using the instructions in
the "Build Recipes" section. OS X 10.4 compatibility SDK required.
+make cygwinpkg
+
+ Build a Cygwin binary package.
+
Windows
-------
cd {build_directory}
nmake installer
-If using MinGW or Cygwin:
+If using MinGW:
cd {build_directory}
make installer