[SOLVED] IM-6.8.3-7: Magick++-config possibly wrong

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
yougo
Posts: 7
Joined: 2013-03-07T04:42:24-07:00
Authentication code: 6789

[SOLVED] IM-6.8.3-7: Magick++-config possibly wrong

Post by yougo »

Hello,

I made a local installation o IM.
I set-up the compilations and installation with:

Code: Select all

./configure --prefix=/home/hugof/projects/recommender/ImageMagick-6.8.3-7
However after installation I get:

Code: Select all

/home/hugof/projects/recommender/ImageMagick-6.8.3-7/bin/Magick++-config --cppflags --cxxflags --ldflags --libs --prefix --exec-prefix
-fopenmp -I/usr/include/ImageMagick  
-fopenmp -I/usr/include/ImageMagick  
-lMagick++ -lMagickCore  
-lMagick++ -lMagickCore  
/home/hugof/projects/recommender/ImageMagick-6.8.3-7
/home/hugof/projects/recommender/ImageMagick-6.8.3-7
Should't those first two outputs point to an include directory
within the directory set by --prefix? In this case:

Code: Select all

/home/hugof/projects/recommender/ImageMagick-6.8.3-7/include/ImageMagick 
Also, I may have confused the script by setting the install
into the compile directory, however the error above may still
be indicative of a problem.

TIA.
Last edited by yougo on 2013-03-20T06:17:41-07:00, edited 1 time in total.
yougo
Posts: 7
Joined: 2013-03-07T04:42:24-07:00
Authentication code: 6789

Re: IM-6.8.3-7: Magick-config + Magick++-config possibly wro

Post by yougo »

Hi,

Small note on this. I have redone the installation to a separate directory
entirely. However I still get the same error.

Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: IM-6.8.3-7: Magick-config + Magick++-config possibly wro

Post by magick »

Did you set the PKG_CONFIG_PATH environment variable? Its likely that Magick++-config is picking up the system pkg-config configuration file rather than the one you just generated.
yougo
Posts: 7
Joined: 2013-03-07T04:42:24-07:00
Authentication code: 6789

Re: IM-6.8.3-7: Magick-config + Magick++-config possibly wro

Post by yougo »

Hi,

No I didn't. I was not aware of this.
Works perfectly now.

Thank you.

For anyone else who may come across this post:
PKG_CONFIG_PATH=/home/hugof/projects/recommender/ImageMagick/lib/pkgconfig \
/home/hugof/projects/recommender/ImageMagick/bin/Magick++-config --cppflags --cxxflags --ldflags --libs --prefix --exec-prefix
gives the expected output:
-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/home/hugof/projects/recommender/ImageMagick/include/ImageMagick-6
-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/home/hugof/projects/recommender/ImageMagick/include/ImageMagick-6
-L/home/hugof/projects/recommender/ImageMagick/lib -lMagick++6-Q16 -lm -lMagickCore-6.Q16
-L/home/hugof/projects/recommender/ImageMagick/lib -lMagick++6-Q16 -lm -lMagickCore-6.Q16
/home/hugof/projects/recommender/ImageMagick
/home/hugof/projects/recommender/ImageMagick
Post Reply