diff options
author | dcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2010-10-16 21:02:54 +0000 |
---|---|---|
committer | dcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2010-10-16 21:02:54 +0000 |
commit | 9e177c8775d5c1fbe26f358a6e1f7702266ddf98 (patch) | |
tree | 8551cbd5fec4d3b61ce3ed1629ed8d5af6d31508 /trunk/BUILDING.txt | |
parent | cb7fb55f6b14e6038a9043f705edd514182ef220 (diff) |
Additional MinGW recipes
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@270 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/BUILDING.txt')
-rw-r--r-- | trunk/BUILDING.txt | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/trunk/BUILDING.txt b/trunk/BUILDING.txt index 9e9a901..3ccdab4 100644 --- a/trunk/BUILDING.txt +++ b/trunk/BUILDING.txt @@ -375,7 +375,7 @@ Cygwin ------ cd {build_directory} - /usr/bin/cmake -G "Unix Makefiles" {source_directory} + cmake -G "Unix Makefiles" {source_directory} make This will generate the following files under {build_directory} @@ -420,6 +420,50 @@ Build Recipes ============= +64-bit MinGW Build on Cygwin +---------------------------- + + 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 \ + -DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib {source_directory} + make + +This produces a 64-bit build of libjpeg-turbo that does not depend on +cygwin1.dll or other Cygwin DLL's. The mingw64-x86_64-gcc-core and +mingw64-x86_64-gcc-g++ packages (and their dependencies) must be installed. + + +32-bit MinGW Build on Cygwin +---------------------------- + + 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 \ + -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib {source_directory} + make + +This produces a 32-bit build of libjpeg-turbo that does not depend on +cygwin1.dll or other Cygwin DLL's. The mingw64-i686-gcc-core and +mingw64-i686-gcc-g++ packages (and their dependencies) must be installed. + + +MinGW-w64 Build on Windows +-------------------------- + +This produces a 64-bit build of libjpeg-turbo using the "native" MinGW-w64 +toolchain (which is faster than the Cygwin version): + + 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" \ + -DCMAKE_AR={mingw-w64_binary_path}/x86_64-w64-mingw32-ar \ + -DCMAKE_RANLIB={mingw-w64_binary_path}/x86_64-w64-mingw32-ranlib \ + {source_directory} + make + + MinGW Build on Linux -------------------- |