Click here to get back home

Image::Magick newbie

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Image::Magick newbie Ananth Chellappa 09-05-2005
Posted by Ananth Chellappa on September 5, 2005, 10:19 pm
Please log in for more thread options


Hi,
Hopefully, this will be easy for someone else:

perl Makefile.PL LIB=xx PREFIX=xx
went off okay.

but..

Magick.xs was throwing up a lot of errors with "make" until I did this

added

MAGICK_HOME = /home/magnolia/ananth/tools/ImageMagick-6.2.4
and
-I$(MAGICK_HOME)/include to th INC list
in the Makefile

with that done, "make" finished reporting a lot of warnings from Magick.c
like:
....
Magick.c:7625: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFont':
Magick.c:7700: warning: unused variable `ref'
Magick.c:7695: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFontMetrics':
Magick.c:7815: warning: unused variable `ref'
Magick.c:7810: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryMultilineFontMetrics':
Magick.c:8173: warning: unused variable `ref'
...

then, when I do "make test" every test fails. I get errors like :

PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/jng/*.t
t/jpeg/*.t t/mpeg/*.t t/png/*.t t/ps/*.t t/tiff/*.t t/ttf/*.t t/x/*.t
t/xfig/*.t t/zlib/*.t
t/blob............Can't load
'/home/magnolia/ananth/LEARN/perl/images/PerlMagick-6.20/blib/arch/auto/Imag
e/Magick/Magick.so'
for module Image::Magick: ld.so.1: /usr/local/bin/perl: fatal:
relocation error: file
/home/magnolia/ananth/LEARN/perl/images/PerlMagick-6.20/blib/arch/auto/Image
/Magick/Magick.so:
symbol AcquireMagickMemory: referenced symbol not found at
/usr/local/lib/perl5/5.8.3/sun4-solaris/DynaLoader.pm line 229.
at t/blob.t line 7
Compilation failed in require at t/blob.t line 7.
BEGIN failed--compilation aborted at t/blob.t line 7.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay

Any help you could give me, I'd really appreciate.

Thanks,
Ananth

PS: tee = t and dot = . in email addr.




Posted by Sisyphus on September 6, 2005, 6:12 pm
Please log in for more thread options




>
> with that done, "make" finished reporting a lot of warnings from Magick.c
> like:
> ...
> Magick.c:7625: warning: unused variable `ix'
> Magick.c: In function `XS_Image__Magick_QueryFont':
> Magick.c:7700: warning: unused variable `ref'
> Magick.c:7695: warning: unused variable `ix'
> Magick.c: In function `XS_Image__Magick_QueryFontMetrics':
> Magick.c:7815: warning: unused variable `ref'
> Magick.c:7810: warning: unused variable `ix'
> Magick.c: In function `XS_Image__Magick_QueryMultilineFontMetrics':
> Magick.c:8173: warning: unused variable `ref'
> ..

I don't think there's anything to worry about in those warnings - they're
just telling you that a variable has been declared, and then not used -
which won't really matter at all.
.
>
> then, when I do "make test" every test fails. I get errors like :
>
> PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/jng/*.t
> t/jpeg/*.t t/mpeg/*.t t/png/*.t t/ps/*.t t/tiff/*.t t/ttf/*.t t/x/*.t
> t/xfig/*.t t/zlib/*.t
> t/blob............Can't load
>
'/home/magnolia/ananth/LEARN/perl/images/PerlMagick-6.20/blib/arch/auto/Imag
> e/Magick/Magick.so'
> for module Image::Magick: ld.so.1: /usr/local/bin/perl: fatal:
> relocation error: file
>
/home/magnolia/ananth/LEARN/perl/images/PerlMagick-6.20/blib/arch/auto/Image
> /Magick/Magick.so:
> symbol AcquireMagickMemory: referenced symbol not found at
> /usr/local/lib/perl5/5.8.3/sun4-solaris/DynaLoader.pm line 229.
> at t/blob.t line 7
> Compilation failed in require at t/blob.t line 7.
> BEGIN failed--compilation aborted at t/blob.t line 7.
> dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED test 1
> Failed 1/1 tests, 0.00% okay
>
> Any help you could give me, I'd really appreciate.
>

When perl "Can't load" one of its shared objects (Magick.so, in this
instance), it's usually because of a problem with another shared object upon
which the perl shared object (Magick.so) depends. Perhaps an ImageMagick
shared object is not being found, or there's a problem with the permissions
of an ImageMagick shared object. Or it could be that there's a mismatch
between the versions of PerlMagick and ImageMagick - though I would expect
such a mismatch would have been uncovered at an earlier stage in the build
process. (Check the PerlMagick Readme anyway.) And there are no doubt other
possibilities as well.

Couldn't find much when googling for "AcquireMagickMemory" (which is the
specific ImageMagick function that seems to be throwing a spanner in the
works), but check out:

http://studio.imagemagick.org/magick/viewtopic.php?t=2746&sid=e0c3869aa5adffaf74143274efdc31ab

http://www.codecomments.com/message240287.html

I know it's not much to go on, but I hope there's something there that
helps.

Cheers,
Rob




Similar ThreadsPosted
image magick through apt-get November 27, 2004, 5:48 pm
Image magick palette July 30, 2004, 9:16 pm
Image Magick code help November 29, 2004, 12:14 pm
Image Magick code help December 3, 2004, 6:43 pm
Errror in mod Image::magick or something else? October 29, 2005, 4:53 am
ANNOUNCE: Image::Magick::Tiler V 1.00 February 22, 2005, 11:35 am
ANNOUNCE: Image::Magick::Chart V 1.01 June 13, 2005, 3:36 am
Image::Magick scalar value to print use CGI April 13, 2006, 10:09 pm
Problems Installing Image::Magick September 26, 2006, 3:35 pm
Reduce colors with Image::Magick July 6, 2007, 7:06 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap