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?".
modou
Posts: 2 Joined: 2011-01-26T01:58:42-07:00
Authentication code: 8675308
Post
by modou » 2011-01-26T05:47:52-07:00
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 !
Last edited by
modou on 2011-01-26T07:18:13-07:00, edited 1 time in total.
modou
Posts: 2 Joined: 2011-01-26T01:58:42-07:00
Authentication code: 8675308
Post
by modou » 2011-01-26T07:17:19-07:00
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++/