HackToHell. Powered by Blogger.

Setting up OpenCV 3.0.0 with Visual Studio 2013

This tutorial assumes that you have downloaded both Visual Studio 2013 and OpenCV 3.0.0 and have them both installed.

First create a normal console application with Additional Types as Empty project.
Then right click the project name, and select properties or use the shortcut Alt + Enter. There in the general C/C++ options, add the location of the header folder of the OpenCV library to the field.

Now we have to add the location of the libraries to the project, to do so, Go to Linker->General tab and enter the path to the lib folder. Be careful with the architecture, if it's 32 bit then it's x86\vc12\lib if it's 64 bit it's x64\vc12\lib.
After doing this, we need to specify the files to the Linker, go to the Linker->Input tab and in the pulldown menu of additional dependencies, hit edit and add the following lines.
Now we are nearly done, if you run/debug the application, you will get an error saying that opencv_world300.dll is missing, add it to your %PATH% environmental variable or simply copy and paste it into the same directory as Project(The directory containing .vcxproj file) from the /vc12/bin folder.. Now you should be able to use OpenCV from Visual Studio 2013. If you run into any problem, feel free to comment below.
Share on Google Plus

About hacktohell

Love technology.