Qt Creator 2.3.1 產生 “/usr/bin/ld: .: No such file: File format not recognized”

最近在 調試 scct程序 時,老是出現 “

/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把這個 “點”當成了文件名,所以出錯 !


發佈了35 篇原創文章 · 獲贊 12 · 訪問量 43萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章