最近在 調試 scct程序 時,老是出現 “
-lopencv_highgui \
/usr/bin/ld: .: No such file: File format not recognized
“這個 問題
/usr/bin/ld: .: No such file: File format not recognized
make: Leaving directory `/home/bv5/MyPrograms/scct-build-desktop-Qt_4_6_2______Release'
collect2: ld returned 1 exit status
make: *** [scct] Error 1
The process "/usr/bin/make" exited with code 2.
Error while building project scct (target: Desktop)
When executing build step 'Make'
這個問題 就是在scct.pro文件中把 LIBS項寫成了
LIBS += . -L/opt/genicam/bin/Linux32_i86 \
-lopencv_core \-lopencv_highgui \
-lopencv_feature2d \ ”
就是 多了 一個 .(dot) ,qmake把這個 “點”當成了文件名,所以出錯 !