开发者

Building an OpenCV application in QT Creator

开发者 https://www.devze.com 2023-04-04 07:30 出处:网络
I built OpenCV with CMake under Visual studio 10, copied the binaries to a /bin folder in the opencv directory.I have a simple OpenCV program with no syntax errors, but I am getting several errors suc

I built OpenCV with CMake under Visual studio 10, copied the binaries to a /bin folder in the opencv directory. I have a simple OpenCV program with no syntax errors, but I am getting several errors such as "undefined reference to cv::imread". Why is this?

My .pro file has the following appended at the end of it:

INCLUDEPATH += C:/opencv/build/include/

LIBS += -LC:/opencv/build/x64/vc10/lib \
-lopencv_core23开发者_StackOverflow1 \
-lopencv_highgui231 \
-lopencv_imgproc231 \
-lopencv_features2d231 \
-lopencv_calib3d231

Thanks


undefined reference instead of unresolved external symbol means you are probably using MinGW for your application, and you can't use gcc with a VC++ compiled C++ library.

0

精彩评论

暂无评论...
验证码 换一张
取 消