0
我使用Visual Studio 10下的CMake構建OpenCV,將二進制文件複製到opencv目錄中的/ bin文件夾。我有一個簡單的OpenCV程序,沒有語法錯誤,但我收到了幾個錯誤,如「undefined reference to cv::imread
」。爲什麼是這樣?在QT Creator中構建OpenCV應用程序
我.pro文件有以下在它的末尾追加:
INCLUDEPATH += C:/opencv/build/include/
LIBS += -LC:/opencv/build/x64/vc10/lib \
-lopencv_core231 \
-lopencv_highgui231 \
-lopencv_imgproc231 \
-lopencv_features2d231 \
-lopencv_calib3d231
感謝