最近在 调试 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把这个 “点”当成了文件名,所以出错 !