blob: f99babec0f060dcf692b512842813156a9de691e [file] [log] [blame]
DRC68fef832010-02-16 05:29:10 +00001*******************************************************************************
DRC81543312010-10-18 07:23:58 +00002** Building on Unix Platforms (including Cygwin)
DRC68fef832010-02-16 05:29:10 +00003*******************************************************************************
4
DRCcc243742010-10-16 09:22:43 +00005
DRC68fef832010-02-16 05:29:10 +00006==================
7Build Requirements
8==================
9
10-- autoconf 2.56 or later
DRC68fef832010-02-16 05:29:10 +000011-- automake 1.7 or later
DRC68fef832010-02-16 05:29:10 +000012-- libtool 1.4 or later
DRC68fef832010-02-16 05:29:10 +000013
14-- NASM
15 * 0.98 or later is required for a 32-bit build
16 * NASM 2.05 or later is required for a 64-bit build
DRC9026b372011-04-16 13:37:22 +000017 * NASM 2.07 or later is required for a 64-bit build on OS X. This can be
DRC0dedd1a2010-07-02 09:20:12 +000018 obtained from MacPorts (http://www.macports.org/).
DRC68fef832010-02-16 05:29:10 +000019
DRCcc243742010-10-16 09:22:43 +000020 The NASM 2.05 RPMs do not work on older Linux systems, such as Red Hat
21 Enterprise Linux 4. On such systems, you can easily build and install NASM
22 2.05 from the source RPM by executing the following as root:
DRC68fef832010-02-16 05:29:10 +000023
24 ARCH=`uname -m`
25 wget http://www.nasm.us/pub/nasm/releasebuilds/2.05.01/nasm-2.05.01-1.src.rpm
26 rpmbuild --rebuild nasm-2.05.01-1.src.rpm
27 rpm -Uvh /usr/src/redhat/RPMS/$ARCH/nasm-2.05.01-1.$ARCH.rpm
28
DRCc3f4ac02010-02-19 21:51:26 +000029 NOTE: NASM build will fail if texinfo is not installed.
30
DRC8f870c22010-02-24 00:30:00 +000031-- GCC v4.1 or later recommended for best performance
DRC68fef832010-02-16 05:29:10 +000032
DRCcc243742010-10-16 09:22:43 +000033
34==================
35Out-of-Tree Builds
36==================
37
38Binary objects, libraries, and executables are generated in the same directory
39from which configure was executed (the "binary directory"), and this directory
40need not necessarily be the same as the libjpeg-turbo source directory. You
41can create multiple independent binary directories, in which different versions
42of libjpeg-turbo can be built from the same source tree using different
43compilers or settings. In the sections below, {build_directory} refers to the
44binary directory, whereas {source_directory} refers to the libjpeg-turbo source
45directory. For in-tree builds, these directories are the same.
46
47
DRC68fef832010-02-16 05:29:10 +000048======================
49Building libjpeg-turbo
50======================
51
DRC49597872010-05-17 20:47:57 +000052The following procedure will build libjpeg-turbo on Linux, FreeBSD, 32-bit
DRC81543312010-10-18 07:23:58 +000053OS X, Cygwin, and Solaris/x86 systems (on Solaris, this generates a 32-bit
54library. See below for 64-bit build instructions.)
DRC68fef832010-02-16 05:29:10 +000055
DRCcc243742010-10-16 09:22:43 +000056 cd {source_directory}
DRC68fef832010-02-16 05:29:10 +000057 autoreconf -fiv
DRCcc243742010-10-16 09:22:43 +000058 cd {build_directory}
59 sh {source_directory}/configure
DRC68fef832010-02-16 05:29:10 +000060 make
61
DRCcc243742010-10-16 09:22:43 +000062NOTE: Running autoreconf in the source directory is only necessary if building
63libjpeg-turbo from the SVN repository.
DRC68fef832010-02-16 05:29:10 +000064
65This will generate the following files under .libs/
66
67 libjpeg.a
68 Static link library for libjpeg-turbo
69
DRCcc243742010-10-16 09:22:43 +000070 libjpeg.so.{version} (Linux, Solaris)
71 libjpeg.{version}.dylib (OS X)
DRC81543312010-10-18 07:23:58 +000072 cygjpeg-{version}.dll (Cygwin)
DRC68fef832010-02-16 05:29:10 +000073 Shared library for libjpeg-turbo
74
75 libjpeg.so (Linux, Solaris)
76 libjpeg.dylib (OS X)
DRC81543312010-10-18 07:23:58 +000077 libjpeg.dll.a (Cygwin)
DRC68fef832010-02-16 05:29:10 +000078 Development stub for libjpeg-turbo shared library
79
80 libturbojpeg.a
81 Static link library for TurboJPEG/OSS
82
83 libturbojpeg.so (Linux, Solaris)
84 libturbojpeg.dylib (OS X)
85 Shared library and development stub for TurboJPEG/OSS
86
DRC81543312010-10-18 07:23:58 +000087 cygturbojpeg.dll (Cygwin)
88 Shared library for TurboJPEG/OSS
89
90 libturbojpeg.dll.a (Cygwin)
91 Development stub for TurboJPEG/OSS shared library
92
DRCcc243742010-10-16 09:22:43 +000093{version} is 62.0.0, 7.0.0, or 8.0.2, depending on whether libjpeg v6b
DRC81543312010-10-18 07:23:58 +000094(default), v7, or v8b emulation is enabled. If using Cygwin, {version} is
9562, 7, or 8.
96
97
98libjpeg v7 or v8b Emulation
99---------------------------
100
101Add --with-jpeg7 to the configure command line to build a version of
102libjpeg-turbo that is compatible with libjpeg v7. Add --with-jpeg8 to the
103configure command to build a version of libjpeg-turbo that is compatible with
104libjpeg v8b. See README-turbo.txt for more information on libjpeg v7 and v8b
105emulation.
106
DRC68fef832010-02-16 05:29:10 +0000107
DRC68fef832010-02-16 05:29:10 +0000108
109========================
110Installing libjpeg-turbo
111========================
112
113If you intend to install these libraries and the associated header files, then
114replace 'make' in the instructions above with
115
116 make install prefix={base dir} libdir={library directory}
117
118For example,
119
120 make install prefix=/usr/local libdir=/usr/local/lib64
121
122will install the header files in /usr/local/include and the library files in
123/usr/local/lib64. If 'prefix' and 'libdir' are not specified, then the default
124is to install the header files in /opt/libjpeg-turbo/include and the library
125files in /opt/libjpeg-turbo/lib.
126
127NOTE: You can specify a prefix of /usr and a libdir of, for instance,
128/usr/lib64 to overwrite the system's version of libjpeg. If you do this,
129however, then be sure to BACK UP YOUR SYSTEM'S INSTALLATION OF LIBJPEG before
130overwriting it. It is recommended that you instead install libjpeg-turbo into
131a non-system directory and manipulate the LD_LIBRARY_PATH or create sym links
132to force applications to use libjpeg-turbo instead of libjpeg. See
133README-turbo.txt for more information.
134
DRCcc243742010-10-16 09:22:43 +0000135
DRC68fef832010-02-16 05:29:10 +0000136=============
137Build Recipes
138=============
139
DRCcc243742010-10-16 09:22:43 +0000140
DRC68fef832010-02-16 05:29:10 +000014132-bit Library Build on 64-bit Linux
142------------------------------------
143
DRCca5e7d12010-02-17 02:25:06 +0000144Add
DRC68fef832010-02-16 05:29:10 +0000145
DRC8c2b9fa2010-06-04 23:09:00 +0000146 --host i686-pc-linux-gnu CFLAGS='-O3 -m32' CXXFLAGS='-O3 -m32' LDFLAGS=-m32
DRC68fef832010-02-16 05:29:10 +0000147
148to the configure command line.
149
150
DRC9026b372011-04-16 13:37:22 +000015164-bit Library Build on 64-bit OS X
DRC68fef832010-02-16 05:29:10 +0000152-----------------------------------
153
DRCca5e7d12010-02-17 02:25:06 +0000154Add
DRC68fef832010-02-16 05:29:10 +0000155
DRC0dedd1a2010-07-02 09:20:12 +0000156 --host x86_64-apple-darwin NASM=/opt/local/bin/nasm
DRC68fef832010-02-16 05:29:10 +0000157
DRC7bac07b2010-04-10 05:53:35 +0000158to the configure command line. NASM 2.07 or later from MacPorts must be
159installed.
DRC68fef832010-02-16 05:29:10 +0000160
161
DRC9026b372011-04-16 13:37:22 +000016232-bit Library Build on 64-bit OS X
DRC68fef832010-02-16 05:29:10 +0000163-----------------------------------
164
DRCca5e7d12010-02-17 02:25:06 +0000165Add
DRC68fef832010-02-16 05:29:10 +0000166
167 CFLAGS='-O3 -m32' CXXFLAGS='-O3 -m32' LDFLAGS=-m32
168
169to the configure command line.
170
171
DRC9026b372011-04-16 13:37:22 +000017264-bit Backward-Compatible Library Build on 64-bit OS X
DRC68fef832010-02-16 05:29:10 +0000173-------------------------------------------------------
174
DRCca5e7d12010-02-17 02:25:06 +0000175Add
DRC68fef832010-02-16 05:29:10 +0000176
DRC0dedd1a2010-07-02 09:20:12 +0000177 --host x86_64-apple-darwin NASM=/opt/local/bin/nasm \
178 CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \
179 -mmacosx-version-min=10.4 -O3' \
180 CXXFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \
181 -mmacosx-version-min=10.4 -O3' \
182 LDFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \
183 -mmacosx-version-min=10.4'
184
DRC575c3422010-07-08 07:01:20 +0000185to the configure command line. The OS X 10.4 SDK, and NASM 2.07 or later from
186MacPorts, must be installed.
DRC0dedd1a2010-07-02 09:20:12 +0000187
188
DRC9026b372011-04-16 13:37:22 +000018932-bit Backward-Compatible Library Build on OS X
DRC0dedd1a2010-07-02 09:20:12 +0000190------------------------------------------------
191
192Add
193
DRC485cd802010-02-23 23:23:42 +0000194 CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \
195 -mmacosx-version-min=10.4 -O3 -m32' \
196 CXXFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \
197 -mmacosx-version-min=10.4 -O3 -m32' \
DRC68fef832010-02-16 05:29:10 +0000198 LDFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \
199 -mmacosx-version-min=10.4 -m32'
200
201to the configure command line. The OS X 10.4 SDK must be installed.
202
203
20464-bit Library Build on 64-bit Solaris
205--------------------------------------
206
DRCca5e7d12010-02-17 02:25:06 +0000207Add
DRC68fef832010-02-16 05:29:10 +0000208
209 --host x86_64-pc-solaris CFLAGS='-O3 -m64' CXXFLAGS='-O3 -m64' LDFLAGS=-m64
210
211to the configure command line.
212
213
DRC7bac07b2010-04-10 05:53:35 +000021432-bit Library Build on 64-bit FreeBSD
215--------------------------------------
216
217Add
218
219 --host i386-unknown-freebsd CC='gcc -B /usr/lib32' CXX='g++ -B/usr/lib32' \
220 CFLAGS='-O3 -m32' CXXFLAGS='-O3 -m32' LDFLAGS='-B/usr/lib32'
221
222to the configure command line. NASM 2.07 or later from FreeBSD ports must be
223installed.
224
225
DRCca5e7d12010-02-17 02:25:06 +0000226Sun Studio
227----------
228
229Add
230
231 CC=cc CXX=CC
232
233to the configure command line. libjpeg-turbo will automatically be built with
234the maximum optimization level (-xO5) unless you override CFLAGS and CXXFLAGS.
235
236To build a 64-bit version of libjpeg-turbo using Sun Studio, add
237
238 --host x86_64-pc-solaris CC=cc CXX=CC CFLAGS='-xO5 -m64' \
239 CXXFLAGS='-xO5 -m64' LDFLAGS=-m64
240
241to the configure command line.
242
DRC8b014d72010-02-18 13:03:41 +0000243
DRC81543312010-10-18 07:23:58 +0000244MinGW Build on Cygwin
245---------------------
246
247Use CMake (see recipes below)
248
249
250
DRC68fef832010-02-16 05:29:10 +0000251*******************************************************************************
DRC81543312010-10-18 07:23:58 +0000252** Building on Windows (Visual C++ or MinGW)
DRC68fef832010-02-16 05:29:10 +0000253*******************************************************************************
254
DRCcc243742010-10-16 09:22:43 +0000255
DRC68fef832010-02-16 05:29:10 +0000256==================
257Build Requirements
258==================
259
DRCcc243742010-10-16 09:22:43 +0000260-- CMake (http://www.cmake.org) v2.6 or later
DRC68fef832010-02-16 05:29:10 +0000261
DRCcc243742010-10-16 09:22:43 +0000262-- Microsoft Visual C++ 2005 or later
DRC68fef832010-02-16 05:29:10 +0000263
DRCcc243742010-10-16 09:22:43 +0000264 If you don't already have Visual C++, then the easiest way to get it is by
265 installing the Windows SDK:
DRC68fef832010-02-16 05:29:10 +0000266
DRCcc243742010-10-16 09:22:43 +0000267 http://msdn.microsoft.com/en-us/windows/bb980924.aspx
268
269 The Windows SDK includes both 32-bit and 64-bit Visual C++ compilers and
270 everything necessary to build libjpeg-turbo.
271
272 * For 32-bit builds, you can also use Microsoft Visual C++ Express
273 Edition. Visual C++ Express Edition is a free download.
274 * If you intend to build libjpeg-turbo from the command line, then add the
275 appropriate compiler and SDK directories to the INCLUDE, LIB, and PATH
276 environment variables. This is generally accomplished by executing
277 vcvars32.bat or vcvars64.bat and SetEnv.cmd. vcvars32.bat and
278 vcvars64.bat are part of Visual C++ and are located in the same directory
279 as the compiler. SetEnv.cmd is part of the Windows SDK. You can pass
280 optional arguments to SetEnv.cmd to specify a 32-bit or 64-bit build
281 environment.
282
283... OR ...
284
DRC81543312010-10-18 07:23:58 +0000285-- MinGW
DRCcc243742010-10-16 09:22:43 +0000286
287 GCC v4.1 or later recommended for best performance
DRC68fef832010-02-16 05:29:10 +0000288
DRC377add72010-05-17 16:41:12 +0000289-- NASM (http://www.nasm.us/) 0.98 or later (NASM 2.05 or later is required for
290 a 64-bit build)
DRC68fef832010-02-16 05:29:10 +0000291
DRCcc243742010-10-16 09:22:43 +0000292
293==================
294Out-of-Tree Builds
295==================
296
297Binary objects, libraries, and executables are generated in the same directory
298from which cmake was executed (the "binary directory"), and this directory need
299not necessarily be the same as the libjpeg-turbo source directory. You can
300create multiple independent binary directories, in which different versions of
301libjpeg-turbo can be built from the same source tree using different compilers
302or settings. In the sections below, {build_directory} refers to the binary
303directory, whereas {source_directory} refers to the libjpeg-turbo source
304directory. For in-tree builds, these directories are the same.
305
306
DRC68fef832010-02-16 05:29:10 +0000307======================
308Building libjpeg-turbo
309======================
310
DRC68fef832010-02-16 05:29:10 +0000311
DRCcc243742010-10-16 09:22:43 +0000312Visual C++ (Command Line)
313-------------------------
DRC68fef832010-02-16 05:29:10 +0000314
DRCcc243742010-10-16 09:22:43 +0000315 cd {build_directory}
316 cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release {source_directory}
317 nmake
DRC68fef832010-02-16 05:29:10 +0000318
DRCcc243742010-10-16 09:22:43 +0000319This will build either a 32-bit or a 64-bit version of libjpeg-turbo, depending
320on which version of cl.exe is in the PATH.
DRC8b014d72010-02-18 13:03:41 +0000321
DRCcc243742010-10-16 09:22:43 +0000322The following files will be generated under {build_directory}:
323
324 jpeg-static.lib
325 Static link library for libjpeg-turbo
326 sharedlib/jpeg{version}.dll
327 DLL for libjpeg-turbo
328 sharedlib/jpeg.lib
329 Import library for libjpeg-turbo DLL
330 turbojpeg-static.lib
331 Static link library for TurboJPEG/OSS
332 turbojpeg.dll
333 DLL for TurboJPEG/OSS
334 turbojpeg.lib
335 Import library for TurboJPEG/OSS DLL
336
337{version} is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
338v8b emulation is enabled.
339
340
341Visual C++ (IDE)
342----------------
343
344Choose the appropriate CMake generator option for your version of Visual Studio
345(run "cmake" with no arguments for a list of available generators.) For
346instance:
347
348 cd {build_directory}
349 cmake -G "Visual Studio 9 2008" {source_directory}
350
351You can then open ALL_BUILD.vcproj in Visual Studio and build one of the
352configurations in that project ("Debug", "Release", etc.) to generate a full
353build of libjpeg-turbo.
354
355This will generate the following files under {build_directory}:
356
357 {configuration}/jpeg-static.lib
358 Static link library for libjpeg-turbo
359 sharedlib/{configuration}/jpeg{version}.dll
360 DLL for libjpeg-turbo
361 sharedlib/{configuration}/jpeg.lib
362 Import library for libjpeg-turbo DLL
363 {configuration}/turbojpeg-static.lib
364 Static link library for TurboJPEG/OSS
365 {configuration}/turbojpeg.dll
366 DLL for TurboJPEG/OSS
367 {configuration}/turbojpeg.lib
368 Import library for TurboJPEG/OSS DLL
369
370{configuration} is Debug, Release, RelWithDebInfo, or MinSizeRel, depending on
371the configuration you built in the IDE, and {version} is 62, 7, or 8,
372depending on whether libjpeg v6b (default), v7, or v8b emulation is enabled.
373
374
375MinGW
376-----
377
378 cd {build_directory}
379 cmake -G "MSYS Makefiles" {source_directory}
380 make
381
382This will generate the following files under {build_directory}
383
384 libjpeg.a
385 Static link library for libjpeg-turbo
386 sharedlib/libjpeg-{version}.dll
387 DLL for libjpeg-turbo
388 sharedlib/libjpeg.dll.a
389 Import library for libjpeg-turbo DLL
390 libturbojpeg.a
391 Static link library for TurboJPEG/OSS
392 libturbojpeg.dll
393 DLL for TurboJPEG/OSS
394 libturbojpeg.dll.a
395 Import library for TurboJPEG/OSS DLL
396
397{version} is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
398v8b emulation is enabled.
399
400
DRCcc243742010-10-16 09:22:43 +0000401Debug Build
402-----------
403
404Add "-DCMAKE_BUILD_TYPE=Debug" to the cmake command line. Or, if building with
405NMake, remove "-DCMAKE_BUILD_TYPE=Release" (Debug builds are the default with
406NMake.)
407
408
409libjpeg v7 or v8b Emulation
410---------------------------
411
412Add "-DWITH_JPEG7=1" to the cmake command line to build a version of
413libjpeg-turbo that is compatible with libjpeg v7. Add "-DWITH_JPEG8=1" to the
414cmake command to build a version of libjpeg-turbo that is compatible with
DRC81543312010-10-18 07:23:58 +0000415libjpeg v8b. See README-turbo.txt for more information on libjpeg v7 and v8b
DRCcc243742010-10-16 09:22:43 +0000416emulation.
417
418
DRC26658432010-10-16 22:04:29 +0000419========================
420Installing libjpeg-turbo
421========================
422
423You can use the build system to install libjpeg-turbo into a directory of your
424choosing (as opposed to creating an installer.) To do this, add:
425
426 -DCMAKE_INSTALL_PREFIX={install_directory}
427
428to the cmake command line.
429
430For example,
431
DRC81543312010-10-18 07:23:58 +0000432 cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release \
DRC26658432010-10-16 22:04:29 +0000433 -DCMAKE_INSTALL_PREFIX=c:\libjpeg-turbo {source_directory}
434 nmake install
435
436will install the header files in c:\libjpeg-turbo\include, the library files
437in c:\libjpeg-turbo\lib, the DLL's in c:\libjpeg-turbo\bin, and the
438documentation in c:\libjpeg-turbo\doc.
439
440
DRCcc243742010-10-16 09:22:43 +0000441=============
442Build Recipes
443=============
444
445
DRC1c73ce82010-10-16 21:02:54 +000044664-bit MinGW Build on Cygwin
447----------------------------
448
449 cd {build_directory}
450 CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ \
DRC68bf3f22010-10-18 07:56:14 +0000451 cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \
452 -DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar \
DRC1c73ce82010-10-16 21:02:54 +0000453 -DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib {source_directory}
454 make
455
456This produces a 64-bit build of libjpeg-turbo that does not depend on
457cygwin1.dll or other Cygwin DLL's. The mingw64-x86_64-gcc-core and
458mingw64-x86_64-gcc-g++ packages (and their dependencies) must be installed.
459
460
46132-bit MinGW Build on Cygwin
462----------------------------
463
464 cd {build_directory}
465 CC=/usr/bin/i686-w64-mingw32-gcc CXX=/usr/bin/i686-w64-mingw32-g++ \
DRC68bf3f22010-10-18 07:56:14 +0000466 cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \
467 -DDCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \
DRC1c73ce82010-10-16 21:02:54 +0000468 -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib {source_directory}
469 make
470
471This produces a 32-bit build of libjpeg-turbo that does not depend on
472cygwin1.dll or other Cygwin DLL's. The mingw64-i686-gcc-core and
473mingw64-i686-gcc-g++ packages (and their dependencies) must be installed.
474
475
476MinGW-w64 Build on Windows
477--------------------------
478
479This produces a 64-bit build of libjpeg-turbo using the "native" MinGW-w64
480toolchain (which is faster than the Cygwin version):
481
482 cd {build_directory}
483 CC={mingw-w64_binary_path}/x86_64-w64-mingw32-gcc \
484 CXX={mingw-w64_binary_path}/x86_64-w64-mingw32-g++ \
DRC81543312010-10-18 07:23:58 +0000485 cmake -G "MSYS Makefiles" \
DRC1c73ce82010-10-16 21:02:54 +0000486 -DCMAKE_AR={mingw-w64_binary_path}/x86_64-w64-mingw32-ar \
487 -DCMAKE_RANLIB={mingw-w64_binary_path}/x86_64-w64-mingw32-ranlib \
488 {source_directory}
489 make
490
491
DRCcc243742010-10-16 09:22:43 +0000492MinGW Build on Linux
493--------------------
494
495 cd {build_directory}
496 CC={mingw_binary_path}/i386-mingw32-gcc \
497 CXX={mingw_binary_path}/i386-mingw32-g++ \
DRC68bf3f22010-10-18 07:56:14 +0000498 cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \
499 -DCMAKE_AR={mingw_binary_path}/i386-mingw32-ar \
DRCcc243742010-10-16 09:22:43 +0000500 -DCMAKE_RANLIB={mingw_binary_path}/i386-mingw32-ranlib \
DRC68bf3f22010-10-18 07:56:14 +0000501 {source_directory}
DRCcc243742010-10-16 09:22:43 +0000502 make
DRC8b014d72010-02-18 13:03:41 +0000503
DRC68fef832010-02-16 05:29:10 +0000504
505*******************************************************************************
506** Creating Release Packages
507*******************************************************************************
508
509The following commands can be used to create various types of release packages:
510
DRCcc243742010-10-16 09:22:43 +0000511
512Unix
513----
514
DRC68fef832010-02-16 05:29:10 +0000515make rpm
516
DRCcc243742010-10-16 09:22:43 +0000517 Create Red Hat-style binary RPM package. Requires RPM v4 or later.
DRC68fef832010-02-16 05:29:10 +0000518
519make srpm
520
521 This runs 'make dist' to create a pristine source tarball, then creates a
DRCcc243742010-10-16 09:22:43 +0000522 Red Hat-style source RPM package from the tarball. Requires RPM v4 or later.
DRC68fef832010-02-16 05:29:10 +0000523
524make deb
525
526 Create Debian-style binary package. Requires dpkg.
527
528make dmg
529
530 Create Macintosh package/disk image. This requires the PackageMaker
531 application, which must be installed in /Developer/Applications/Utilities.
532
DRC9ef93db2010-10-18 08:24:42 +0000533make udmg [BUILDDIR32={32-bit build directory}]
DRC68fef832010-02-16 05:29:10 +0000534
DRC0dedd1a2010-07-02 09:20:12 +0000535 On 64-bit OS X systems, this creates a version of the Macintosh package and
DRC9ef93db2010-10-18 08:24:42 +0000536 disk image which contains universal i386/x86-64 binaries. You should first
537 configure a 32-bit out-of-tree build of libjpeg-turbo, then configure a
538 64-bit out-of-tree build, then run 'make udmg' from the 64-bit build
539 directory. The build system will look for the 32-bit build under
540 {source_directory}/osxx86 by default, but you can override this by setting
541 the BUILDDIR32 variable on the make command line as shown above.
DRC68fef832010-02-16 05:29:10 +0000542
DRC81543312010-10-18 07:23:58 +0000543make cygwinpkg
544
545 Build a Cygwin binary package.
546
DRC0a1f68e2010-02-24 07:24:26 +0000547
DRCcc243742010-10-16 09:22:43 +0000548Windows
549-------
DRC0a1f68e2010-02-24 07:24:26 +0000550
DRCcc243742010-10-16 09:22:43 +0000551If using NMake:
DRC68fef832010-02-16 05:29:10 +0000552
DRCcc243742010-10-16 09:22:43 +0000553 cd {build_directory}
554 nmake installer
555
DRC81543312010-10-18 07:23:58 +0000556If using MinGW:
DRCcc243742010-10-16 09:22:43 +0000557
558 cd {build_directory}
559 make installer
560
561If using the Visual Studio IDE, build the "installer" project.
562
563The installer package (libjpeg-turbo[-gcc][64].exe) will be located under
564{build_directory}. If building using the Visual Studio IDE, then the installer
565package will be located in a subdirectory with the same name as the
566configuration you built (such as {build_directory}\Debug\ or
567{build_directory}\Release\).
568
569Building a Windows installer requires the Nullsoft Install System
570(http://nsis.sourceforge.net/.) makensis.exe should be in your PATH.