Page 1 of 1

[solved]problem with Magick++-config

Posted: 2011-01-26T05:47:52-07:00
by modou
Hi,
I'm a new user of api magick++, but when a try to compile a simple file with this command

Code: Select all

g++ -O2 -o main main.cpp 'Magick++-config --cflags --cppflags --ldflags --libs'
,
i get this error :

Code: Select all

g++: Magick++-config --cflags --cppflags --ldflags --libs : No file or directory of this type
.
And strangly I can obtain this result:

Code: Select all

[mdia@olympe rotateTiff]$ Magick++-config --cflags --cppflags --ldflags --libs
-I/usr/local/include -fopenmp
-I/usr/local/include/ImageMagick
-L/usr/local/lib 
-L/usr/local/lib -lMagick++ -lMagickWand -lMagickCore -ltiff -lfreetype -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lz -lm -lgomp -lpthread

Thank you for you help !

Re: problem with Magick++-config

Posted: 2011-01-26T07:17:19-07:00
by modou
It work!

i used this command :

Code: Select all

g++ -lMagick++ -O2 -o main main.cpp
But, i think that there's a problem in the documentation at this page http://www.imagemagick.org/Magick++/ :(