Problem making

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
fifows

Problem making

Post 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?
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Problem making

Post by glennrp »

It appears that png.h (from libpng) isn't included.
fifows

Re: Problem making

Post 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
Post Reply