Page 1 of 1
Setting up ImageMagick on xCode 4.3.3 tutorial
Posted: 2012-07-11T06:16:37-07:00
by julius
Hello.
I installed ImageMagick through MacPorts. Installation was successful, but what to do now? How to set up it on xCode to work? I haven't found any info about it. Maby somebody knows good tutorial? Or maby someone can explain it to me step by step?
Thanks in advance
Re: Setting up ImageMagick on xCode 4.3.3 tutorial
Posted: 2012-07-11T23:13:27-07:00
by julius
Ok, so I tried to guess what I should do, so I added to my xCode project build settings
/opt/local/include/ImageMagick to
Header Search Paths, and
/opt/local/lib to
Library Search Paths. But whats next? I include .h file to my code with
#include <Magick++.h>, but then there comes 3 errors:
1st .
Code: Select all
Include.h
Unknown type name 'namespace'
at
namespace MagickCore
2nd.
Code: Select all
Include.h
Expected ';' after top level declarator
at
namespace MagickCore
3rd.
at
#include <string>
Is it only for me so difficult to use ImageMagick?
Re: Setting up ImageMagick on xCode 4.3.3 tutorial
Posted: 2012-07-12T00:38:21-07:00
by julius
Solved that. Now I'm having issues with linking
ImageMagick libraries. At xCode's project's
Library Search Path this:
, but it doesn't find's needed libraries. When I'm trying to build it I get these errors:
Code: Select all
Undefined symbols for architecture x86_64:
"Magick::Image::Image(std::string const&)", referenced from:
-[oglView imageMagick] in oglView.o
"Magick::Image::~Image()", referenced from:
-[oglView imageMagick] in oglView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)