Build problem hard to solve : zeroradiant and libpng 1.4 (libpng compatibility pb)
I'd like to build Zeroradiant (1.6) but I've got a problem to compile it...
Indeed, Zeroradiant only works with libpng 1.2.X (which is not compatible with libpng 1.4.X ...). Then when I start compiling the sources I got this typical error :
to get that error message ...
I had noticed that /usr/lib/libpng.so and /usr/lib64/libpng.so were
linked to /usr/lib/libpng14.so, so I decided to remove the symbolic link and create one from /usr/lib/libpng.so to /usr/lib/libpng12.so.
But that didn't solve my problem.
To build Zeroradiant I've got to use scons, I tried to "configure scons" so that it choose the right libpng but I found nothing (that's why I used the trick above).
Do you know how I could simply solve it ?
To build Zeroradiant I use theses instructions :
I'm running a Gentoo GNU/Linux.
In order to get rid of this compile problem I decided to edit plugin.cpp :
I changed png_voidp_NULL to (png_voidp)NULL
and png_infopp_NULL to (png_infopp)NULL.
I also changed this function : png_set_gray_1_2_4_to_8 to this one :
png_set_expand_1_2_4_to_8 and it seems to work :-)
It's very very dirty but it's the only way I found :-/
|All times are GMT -5. The time now is 07:00 AM.|