Page 1 of 1

Can not finf lWand

Posted: 2012-03-11T23:54:59-07:00
by gurkirt
Hi

I am tring to compile a program which require imagemagick. I have installed imagemagick 6.6.2 .
Compile command line looks like this

g++ -L/usr/kerberos/lib -L../Resources/libraries/matio-1.3.3/src/.libs -o"Detector" ./src/MyBlob.o ./src/Frame.o ./src/Detector.o ./src/FetchedData.o ./src/ForegroundDetector.o ./src/Frames.o -lX11 -lmatio -lm -lz -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lMagick++ -lWand -lpthread -lMagick

I keep on getting "/usr/bin/ld: cannot find -lWand"

Any clue?

Thanks in advance for your replies.
Gurkirt

Re: Can not finf lWand

Posted: 2012-03-13T00:20:45-07:00
by anthony
that should be -lMagickWand and -lMagickCore

the name after the -l option generally refers to /usr/lib/lib.....so
For example -lMagickWand => /usr/lib/libMagickWand.so

However compile time -L path and -R path as well as LD_LIBRARY_PATH (compile and run time) is used to locate the library directories to look for the lib??? file.