Building matplotlib 0.99.1.2 with freetype2 2.3.12 and libpng 1.4.1 on Snow Leopard

Trying to build matplotlib as given in the subject:

matplotlib 0.99.1.2
with:
freetype 2.3.12 (installed by standard procedure)
libpng 1.4.1 (installed by standard procedure)
on:
Mac OS X 10.6 (Snow Leopard) with Xcode 3.2.1 installed

fails according to

http://stackoverflow.com/questions/2442335/libpng-boostgil-png-infopp-null-not-found

because there seems to be some not-backward compatible API change from
libpng 1.2 => 1.4. The error I get is the same as reported under this
URL. The log is attached as setup-build.log.

Also I attach setup-config.log which shows only configuration result
and the modified setupext.py, modified such that freetype2 and libpng
are found on my darwin Mac OS X 10.6. The changes are marked by my
name Friedrich.

I think I can fix this as given under the URL above and a workaround
would probably be to revert to libpng 1.2 but I think this isn't the
perfect solution either ...

I also noticed that the buildbot is failing currently, is this normal behaviour?

I found no such issue on the list, I'm reading since Feb 22 and libpng
1.4 was released Feb 25 according to
http://www.libpng.org/pub/png/src/libpng-1.4.1-README.txt .

Friedrich

setup-build.log (7.52 KB)

setup-config.log (1.75 KB)

setupext.py (46.4 KB)

Ok adding:

#define png_infopp_NULL (png_infopp)NULL
#define int_p_NULL (int*)NULL

to the beginning of src/_png.cpp fixes the problem. At least now the
build succedes. Maybe this could be enclosed in an #ifndef-#endif
branch?

Friedrich

2010/5/5 Friedrich Romstedt <friedrichromstedt@...287...>:

ยทยทยท

Trying to build matplotlib as given in the subject:

matplotlib 0.99.1.2
with:
freetype 2.3.12 (installed by standard procedure)
libpng 1.4.1 (installed by standard procedure)
on:
Mac OS X 10.6 (Snow Leopard) with Xcode 3.2.1 installed

fails according to

macos - LibPNG + Boost::GIL: png_infopp_NULL not found - Stack Overflow

because there seems to be some not-backward compatible API change from
libpng 1.2 => 1.4. The error I get is the same as reported under this
URL. The log is attached as setup-build.log.

Also I attach setup-config.log which shows only configuration result
and the modified setupext.py, modified such that freetype2 and libpng
are found on my darwin Mac OS X 10.6. The changes are marked by my
name Friedrich.

I think I can fix this as given under the URL above and a workaround
would probably be to revert to libpng 1.2 but I think this isn't the
perfect solution either ...

I also noticed that the buildbot is failing currently, is this normal behaviour?

I found no such issue on the list, I'm reading since Feb 22 and libpng
1.4 was released Feb 25 according to
http://www.libpng.org/pub/png/src/libpng-1.4.1-README.txt .

Friedrich