opencv 2.4.3

asked 2013-12-18 03:44:29 -0600

fenix0831 gravatar image

updated 2013-12-18 04:17:27 -0600

Hi im now using the OpenCV2.4.3 in window 8. I have added all the lib i need to eclipse C++. By building i got 0 error. but by runing, it does nothing. i put my code hier:

using namespace cv;

using namespace std;

int main( )

{ Mat image;

image = imread( "D:/workspace/C++/DisplayImg/src/1.jpg", 1 );

namedWindow( "Display Image", CV_WINDOW_AUTOSIZE );

imshow( "Display Image", image );

waitKey(0);

return 0;

}

after debug i got this message: An internal error occurred during: "FetchJob". java.lang.NullPointerException

can some one maybe help me. thx alot.

edit retag flag offensive close merge delete

Comments

This is not related to your program. It is an Eclipse internal problem, which is obvious from the error message (java.lnag.NullPointerException). Your program is written in C++, thus the error message is definitely caused elsewhere and your program most likely not even run. If you're familiar, I'd recommend using Commandline compilation to verify your program is ok, alternatively add a cout << "hello" << endl; as the first line in main function, to see when your program is run.

ThomasB gravatar imageThomasB ( 2013-12-18 05:55:30 -0600 )edit