CentOS 5.4: linking problem

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
erotavlas_turbo

CentOS 5.4: linking problem

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CentOS 5.4: linking problem

Post 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.
erotavlas_turbo

Re: CentOS 5.4: linking problem

Post by erotavlas_turbo »

Thank you very much :D
Post Reply