[magick-users] Magick-users Digest, Vol 77, Issue 20
Shyam Burkule
shyam.burkule at gmail.com
Thu Jun 25 02:22:21 PDT 2009
Thanks All,
I am able to compile program on Ubuntu using GCC. I am trying to compile
same program on Windows XP using Visual Studio.But again facing similar
errors,
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__DestroyMagickImageCompare.obj : error LNK2001: unresolved external
symbol __imp__DestroyExceptionInfo
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__DestroyImageInfo
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__DestroyImageList
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__IsImageSimilar
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__CropImage
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__CatchException
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__ReadImage
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__CloneImageInfo
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__AcquireExceptionInfo
ImageCompare.obj : error LNK2001: unresolved external symbol
__imp__InitializeMagick
Do I need to specify same compiler options? How ?
Thanks
Shyam
On Sat, Jun 20, 2009 at 12:30 AM, <magick-users-request at imagemagick.org>wrote:
> Send Magick-users mailing list submissions to
> magick-users at imagemagick.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://studio.imagemagick.org/mailman/listinfo/magick-users
> or, via email, send a message with subject or body 'help' to
> magick-users-request at imagemagick.org
>
> You can reach the person managing the list at
> magick-users-owner at imagemagick.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Magick-users digest..."
>
>
> Today's Topics:
>
> 1. Image Magick (Shyam Burkule)
> 2. Re: Image Magick (Preben)
> 3. Re: Image Magick (Dodger)
> 4. Re: Image Magick (duc.sequere.aut.de.via.decede at imagemagick.org)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 19 Jun 2009 12:26:59 +0530
> From: Shyam Burkule <shyam.burkule at gmail.com>
> Subject: [magick-users] Image Magick
> To: magick-users at imagemagick.org
> Message-ID:
> <b35b18550906182356l486617f2x9d95d8c64788395b at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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,
>
> shyam at 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
> shyam at 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!
>
>
>
> --
> Peace !
> Shyam.
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 19 Jun 2009 09:30:47 +0200
> From: Preben <64bit at mailme.dk>
> Subject: Re: [magick-users] Image Magick
> To: magick-users at imagemagick.org
> Message-ID: <4A3B3EA7.7050904 at mailme.dk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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,
> >
> > shyam at 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
> > shyam at 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!
> >
> >
> >
> >
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 19 Jun 2009 00:53:38 -0700
> From: Dodger <el.dodgero at gmail.com>
> Subject: Re: [magick-users] Image Magick
> To: Preben <64bit at mailme.dk>
> Cc: "magick-users at imagemagick.org" <magick-users at imagemagick.org>
> Message-ID: <39BAA598-84CF-4120-B913-4925FB937C27 at gmail.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed;
> delsp=yes
>
> 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 <64bit at mailme.dk> 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,
> >>
> >> shyam at 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
> >> shyam at 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
> > Magick-users at imagemagick.org
> > http://studio.imagemagick.org/mailman/listinfo/magick-users
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 19 Jun 2009 06:13:50 -0700
> From: duc.sequere.aut.de.via.decede at imagemagick.org
> Subject: Re: [magick-users] Image Magick
> To: magick-users at imagemagick.org, shyam.burkule at gmail.com
> Message-ID: <200906191313.n5JDDo4M011579 at studio.imagemagick.org>
>
> > What am I missing here.
>
> When all else fails, read the manual :-). Try this
>
> cc `MagickCore-config --cflags --cppflags` -std=c99 -o LocateSubImage
> LocateSubImage.c `MagickCore-config --ldflags --libs`
>
>
> ------------------------------
>
> _______________________________________________
> Magick-users mailing list
> Magick-users at imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
>
> End of Magick-users Digest, Vol 77, Issue 20
> ********************************************
>
--
Peace !
Shyam.
More information about the Magick-users
mailing list