Page 1 of 1

Problem making

Posted: 2009-06-20T15:56:57-07:00
by fifows
I'm trying to build imagemagick using this tutorial:

http://www.randycullom.com/chatterbox/a ... _imag.html

And it's giving me the following error :

coders/png.c: In function ‘WriteOnePNGImage’:
coders/png.c:6631: error: ‘PNG_COLOR_TYPE_RGBA’ undeclared (first use in this function)
coders/png.c:6631: error: (Each undeclared identifier is reported only once
coders/png.c:6631: error: for each function it appears in.)
make[1]: *** [coders/coders_png_la-png.lo] Error 1
make[1]: Leaving directory `/usr/local/share/ImageMagick-6.5.3'
make: *** [all] Error 2

Any idea of that's going on?

Re: Problem making

Posted: 2009-06-21T05:52:15-07:00
by glennrp
It appears that png.h (from libpng) isn't included.

Re: Problem making

Posted: 2009-06-21T06:33:52-07:00
by fifows
Glenn,

the file you said is in the directory usr/local/src/libpng-1.0.6/

And i've installed with the makefile.linux like this:

cd libpng-1.0.6/scripts
cp makefile.linux ../makefile
cd ..
make
make install

I was wondering how can i uninstall and maybe install the png lib again?

I've tried this "make uninstall" but it gives this:

make: *** No rule to make target `uninstall'. Stop.

Any help is welcome.

[]s