Le mardi 6 ao?t 2002, ? 04:12 , Tim Allen a ?crit :
Have you heard of Fink? (http://fink.sf.net) It’s a Debian-style
packaging system for Mac OS X, and it includes almost all your
favourite Linux utilities, like XFree86, GIMP, and of course libpng,
libjpeg, zlib, and so forth.
Thanks for the tip, but yes, someone already told me about Fink.
Fink is fine, but the problem is that often the packages are not up to
date : just look at the SDL ones…
Anyway, I had no problem to compile and install lipbng, libjpeg and
zlib : as I said, the problem just come after, when I try to make
SDL_image find them.
Out of curiosity, if you compile SDL_image in ProjectBuilder on a clean
(Fink-free) install of OS X, does SDL_image include the ability to read
PNG and JPEG files?
Yes, and despite what was said previously, using the project for
ProjectBuilder that came with SDL_image, you don’t need to change
anything nor download additional libraries, PNG & JPEG support is
present and work fine ( I tried to load a PNG picture with ‘showimage’ ).
To be honest, I didn’t made a lot of tests with ProjectBuilder : I’m
used to “simple” Makefile, where I can see ( and change ) everything,
nothing is “hiden”.
I first made some tests, with pre packaged version, and was disapointed
by the result : an application built by ProjectBuilder using those
pre-packaged frameworks ( devel ones ) was a lot slower than the same
app compiled and linked to SDL via command line ( with a command line
generated SDL )…
That was before I noticed there is a PBProjects.tar.gz file given with
SDL and SDL_image source versions !!!
Reading the doc, I understood why using the pre-packaged framework
version was so slow : I installed devel version, and I guess it was
compiled in debug mode, with no optimisation…
The ProjectBuilder files provided with SDL and SDL_image are really
great !!
They allow to easely build and install those frameworks, as well as to
test if everything run fine.
So, now, I still don’t know how to have png & jpeg support with
SDL_image on the command line shell under Mac OS X ( too much troubles
making the tools find the libraries ), but I don’t care anymore, as the
framework version just rock !

Nice job, guys !–
Daniel Morais