问题
I have installed ImageMagick library (from source) on ubuntu system (12.04):
$: identify -version
Version: ImageMagick 6.8.3-6 2013-03-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: ps
But if I tried to compilate my program:
$: make
g++ -o grayscale grayscale.cpp -I/usr/local/include/ImageMagick-6.8 -I/usr/local/lib `Magick++-config --cppflags --cxxflags --ldflags --libs`
/usr/bin/ld: cannot find -lMagick++6-Q16
/usr/bin/ld: cannot find -lMagick++6-Q16
collect2: ld returned 1 exit status
make: *** [grayscale] Error 1
I've tried looking for some solutions but couldn't fix this. Can you anybody help me? I don't properly understanding what does this error means.
来源:https://stackoverflow.com/questions/15170344/usr-bin-ld-cannot-find-lmagick6-q16