Ask Your Question

Trouble to compile opencv 3.0.0 solution (.sln) file with visual studio when the BUILD_OPENCV_WORLD is included in cmake (3.4.1)

asked 2015-12-17 06:18:41 -0600

ANirudh_Nandavar gravatar image

updated 2015-12-17 10:23:09 -0600

Hi, I have a problem with building the libraries of opencv 3.0.0 on VS2013 (x64). I cloned the Opencv source from github and built it with cmake (3.4.1) with Build_opencv_world checked. The opencv.sln file is generated without any cmake errors but, when i build the ALL_BUILD (or the INSTALL) project to create the opencv3 3.0.0 libraries and include files, there are fatal link errors encountered in visual studio.

However, the ALL_BUILD (and INSTALL) project builds without any glitch when I am not including the BUILD_OPENCV_WORLD on cmake when creating the Opencv.sln file.

My problem is that I need the opencv_world300.lib and opencv_world300d.lib and (opencv_world300.dll and opencv_world300d.dll) files for my project (that uses Kinect RGB stream to be processed with SURF detector on opencv 3.0.0). These .lib and .dll are not generated without the Build_opencv_world checked when creating the .sln from cmake.

Is there a solution or a work-around to this issue? I am a beginner with this and stuck big time to solve this issue of libraries not being compiled from the opencv github source.

edit retag flag offensive close merge delete


Post your CMake output please.

boaz001 gravatar imageboaz001 ( 2015-12-17 10:29:14 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-12-19 12:38:13 -0600

Brandon212 gravatar image

All opencv world is is the individual modules combined into one just so you don't have to deal with as many files. It contains no functionality itself.

There's a known issue with building with opencv world, so just skip that and build everything else. You'll have all the modules individually then and it will work as normal.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-12-17 06:18:41 -0600

Seen: 1,225 times

Last updated: Dec 19 '15