Sorry for repeating a frequent question. It is now a week that I am trying to set up openCV with Qt 5.0.2 or Microsoft VC++ express edition in my 32bit windows 7, with no success. now for QT : -It is QT 5.0.2 MinGW . -It runs programs not using opencv successfully.
Now, the opencv lines of my .pro file is like this :
INCLUDEPATH += "C:\opencv\build\include"
LIBS += "C:\opencv\bin\bin\libopencv_core243.dll"
LIBS += "C:\opencv\bin\bin\libopencv_highgui243.dll"
This is because code like bellow results in error "not finding core.hpp":
LIBS += -LC:\\opencv\\build\\x86\\vc10\\lib\
libopencv_core243 \
libopencv_highgui243 \
Now its autocomplete for opencv functions runs, and if you write :
cv::Mat im = cv::imread("D:\\Tulips.jpg");
there is no error. But if after this you write :
cv::imshow("im",im);
It closes the program with exception code : c0000005 It even doesn't fall in "catch" of an exception handler.
The strange thing is that VC++ express is doing just the same. I should mention that I have compiled opencv for MinGW myself, and the build was Ok because it works with Code::Blocks. I used prebuilt opencv with my VC++ 10 , but that doesn't work either. Pleaase help me!Thanks a lot!