Page 1 of 1

Compile not working

Posted: 2019-05-20T09:49:34-07:00
by jonotrain
I had been using the same command line for compiling and it was working fine, but now all of a sudden I get the following error:
-bash: Magick++-config: command not found

The compile line I am using is as follows:

g++ -std=c++11 -I /usr/include/ -I /curlcpp/include -L /usr/lib -L /curlcpp/src `Magick++-config --cxxflags --cppflags` -O2 -o test test.cpp -lgmp -lcgicc `Magick++-config --ldflags --libs` -lcurlcpp -lcurl

Please let me know if you have any advice about how to fix this. Thank you!

Re: Compile not working

Posted: 2019-05-20T10:01:44-07:00
by fmw42
What version and platform? There was a recent issue with IM 6.9.10.45 and 7.0.8.45 that was fixed in ...46 version.

See
viewtopic.php?f=3&t=36024
viewtopic.php?f=3&t=36033

Re: Compile not working

Posted: 2019-05-20T10:21:34-07:00
by snibgo
jonotrain wrote:... but now all of a sudden I get the following error:
What has changed? A new version of IM? A new computer?

Re: Compile not working

Posted: 2019-05-31T13:30:24-07:00
by jonotrain
I'm using OSX 10.10.5 - it's hard for me to check my imagemagick version because all of my bash magick commands are not working - but the dylib I have installed is libMagick++-6.Q16.8.dylib.

It's hard to say what caused it, but one thing I did recently is install mysql using homebrew, and I noticed that that changed my bash paths.

Re: Compile not working

Posted: 2019-05-31T13:46:12-07:00
by jonotrain
I'll add also that I have executables that call on the Magick++ libraries which are still working, but when I try to compile code it fails

Re: Compile not working

Posted: 2019-05-31T16:19:13-07:00
by fmw42
Does

Code: Select all

convert -version 
in a terminal window work?

How did you install ImageMagick? From Binary, from Homebrew or MacPorts or from source?

Re: Compile not working

Posted: 2019-05-31T16:22:42-07:00
by jonotrain
convert -version returns "-bash: convert: command not found" - and so does everything else I try related to magick.

If I remember correctly it was homebrew - but it might have been MacPorts.

Re: Compile not working

Posted: 2019-05-31T16:26:13-07:00
by fmw42
You might be using IM 7. So try

Code: Select all

magick -version

Re: Compile not working

Posted: 2019-05-31T16:43:34-07:00
by jonotrain
I also get " -bash: magick: command not found" for that

Re: Compile not working

Posted: 2019-05-31T17:28:05-07:00
by fmw42
Well, I think you need to remove it and re-install. But I am not an expert in installation. Homebrew is likely the easiest.