DevIL on Mac with PNG support

junio 3, 2010

DevIL is a library to manage many kind of image formats, as jpg, bmp, jpg, tga..
In Mac, can be installed libpng or libpng12 in darwin ports (mac ports) for png format, and then configure DevIL by:

./configure CC=”gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk” CFLAGS=”-I/sw/include -L/sw/lib” LDFLAGS=”-L/sw/lib”

As an alternative, by installing libpng (and libjpg) by this binary file:

http://ethan.tira-thompson.org/Mac_OS_X_Ports.html

and configure DevIL by:
./configure CC=”gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk” CFLAGS=”-I/usr/local/include/libpng -L/local/lib” LDFLAGS=”-L/local/lib”

On both cases, run:
autoreconf -i
before ./configure

and
make
sudo make install

to install

Advertisement

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.