Page 1 of 1
Compiling Errors with ImageMagick
Posted: 2009-04-28T04:05:59-07:00
by lee.reichardt
Hi There,
I don't know if this is right place but there is not any other place I can see to put this topic.
So I have been using ImageMagick on a Shared Server and thought it was bought time to upgrade to a DV where I need to install ImageMagick myself and therein lies the problem
I do everything the tutorial says but I use wget to get the .tar.gz file.. I unzip, I ./configure and I make...
The problem lies with Make...
When I do that it goes through and starts to make it but when it gets to
"coders/png.c: In function 'WriteOnePNGImage':" I start to get a bunch or errors, that if you want to put up here I can, and then it stops with
Code: Select all
make[1]: *** [coders/coders_png_la-png.lo] Error 1
make[1]: Leaving directory `/usr/share/ImageMagick-6.5.1-8'
make: *** [install] Error 2
I have no idea what I am doing wrong or anything like that.
if you could shed some light it would be much appreciated.
Re: Compiling Errors with ImageMagick
Posted: 2009-04-28T05:59:20-07:00
by magick
Please post the first 10 or so compile errors you are receiving with the png.c source module so we can determine why its failing to compile. If you don't need PNG support you can build ImageMagick by configuring with the --without-png command line option.
Re: Compiling Errors with ImageMagick
Posted: 2009-04-28T14:15:54-07:00
by lee.reichardt
Hi,
I very much need png support... here are the lines
Code: Select all
coders/png.c:6569: error: 'MngInfo' has no member named 'color_type'
coders/png.c:6570: error: 'MngInfo' has no member named 'color_type'
coders/png.c:6233: warning: unused variable 'rowbytes'
coders/png.c:6232: warning: unused variable 'quality'
coders/png.c:6213: warning: unused variable 'quantum_info'
coders/png.c:6210: warning: unused variable 'status'
coders/png.c:6195: warning: unused variable 'pass'
coders/png.c:6194: warning: unused variable 'num_passes'
coders/png.c:6189: warning: unused variable 'profile'
coders/png.c:6186: warning: unused variable 'value'
coders/png.c:6185: warning: unused variable 'property'
coders/png.c:6184: warning: unused variable 'name'
coders/png.c:6181: warning: unused variable 's'
coders/png.c: At top level:
Re: Compiling Errors with ImageMagick
Posted: 2009-04-28T16:40:02-07:00
by magick
Grab ImageMagick 6.5.1-9. Its has a patch for the problem you reported.
Re: Compiling Errors with ImageMagick
Posted: 2009-04-28T21:57:14-07:00
by lee.reichardt
Hi there,
I got the new version and I got these errors
Code: Select all
Magick.xs:212: warning: missing initializer
Magick.xs:212: warning: (near initialization for 'Methods[8].arguments')
Magick.xs:216: warning: missing initializer
Magick.xs:216: warning: (near initialization for 'Methods[11].arguments')
Magick.xs:217: warning: missing initializer
Magick.xs:217: warning: (near initialization for 'Methods[12].arguments')
Magick.xs:218: warning: missing initializer
Magick.xs:218: warning: (near initialization for 'Methods[13].arguments')
Magick.xs:225: warning: missing initializer
Magick.xs:225: warning: (near initialization for 'Methods[16].arguments')
Magick.xs:227: warning: missing initializer
Magick.xs:227: warning: (near initialization for 'Methods[18].arguments')
Magick.xs:318: warning: missing initializer
Magick.xs:318: warning: (near initialization for 'Methods[45].arguments')
Magick.xs:334: warning: missing initializer
Magick.xs:334: warning: (near initialization for 'Methods[50].arguments')
Magick.xs:337: warning: missing initializer
Magick.xs:337: warning: (near initialization for 'Methods[52].arguments')
Magick.xs:353: warning: missing initializer
Magick.xs:353: warning: (near initialization for 'Methods[61].arguments')
Magick.xs:357: warning: missing initializer
Magick.xs:357: warning: (near initialization for 'Methods[64].arguments')
Magick.xs:402: warning: missing initializer
Magick.xs:402: warning: (near initialization for 'Methods[83].arguments')
Magick.xs:429: warning: missing initializer
Magick.xs:429: warning: (near initialization for 'Methods[95].arguments')
Magick.xs:430: warning: missing initializer
Magick.xs:430: warning: (near initialization for 'Methods[96].arguments')
Magick.xs:434: warning: missing initializer
Magick.xs:434: warning: (near initialization for 'Methods[98].arguments')
Magick.xs:435: warning: missing initializer
Magick.xs:435: warning: (near initialization for 'Methods[99].arguments')
Magick.xs:436: warning: missing initializer
Magick.xs:436: warning: (near initialization for 'Methods[100].arguments')
Magick.xs:443: warning: missing initializer
Magick.xs:443: warning: (near initialization for 'Methods[103].arguments')
Magick.c: In function 'XS_Image__Magick_AcquireImagePixels':
Magick.c:2295: warning: unused variable 'ref'
Magick.c:2291: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Animate':
...+more
I haven't "make install" it yet just in case these are some sort of issues I need to sort out....
Just above these lines it came up with
make[2]: Entering directory `/usr/share/ImageMagick-6.5.1-9/PerlMagick'
So I guess its something to do with the perl part.
Can I still install this with these errors???
It did finish with
Code: Select all
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
gcc -L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib -lfreetype Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
-L/usr/share/ImageMagick-6.5.1-9/PerlMagick/../magick/.libs -lMagickCore -L/usr/share/ImageMagick-6.5.1-9/PerlMagick/../wand/.libs -lMagickWand -lm \
chmod 755 blib/arch/auto/Image/Magick/Magick.so
cp Magick.bs blib/arch/auto/Image/Magick/Magick.bs
chmod 644 blib/arch/auto/Image/Magick/Magick.bs
Manifying blib/man3/Image::Magick.3pm
make[2]: Leaving directory `/usr/share/ImageMagick-6.5.1-9/PerlMagick'
make[1]: Leaving directory `/usr/share/ImageMagick-6.5.1-9'
Re: Compiling Errors with ImageMagick
Posted: 2009-04-29T04:51:03-07:00
by magick
What you have are warnings, not errors. You should be able to install without any problems.
Re: Compiling Errors with ImageMagick
Posted: 2009-04-29T06:02:58-07:00
by lee.reichardt
All working now!
Thank you! and thats for the speedy reply! Better then some forums I have posted in..
Re: Compiling Errors with ImageMagick
Posted: 2009-04-29T16:12:34-07:00
by lee.reichardt
Hi Magick
i am having some issue using it now...
i am trying to do a simple color replace but I am getting an error 127
What does this error mean?
Thanks
Re: Compiling Errors with ImageMagick
Posted: 2009-05-03T03:38:28-07:00
by lee.reichardt
Hello?
Can someone PLEASE tell me what this error 127 is? I can't seem to find anything about error codes...
Thank you
Re: Compiling Errors with ImageMagick
Posted: 2009-05-04T05:07:39-07:00
by lee.reichardt
Don't worry... Got it working now.
It was a php safe_mode/looking in the wrong directory for convert error... So in reality, user error
Thanks anyway