Ask Your Question

Building Library using Visual Studio 2013

asked 2013-11-14 15:53:24 -0500

rbds gravatar image

I am trying to start using OpenCV. I have CMake version, but it does not show VS2013 as an option for a generator. Do I need a different version of CMake, or is there something I have not installed properly?


edit retag flag offensive close merge delete


I've installed opencv 3.0 with visual studio 2013. Actually CMake shows you Visual Studio 12 13. I'm using windows 7 though.

croco gravatar imagecroco ( 2015-05-05 20:27:54 -0500 )edit

5 answers

Sort by » oldest newest most voted

answered 2013-11-14 19:20:43 -0500

kook gravatar image

Visual Studio 12 is Visual Studio 2013,and Visual Studio 11 is Visual Studio 2012

edit flag offensive delete link more


Thanks. However, I am still having an issue installing. When I click Configure, I get the messages: Checking for Windows Platform SDK Checking for Visual Studio 2012 Could NOT find JNI ( and then several Java libraries missing)

Is it necessary to have Java first?

Then, when I hit Generate, I get a long list of errors of the format: CMake Error: install(EXPORT "OpenCVModules") given absolute DESTINATION "/lib" but the export references an installation of target "opencv_videostab" which has relative DESTINATION "bin".

Can anyone tell me what I have done wrong?

rbds gravatar imagerbds ( 2013-11-15 07:35:23 -0500 )edit

answered 2014-03-11 16:12:48 -0500

elvis gravatar image

updated 2014-03-11 16:17:16 -0500

Visual Studio C++ 2013 is VC11 in cmake

Visual C++ 2008 -> VC 9

Visual C++ 2010 -> VC 10

Visual C++ 2012 -> VC 11

Visual C++ 2013 -> VC 12

edit flag offensive delete link more

answered 2015-05-05 07:58:37 -0500

Phil Hu gravatar image

updated 2015-05-05 08:10:16 -0500

My IDE is visual studio 2013(os is Windows 10 preview (x64)), and I choose "Visual Studio 12 2013 Win64" in window appeared after pressing cmake "Configure". Press "Configure" twice and "Generate" once, ignore all the warnings in cmake output window, and you can see the "OpenCV.sln" generated in your path set for "Where to build the binaries".

edit flag offensive delete link more

answered 2013-12-04 08:47:42 -0500

DKJ gravatar image

I also have this problem. \("▔□▔)/

edit flag offensive delete link more

answered 2014-03-23 09:14:47 -0500

Ngcaothu gravatar image

updated 2014-03-23 09:19:12 -0500

Follow this instruction to install OpenCV. He guides us install OpenCV 2.4.8 with visual studio 2012 (VC11). However, you can install other OpenCV version with appropriate version of visual studio.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-11-14 15:53:24 -0500

Seen: 23,550 times

Last updated: May 05 '15