Can you successfully build the supplied demo programs?
Yes, but I think that was my mistake.
I thought I had to run the line c++ `Magick++-config --cxxflags --cppflags` -O2 -o demo demo.cpp \
`Magick++-config --ldflags --libs` and export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig with some demo ...
Search found 3 matches
- 2017-08-17T10:06:15-07:00
- Forum: Magick++
- Topic: [Solved] Struggling to run my first Magick++ program
- Replies: 5
- Views: 29324
- 2017-08-17T08:50:30-07:00
- Forum: Magick++
- Topic: [Solved] Struggling to run my first Magick++ program
- Replies: 5
- Views: 29324
Re: Struggling to run my first Magick++ program
Thanks for the reply.
The compiler command was simply g++ test.cpp
When I tried g++ -I /usr/local/include/ImageMagick-7/ test.cpp I got the following:
In file included from /usr/local/include/ImageMagick-7/Magick++/Include.h:14:0,
from /usr/local/include/ImageMagick-7/Magick++.h:10,
from test ...
The compiler command was simply g++ test.cpp
When I tried g++ -I /usr/local/include/ImageMagick-7/ test.cpp I got the following:
In file included from /usr/local/include/ImageMagick-7/Magick++/Include.h:14:0,
from /usr/local/include/ImageMagick-7/Magick++.h:10,
from test ...
- 2017-08-17T08:40:55-07:00
- Forum: Magick++
- Topic: [Solved] Struggling to run my first Magick++ program
- Replies: 5
- Views: 29324
[Solved] Struggling to run my first Magick++ program
Hi Everyone,
I want to run a simple c++ program that includes the line #inlcude <Magick++> but the compiler throws the error
fatal error: Magick++.h: No such file or directory
compilation terminated.
For installation, I cloned ImageMagick from GitHub to my home directory, and then ran ...
I want to run a simple c++ program that includes the line #inlcude <Magick++> but the compiler throws the error
fatal error: Magick++.h: No such file or directory
compilation terminated.
For installation, I cloned ImageMagick from GitHub to my home directory, and then ran ...