If you can avoid it, you don't. You grab a binary from a reputable  
source, I.e. Rpm, apt, fink, macports, or the win32 binary. Compiling  
imagemagick is usually a bitch and a half and then you realise you  
left something common like gif out.

Sent from my iPhone

On Jun 19, 2009, at 0:30, Preben <[email protected]> wrote:

> How do you compile the code? Do you have a command line you can show
> us?. You probably forgot to include the libraries.
>
>
> Best regards
>
> Preben
>
> Shyam Burkule skrev:
>> Hi,
>>   I am Shyam, newbie to ImageMagick. I am using ImageMagick to locate
>> sub-image within another Image. I read in the link
>> http://studio.imagemagick.org/pipermail/magick-users/2006-July/017938.htmlthat
>> IsImageSimiller() can locate sub-image within another image. I am
>> trying to compile code given in the same link (
>> http://studio.imagemagick.org/pipermail/magick-users/2006-July/017938.html 
>> ).
>> But I am getting following errors,
>>
>> sh...@shyam-desktop:~/Desktop$ gcc LocateSubImage.c -I
>> /usr/src/ImageMagick-6.5.3-8
>> LocateSubImage.c:(.text+0x56): undefined reference to  
>> `InitializeMagick'
>> LocateSubImage.c:(.text+0x5b): undefined reference to  
>> `AcquireExceptionInfo'
>> LocateSubImage.c:(.text+0x6a): undefined reference to  
>> `CloneImageInfo'
>> LocateSubImage.c:(.text+0x9e): undefined reference to `ReadImage'
>> LocateSubImage.c:(.text+0xb5): undefined reference to  
>> `CatchException'
>> LocateSubImage.c:(.text+0xfc): undefined reference to `CropImage'
>> LocateSubImage.c:(.text+0x134): undefined reference to  
>> `IsImageSimilar'
>> LocateSubImage.c:(.text+0x159): undefined reference to  
>> `DestroyImageList'
>> LocateSubImage.c:(.text+0x167): undefined reference to  
>> `DestroyImageInfo'
>> LocateSubImage.c:(.text+0x175): undefined reference to
>> `DestroyExceptionInfo'
>> LocateSubImage.c:(.text+0x17d): undefined reference to  
>> `DestroyMagick'
>> collect2: ld returned 1 exit status
>>
>> I am using ImageMagick version  ImageMagick 6.5.3-8 and gcc version  
>> is 4.3.3
>>
>>
>> What I am missing here ?
>>
>> Listing library at /usr/local/bin shows following
>>   sh...@shyam-desktop:~/Desktop$ ls /usr/local/lib/
>> ImageMagick-6.5.3       libMagick++.so.2.0.0    libpng.so.3.34.0
>> libfreetype.a           libMagickWand.a         libtiff.a
>> libfreetype.la          libMagickWand.la        libtiff.la
>> libfreetype.so          libMagickWand.so        libtiff.so
>> libfreetype.so.6        libMagickWand.so.2      libtiff.so.3
>> libfreetype.so.6.3.18   libMagickWand.so.2.0.0  libtiff.so.3.8.2
>> libMagick++.a           libpng12.a              libtiffxx.a
>> libMagickCore.a         libpng12.la             libtiffxx.la
>> libMagickCore.la        libpng12.so             libtiffxx.so
>> libMagickCore.so        libpng12.so.0           libtiffxx.so.3
>> libMagickCore.so.2      libpng12.so.0.34.0      libtiffxx.so.3.8.2
>> libMagickCore.so.2.0.0  libpng.a                perl
>> libMagick++.la          libpng.la               pkgconfig
>> libMagick++.so          libpng.so               python2.6
>> libMagick++.so.2        libpng.so.3
>>
>> Please help!
>>
>>
>>
>>
>
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to