Ask Your Question

OpenCV, Cuda and Visual Studio... Dirty hacking (maybe?)

asked 2013-03-26 09:25:18 -0500

Danilo gravatar image

I was thinking about compiling OpenCV latest version (wich I believe is 2.4) with CUDA using Visual Studio 2010. But I really would like to develop my solution using Visual Studio 2012. What if I use the binaries compiled with VS 2010 but use the libs in the folder C:\opencv\build\x64\vc11\libs? Will it work? I have a poor understanding of C/C++ development in Windows but from my belief, libs contains the symbols exported by the DLL and the DLL contains the code and resources... Since the symbols don't change because of the version of Visual Studio, I believe it might work... Am I right?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-03-26 11:22:43 -0500

Actually it will work since prebuilt binaries are mostly dependant on the operating system and the fact if they are 32 bit or 64 bit systems. So there is no problem in using binaries built with VS2010 in VS2012.

If it would have been, this would mean that each software developer has to update his binaries each time the environment has an update, which would be time consuming and not costumer friendly.

SO go ahead if you want to, no weird crashes will arise!

edit flag offensive delete link more

answered 2013-03-26 10:40:33 -0500

berak gravatar image

i'd say, bite the apple and download 2.4.4

yes, 256 mb, but you don't want any troubles with ill-fitting libraries, also the cuda parts improved a lot

edit flag offensive delete link more


I downloaded 2.4.4. And I successfully compiled this code from VS 2010. I was just wondering if I can just use the VS 2012 libs...

Danilo gravatar imageDanilo ( 2013-03-26 11:00:40 -0500 )edit

Yes you can

sumit_K gravatar imagesumit_K ( 2013-06-29 11:56:46 -0500 )edit

Question Tools


Asked: 2013-03-26 09:25:18 -0500

Seen: 295 times

Last updated: Mar 26 '13