Setting up Magick++
Posted: 2007-10-30T02:32:14-07:00
Hi,
I'm trying to get my first Magick++ code to compile and work. It just loads an image, and then prints an 'ok' message .
I finally got it to compile using the following line:
Now when i run ./main, i get the following error message:
edit: I thought I was posting in the 'Users' board, sorry about that...
I'm trying to get my first Magick++ code to compile and work. It just loads an image, and then prints an 'ok' message .
I finally got it to compile using the following line:
which I find quite obscure (any hints on how to use exactly Magick++-config ?)g++ -o main main.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`
Now when i run ./main, i get the following error message:
although i do have the file:./main: error while loading shared libraries: libMagick++.so.10: cannot open shared object file: No such file or directory
Any ideas why it won't find it?$ locate libMagick++.so.10
/home/inca/software/ImageMagick-6.3.2/Magick++/lib/.libs/libMagick++.so.10
/home/inca/software/ImageMagick-6.3.2/Magick++/lib/.libs/libMagick++.so.10.0.7
/home/inca/software/ImageMagick-6.3.2/Magick++/lib/.libs/libMagick++.so.10.0.7T
/usr/local/lib/libMagick++.so.10
/usr/local/lib/libMagick++.so.10.0.7
$ whereis libMagick++.so.10
libMagick++.so: /usr/local/lib/libMagick++.so /usr/local/lib/libMagick++.so.10
edit: I thought I was posting in the 'Users' board, sorry about that...