Ask Your Question
0

opencv2.2 with visualstudio c++ 2010 express startup

asked 2013-03-05 01:39:21 -0600

nomo gravatar image

Hi,

I'm a bigginer of opencv and visualstudio. I tried startup opencv2.2 with visualstudio c++ 2010 express as below, but failed.

Install opencv Create a blank project in visualstudio Open the property of the porject At VC++ property, add below to include directory C:\opencv\build\include;C:\opencv\build\include\opencv;C:\opencv\build\include\opencv2;

At VC++ property, add below to library directory C:\opencv\build\x64\vc10\lib;

Then, at input at link, add additional dependency files as below opencv_calib3d231d.lib;opencv_contrib231d.lib;opencv_core231d.lib;opencv_features2d231d.lib;opencv_flann231d.lib;opencv_gpu231d.lib;opencv_haartraining_engined.lib;opencv_highgui231d.lib;opencv_imgproc231d.lib;opencv_legacy231d.lib;opencv_ml231d.lib;opencv_objdetect231d.lib;opencv_ts231d.lib;opencv_video231d.lib;

Build a sample "image.cpp" and got error: cannot open opencv_calib3d231d.lib

Look for opencv_calib3d231d.lib at c:\opencv\build\x64\vc10\lib but cannot find it. Instead, opencv_calib3d240d.lib was found.

I googled it, but cannot find any solution for it. Can anyone help me??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-03-05 02:30:42 -0600

berak gravatar image

the dlls and libs are versioned.

if you're trying to install 2.2, you have to add entries for opencv_calib3d220d.lib and the like, NOT opencv_calib3d231d.lib(that's for 2.3.1)

so please make sure, what opencv version you've got there, and link to the libs with the corresponding version number.

the last line of your post even seems to hint, that your actual installed version is 2.4.0, not 2.2 as you said in the beginning.

edit flag offensive delete link more

Comments

Two versions were installed and libs were confusing. I cleared up them and installed. It works at last, thank you very much.

nomo gravatar imagenomo ( 2013-03-16 10:25:54 -0600 )edit

Question Tools

Stats

Asked: 2013-03-05 01:39:21 -0600

Seen: 405 times

Last updated: Mar 05 '13