[Xquartz-dev] PNG issue with 2.6.0 final (snow leopard)
Dave Ray
apple at jonive.com
Sun Feb 20 20:06:44 PST 2011
I've been using 2.6.0_final (snow leopard) for a few weeks now without problems. Some of my apps use libpng, and there were no problems with the libs in /opt/X11/lib.
I was building some new apps today that use png, against the headers in XQuartz. First time trying this with 2.6.0. gcc was throwing png-related errors. I had no png packages installed besides those from Apple and XQuartz.
All my paths are all set to /usr/local first, then /opt/X11, then /usr/X11 last. So I'm pretty sure the ones from XQuartz were the ones being used.
I compiled libpng1.5.1 and installed into /usr/local. I pruned out all the png files from /opt/X11 (except libs in /opt/X11/lib). All gcc errors went away.
I don't think the problem is the libpng version number, since 1.5.1 is working. I think there was something wrong with the include headers or something. Perhaps the libpng version in XQuartz 2.6.0 was an early version of 1.5 with bugs.
-Dave
More information about the Xquartz-dev
mailing list