/usr/bin/ld: cannot find -lMagick++6-Q16

喜欢而已 提交于 2019-12-11 12:25:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!