Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Integrating OpenCV libraries in QtCreator on Windows

$
0
0
Hi Guys, I have a certain problem concerning the integration of OpenCV libraries in Qt creator: I’ve downloaded the opencv-249.exe, extracted it and tried to include the libraries by adding to the .pro file the following:  LIBS += "C:\\OpenCV\\opencv_bin\\install\\bin\\*.dll" LIBS += "C:\\OpenCV\\opencv_bin\\install\\lib\\*.dll*" Unfortunaley I always got Linking errors like “ unresolved extern symbol…” After that I tried to compile the libraries myself by creating a make-file with cmake adding the “WITH QT” option and compiling it with the mingw32-compiler. Unfortunaley I got errors during the compilation. After that I tried to compile an older version of OpenCV (I think 2.4.0) and it worked:) But if I try to include them in the following test program I always get the error :-1: Error: LNK1104: Cannot open file “libopencv_highgui231d.lib” #include "opencv2/opencv.hpp"   using namespace std;   int main (int argc, char *argv[]){           cout << "Hello World!" << endl;           cv::Mat mat;         mat = cv::imread("BM_Logo.JPG");         cvNamedWindow("hello");         cv::imshow("hello",mat);           cvWaitKey(0);           return 0;   } Also I tried to add the libraries by clicking through the menu of qt, and I tried to write each library seperatly but still the error is the same. I hope there is anybody around here who can help me with this Problem because I am getting crazy around here

Viewing all articles
Browse latest Browse all 2113

Trending Articles