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

PNG Build

version: 1.4.3
source: libpng.org

parallel: OK

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


:!: Important note: Security holes in earlier versions of libpng are fixed quickly when found. Please make sure to get the latest version of the source.

Snow Leopard

In the libpng source:

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

Leopard

In the libpng source:

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

Tiger

In the libpng source:

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

Panther

On Panther and for a generic single-arch build.

In the libpng source:

./configure --disable-static --disable-dependency-tracking CFLAGS=-Os
make
sudo make install
macosx/build/libpng.txt · Last modified: 2010/07/26 10:56 by kyngchaos
Copyright © 2004-2010 William Kyngesburye Driven by DokuWiki Recent changes RSS feed