Ask Your Question
0

Building Library using Visual Studio 2013

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

rbds gravatar image

I am trying to start using OpenCV. I have CMake version 2.8.12.1, 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?

Thanks.

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

5 answers

Sort by » oldest newest most voted
4

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

kook gravatar image

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

edit flag offensive delete link more

Comments

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 -0600 )edit
1

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

elvis gravatar image

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

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
0

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

Phil Hu gravatar image

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

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
0

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

DKJ gravatar image

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

edit flag offensive delete link more
0

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

Ngcaothu gravatar image

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

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. https://www.youtube.com/watch?v=v-VgWxkVp2w

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 23,724 times

Last updated: May 05 '15