成功安装并构建了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
哪里出了问题...如何解决此错误。