使用openCV库编译C ++程序

成功安装并构建了openCV库后,我尝试按以下步骤构建C / C ++应用程序:

surinder@surinder-HP-EliteBook-8440p:~/Downloads/cpp_test$ g++ main.cpp -o output `pkg-config --cflags --libs opencv`
    /usr/bin/ld: cannot find -llibjasper
    /usr/bin/ld: cannot find -llibtiff
    /usr/bin/ld: cannot find -llibjpeg
    collect2: error: ld returned 1 exit status

当我寻找libjasper.so时,它的位置是:

surinder@surinder-HP-EliteBook-8440p:~/Downloads/cpp_test$ locate libjasper.so
/usr/lib/x86_64-linux-gnu/libjasper.so
/usr/lib/x86_64-linux-gnu/libjasper.so.1
/usr/lib/x86_64-linux-gnu/libjasper.so.1.0.0

哪里出了问题...如何解决此错误。

doubledd 回答:使用openCV库编译C ++程序

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3125913.html

大家都在问