Page 1 of 1

CentOS 5.4: linking problem

Posted: 2010-02-09T10:03:45-07:00
by erotavlas_turbo
Hi,

I have written an application that use the library of Image Magick. The application works well in Ubuntu 9.10 but I can't compile it on CentOS 5.4. The error is the following

Code: Select all

cc -pg -shared -Xlinker -x -lMagickWand -o app_conference.so app_conference.o conference.o member.o frame.o cli.o  temp/stream.o libspeex/preprocess.o libspeex/misc.o libspeex/smallft.o
/usr/bin/ld: cannot find -lMagickWand
collect2: ld returned 1 exit status
make: *** [app_conference.so] Error 1
Where is the problem? I'm not expert programmer

Thank

Re: CentOS 5.4: linking problem

Posted: 2010-02-09T11:33:22-07:00
by magick
CentOS 5.4 has an older version of ImageMagick. Either build / install the latest release of ImageMagick or change the library from MagickWand to the older name, Wand (e.g. -lWand). That is why it is always wise to use the Magick-config script. It would have automatically chosen the Wand library under CentOS and the MagickWand library under Ubuntu.

Re: CentOS 5.4: linking problem

Posted: 2010-02-10T09:03:33-07:00
by erotavlas_turbo
Thank you very much :D