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.2.32
source: libpng.org

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.

Leopard

edit pngconf.h

change the lines:

typedef unsigned long png_uint_32;
typedef long png_int_32;

to:

typedef unsigned int png_uint_32;
typedef int png_int_32;

configure & make

In the libpng source:

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

Tiger

No need for pngconf.h patch.

In the libpng source:

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --disable-static --without-libpng-compat --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 --without-libpng-compat --disable-dependency-tracking CFLAGS=-Os
make
sudo make install
macosx/build/libpng.txt (1131 views) · Last modified: 2008/10/18 13:56 by kyngchaos
Copyright © 2004-2009 William Kyngesburye Driven by DokuWiki Recent changes RSS feed