Building OpenCV with Visual Studio 2012
Is there support for building OpenCV using Visual Studio 2012? I don't really want to use a released version. Happy to pull-down code from latest branches.
Is there support for building OpenCV using Visual Studio 2012? I don't really want to use a released version. Happy to pull-down code from latest branches.
When I tried to build OpenCV 2.4.3 with CUDA support I had problems because nvcc wanted to work with Visual Studio 9 or 10. I have used the latest NVidia CUDA toolkit, version 5.0. Accordingly here NVidia states that Microsoft Visual Studio 2008 or 2010 is a requirement.
After I have downgraded to Visual C++ 2010 Express and I could build OpenCV completely. So if you plan to work with CUDA you may not use the VS 2012 until NVidia updates its CUDA toolkit.
I am not interested in CUDA at all. Just want to build the sources for ARM to be used inside a Windows 8 Store app.
Hey, I'm a fellow OpenCV user, and I seem to have no trouble building with Visual Studio 2012. You just have not enough differences between Visual Studio 2010 and 2012 to provide a separate support for VS2012. Anyway, there are a few. Follow the tutorials on VS2010 from here (http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#installation-by-using-the-pre-built-libraries) and here (http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html), and take note of the fact that you can't save induvidual property pages in VS2012 (as far as I know) as you can in VS2010. That's the one major difference I found and so you have to add libraries directories and stuff to every new OpenCV project you do with VS2012. Happy Coding!
One major difference between 2010 and 2012 is the support for ARM in 2012. I guess that is significant enough to warrant separate support for 2012. Try building the sources for ARM using 2012 and you will see the pain I am talking about :)
Please try the solution given in this instructionCudaApps_With_VS2012.png (This is actually a .7z file; rename it after downloading it).Is there a better way to post these instructions?
Asked: 2012-12-12 06:37:52 -0600
Seen: 1,957 times
Last updated: Jun 28 '13
2.4.3RC - Visual Studio 2012 - CUDA 5.0
Installation issues OpenCV 2.4.3 (Win 7, 64Bit) and Visual Studio 2012 Pro
Problems of Building OpenCV 2.4.3 with Visual Studio 2012
Visual Studio 2012 and RtlFreeHeap error
Building OpenCV 2.4.3 in Visual Studio 2012 and CUDA 5.0
Issues with cv 2.4.4 opencv_core244d.dll and VS2012
OpenCV, Cuda and Visual Studio... Dirty hacking (maybe?)