my code:
Code: Select all
#include <Magick++.h>
...
Magick::Image iMg();
iMg.read("aa.gif");
Code: Select all
CC=g++
CFLAGS=-c -Wall ... -m32 -Wall -ansi -pedantic -O3 -Wno-long-long -I /Users/tominko/ImageMagick-6.6.9/include/ImageMagick
LDFLAGS=... -m32 -pthread -L /Users/tominko/ImageMagick-6.6.9/lib -lMagick++ -ljpeg -lpng -ltiff -lbz2 -lxml2 -lz -lm -lgomp -lclparser -lMagickWand -lMagickCore
...
i've tried as well the "Magick++-config ....." option with error:error: request for member ‘read’ in ‘iMg’, which is of non-class type ‘Magick::Image ()()’
if i run "Magick++-config --cppflags --cxxflags --ldflags --libs" there is lots of non-existing directories as well for example "$MAGICK_HOME-10" i have set my $MAGICK_HOME to "/Users/tominko/ImageMagick-6.6.9"error: Magick++.h: No such file or directory
commandline function 'convert' working ok
please help ;-(