cannot compile
Posted: 2011-05-26T14:59:22-07:00
i'm trying to add magick++ to my c++ project, i've install it following the steps on (http://www.imagemagick.org/script/binary-releases.php) - i have mac - there is one small bug - after decompress it is in "ImageMagick-6.6.9" folder instead of "ImageMagick-6.7.0" which is in instructions - but thats not the problem.
my code:
my Makefile:
when i compile my project i've got error:
commandline function 'convert' working ok
please help ;-(
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 ;-(