Issue trying to configure Qt Creator with OpenCV

会有一股神秘感。 提交于 2019-12-13 05:27:58

问题


I'm trying to configure Qt Creator (Qt 5.4.1) with OpenCV 2.4.10. I've followed the steps on this page: https://zahidhasan.wordpress.com/2014/08/19/qt-5-3-1-64-bit-mingw-windows/

I followed all steps to the letter except this:

INCLUDEPATH += C:\opencv-mingw\install\include
LIBS += -L”C:/opencv-mingw/install/x64/mingw/bin”
LIBS += -lopencv_core249 -lopencv_highgui249 -lopencv_imgproc249

I changed it to

INCLUDEPATH += C:\opencv-mingw\install\include
LIBS += -L”C:/opencv-mingw/install/x64/mingw/bin”
LIBS += -lopencv_core2410 -lopencv_highgui2410 -lopencv_imgproc2410

(Since the OpenCV version in question happens to be 2.4.10 instead of 2.4.9)

Yet when I try to build the project I get the following errors:

:-1: error: cannot find -lopencv_core2410
:-1: error: cannot find -lopencv_highgui2410
:-1: error: cannot find -lopencv_imgproc2410

Apparently, Qt Creator can't find the libraries for some reason. I haven't tried to add any lines of code to the project as of yet, I was first trying to make sure the project would build, but it won't. I also will note that I don't have experience with either Qt Creator or OpenCV, so any help on solving this issue is appreciated!

来源:https://stackoverflow.com/questions/29870484/issue-trying-to-configure-qt-creator-with-opencv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!