I just installed openCV ver. 3.00 beta on my computer and I\'m trying to test it with VS2013. I followed quick start guide:
1) Installation for windows, using pre-bu
Unfortunately that solution did not work for me.
I made it work by adding as additional dependencies(Linker -> Input -> Additional Dependencies:) only those libraries located in my $(OPENCV_DIR)\lib folder. Namely: opencv_ts300d.lib;opencv_world300d.lib.
I'm also facing the same problem. I am using win7 x64 with VS2015 and OpenCV 3.2 After several hours of struggling I finally found out the answer. Each version is not the same, and there may be some differences. So this is what I did :
$OPENCV$/lib
folder$OPENCV$/lib
folder into the Additional Library (Project properties, Configuration Properties, Linker, Input
). In my case I put opencv_world300d.lib
(according to official tutorial which is not up to date!) into my Additional Library. But after I check the library folder, there is opencv_world320d.lib
, so instead of 300 I write 320.Solved this problem by unchecking the "inherit from parent or project defaults" checkbox under Linker->Input->Additional Dependencies
I added "opencv_world300d.lib" since Im using opencv 3.0.0 build x64 vc11
After a long time of different attempts, I found the answer here. For x64
project, in addition to what I did above, you have to:
1) Restart your PC after setting enviromental variables. Variable Path was not updated on my computer without restart.
2) In addition to libraries added above, you have to add (although, for this example some of them might not be used):
ippicvmt.lib
IlmImfd.lib
libtiffd.lib
libpngd.lib
libjasperd.lib
libjpegd.lib
libwebpd.lib
zlibd.lib
comctl32.lib
Edit: I recently had to install it again on a new PC. As user1060873 pointed out, you have to add only the libraries located in your $OPENCV$/lib folder. For example, on my PC it is C:\opencv\build\x64\vc12\lib
. Note, that for debug mode you should add opencv_world310d.lib
, and for release opencv_world310.lib