Kyng Chaos
“The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects.”
- the wisdom of Tarzan

JPEG

version: 8b
source: http://www.ijg.org/

parallel: OK

This is a part of my UnixImageIO framework. A script is available to build the framework from sources.

There are many different implementations now, probably due to the original IJG source being a "reference" and not updated since 1998. It looks like the new 8b version came from jpegclub.org. There is also a version maintained by the GDAL author, which includes compile switches to build a 12bit libjpeg alongside the standard 8bit version, and the UnixImageIO framework build uses this. The instructions below are for the new IJG version.

Snow Leopard

in the jpeg source:

export MACOSX_DEPLOYMENT_TARGET=10.6
./configure --disable-dependency-tracking --enable-shared --disable-static \
CFLAGS="-Os -arch i386 -arch x86_64"
make
sudo make install

Leopard

in the jpeg source:

export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --disable-dependency-tracking --enable-shared --disable-static \
CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64"
make
sudo make install

Tiger

in the jpeg source:

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --disable-dependency-tracking --enable-shared --disable-static \
CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
make
sudo make install

Historical

Old Panther notes.

Something you can do if you want - a patch for a certain type of malformed jpeg-in-tiff created by old Wang software, pretty obscure. You can skip this if you like. You need the libtiff source for this patch: in the libtiff source /contrib/ojpeg, copy the contents of jdhuff_add.c and paste it at the end of the jpeg source jdhuff.c. There is nothing to configure here, the rest will be taken care of in libtiff.

$ ./configure --enable-shared --enable-static
$ make
$ sudo make install
macosx/build/libjpeg.txt · Last modified: 2010/07/26 10:42 by kyngchaos
Copyright © 2004-2010 William Kyngesburye Driven by DokuWiki Recent changes RSS feed