Ask Your Question
0

HOW TO MAKE 1 FINAL PROJECT IN VISUAL STUDIO COMMUNITY 2015 with opencv 3.1

asked 2016-03-09 06:27:36 -0600

It has now been one week. I have been trying to make 1 project work. I am very very disappointed.

You guys don't provide any set of instructions on how to install latest opencv with latest VS and making the project work. I have followed almost all tutorials available on internet and you tube but to no avail.

I have installed opencv using CMAKE successfully.

I have successfully installed VS Community 2015

I have built project opencv.sln using both debug and release, and finally building for CMakeTargets INSTALL

I have added binaries and library paths to system PATH

I created an empty console Win32 application project (added .cpp file as source)

I have in C/C++ -> General -> Additional Include Directories: D:\opencv\mybuild\install\include (both release & debug)

I have in Linker -> General -> Additional Library Directories: D:\opencv\mybuild\install\x64\vc14\lib (both release & debug)

I have in Linker -> Input -> Additional Dependencies : opencv_world310d (for debug)

I have in Linker -> Input -> Additional Dependencies : opencv_world310 (for release)

STILL I GET THIS ERROR:

LINK : fatal error LNK1104: cannot open file 'opencv_world310d.obj'

I am using 64-bit Windows 7 Enterprise

Please help me, I shall be very grateful to you

edit retag flag offensive close merge delete

Comments

take a look into your mybuild\install\x64\vc14\lib folder. if you build the opencv libs locally, you probably won't build a opencv_world lib, but one lib per module, like opencv_core, opencv_imgproc, etc.

berak gravatar imageberak ( 2016-03-09 06:34:04 -0600 )edit

Did you solve this? I'm also struggling to install OpenCV 3.1 with VS 2015, together with the contrib modules... The documentation is very poorly made.

Dunder gravatar imageDunder ( 2016-03-10 08:54:52 -0600 )edit

hi maulakhan, r u able to solve this problem? I'm facing the exactly same problem with you need really need a solution now, please help.

Chris12 gravatar imageChris12 ( 2016-03-21 03:40:02 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
-1

answered 2016-03-10 01:38:21 -0600

"I have in Linker -> Input -> Additional Dependencies : opencv_world310d (for debug)"

You replace this: Linker -> Input -> Additional Dependencies : opencv_world310d.lib

Also: " Linker -> Input -> Additional Dependencies : opencv_world310 (for release)" Linker -> Input -> Additional Dependencies : opencv_world310.lib

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-09 06:27:36 -0600

Seen: 340 times

Last updated: Mar 09 '16