Ask Your Question
0

reconfigure to newer version

asked 2014-05-24 11:49:14 -0600

SKU gravatar image

updated 2014-05-24 11:52:48 -0600

i had configured MS-VS10 with opencv 2.4.2 now i need to reconfigure it to 2.4.9,how can i do that??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-24 12:39:52 -0600

Y Simson gravatar image

You should start by downloading the newest version which currently 2.4.9 from this link

Make sure to download it into a new directory preferably with the version number as a suffix. e.g: d:\opencv249

Define as system variable OPENCV_DIR249 = d:\opencv249 (my recomendation). Also see this explanation on how to do it.

Then all you have left to do is to learn to link your new versions libraries and dll's to your code in Visual Studio 2010 as explained here.

Good luck!

edit flag offensive delete link more

Comments

thanks friend, i have made all the changes but i'm getting this error " Error 1 error LNK1104: cannot open file 'opencv_calib3d242d.lib' " plz help...

SKU gravatar imageSKU ( 2014-05-24 23:07:23 -0600 )edit

This usually means one of three mistakes.

Either opencv_calib3d242d.lib does not exist because you are using a different version. Likely the file you wish to have in Configuration Property pages->Linker->Input->Additional dependencies is opencv_calib3d249d.lib.

Or you did not define the correct directories for additional libraries. Check the definitions in the Configuration Property pages->Linker->General->Additional Library directories

Another possible error is your project definition might be x86 while the directory you refer to is x64 or visa versa. Not that in the precompiled libraries you need to choose both your correct Visual Studio version(v10/v11) AND architecture type(x86/x64).

Y Simson gravatar imageY Simson ( 2014-05-25 00:58:30 -0600 )edit
1

don't tell anyone i said that, but the probably most easy cheat is to open the vcproj file with a text editor, and replace the 2.4.2 names and pathes to the 2.4.9 version.

berak gravatar imageberak ( 2014-05-25 04:35:12 -0600 )edit
1

thank u both for ur answers it helped me to get-rid of my errors :-)

SKU gravatar imageSKU ( 2014-05-25 11:44:56 -0600 )edit

If you are happy with the answer, please mark the accept it as the correct answer :)

Y Simson gravatar imageY Simson ( 2014-05-26 09:59:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-05-24 11:49:14 -0600

Seen: 258 times

Last updated: May 24 '14