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