OpenVC 2.4.5, eclipse CDT Juno, MinGW error 0xc0000005
On Windows 7 64 bit, AMD processor, I installed OpenVC 2.4.5, with eclipse CDT Juno and MinGW, everything to the latest update. Previously eclipse CDT and MinGW compiled 100+ source files without problems. They even compile this
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
int main()
{
IplImage* img1 = cvLoadImage("lenna.png");
cvShowImage("MyWindow1", img1);
cv::Mat img2;
cv::imread("lenna.png", CV_LOAD_IMAGE_COLOR);
cv::namedWindow("MyWindow2", CV_WINDOW_AUTOSIZE);
cv::imshow("MyWindow2", img2);
cvWaitKey(0);
return 0;
}
small OpenCV source file, but when I try to Run it then it brakes with notorious
"The application was unable to start correctly (0xc0000005). Click OK to close the application."
What might be wrong and what would be solution to this problem?
- OpenCV (PreCompiled) is unzipped to "C:\OpenCV245PC\ (README, index.rst and CMakeLists.txt are there with all subfolders)
- Windows System PATH is set to C:\OpenCV245PC\build\x86\mingw\bin
- Eclipse GCC C++ Compiler, Include paths (-I) is set to "C:\OpenCV245PC\build\include"
- Eclipse MinGW C++ Linker, Library search path (-L) is set to: "C:\OpenCV245PC\build\x86\mingw\lib"
- Eclipse MinGW C++ Linker, Libraries (-l) are set to: opencv_calib3d245 opencv_contrib245 opencv_core245 opencv_features2d245 opencv_flann245 opencv_gpu245 opencv_highgui245 opencv_imgproc245 opencv_legacy245 opencv_ml245 opencv_nonfree245 opencv_objdetect245 opencv_photo245 opencv_stitching245 opencv_video245 opencv_videostab245
"On Windows 7 64 bit, AMD proc..." < -- > "Windows System PATH is set to C:\OpenCV245PC\build\x86\mingw\bin"
can it be, you're compiling a 64bit exe, and link to the 32bit libs/dlls ?
also, if your opencv version is 2.4.5, you'd have all libs like opencv_nonfree245 (not 240), right ?
No, I'm not compiling binaries - they are precompiled. I tried both x64 and x86 it's the same. As for opencv_nonfree245 (not 240), you are right - but I just posted wrong from my notes (copy & paste) because I also tried for seevral other (older versions) - but for the question i ask all libs were correct: such as opencv_nonfree245 - I will edit my post, to avoid confusion.