Downloaded two versions of OpenCV and Eclipse cannot compile

asked 2016-01-29 09:27:44 -0500

JacobJones gravatar image

updated 2016-01-29 12:35:04 -0500


I'm running a project on Ubuntu 14.04 with OpenCV 3.0.0 and Eclipse MARS installed. I have followed most guides on installing OpenCV and I'm at the end of my ropes. Errors that are of the form "‘CV_CALIB_ZERO_DISPARITY’ was not declared in this scope" and "Function 'cvCreateMat' could not be resolved" appear for almost all instances that make reference to OpenCV. What could be the cause of this problem? Changes I have made are linking the libraries by and putting ${FLAGS} at the end of the command line patterm in Expert settings in the C++ Linker. Any advice on what I should do would be very helpful.

Update* I believe the reason for this is because I accidentily installed 3.1.0 and 2.4.0 which is why the computer cannot recognize OpenCV modules. Does anyone know how I can fix this and if my assumption is correct?

edit retag flag offensive close merge delete


if your program has cvCreateMat in it - it's probably terribly outdated.

berak gravatar imageberak ( 2016-01-30 03:00:09 -0500 )edit

I see. What function should I use to replace it?

JacobJones gravatar imageJacobJones ( 2016-02-01 08:41:47 -0500 )edit

stick to opencv's c++ api, use cv::Mat consistantly, tutorials might help

berak gravatar imageberak ( 2016-02-01 08:44:54 -0500 )edit