Reputation: 16255
I am trying to configure OpenCV and eclipse CDT (Juno) in Windows 7. I have already installed MinGW and have been using eclipse with MinGW to write C++ programs. I am now trying to incorporate the OpenCV libraries. Below are the steps I have followed:
I have then tried to write the simple program:
#include "opencv2\opencv.hpp"
#include <iostream>
using namespace std;
using namespace cv;
int main(void)
{
Mat A;
A = imread("lena.png", CV_LOAD_IMAGE_COLOR);
imshow("image", A);
cout << "Done" << endl;
return 0;
}
However nothing happens and I don't even get the "Done" message in the output. I am stumped now as I'm new to C++ and OpenCV and am not quite sure how to debug this and move forward.
Any suggestions are appreciated.
Upvotes: 2
Views: 4956
Reputation: 16255
I found the problem, I had to add F:\Applications\opencv\build\x86\mingw\bin; to my system path
Upvotes: 1