Here is my situation. I have tried for three days to configure opencv with my visual studio 2012 but it keeps on failing. I want to know how to solve it as quick as possible:
- My computer is 64 bit operating System
System variables set:
Name: OPENCV_DIR
Value: c:\opencv\build\x64\vc10
PATH: add %OPENCV_DIR%\bin
In Properties I add
-c/c++ -> Additional Include Directories -> i add '$(OPENCV_DIR)\..\..\include'
-Linker -> General -> Additional Library Directories-> i add '$(OPENCV_DIR)\lib'
I also put all the libraries in it as well
- Linker -> Input -> Additional Dependencies
I open a new emtry project
Finall I try the sample code found in the official web of opencv http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to (Under "Test it")
However, it keeps fail all the time! First , it says there is a mis matched in the machine, thus I change the file from x64 to x86. kLater I see a bulid success, but it can not find the PDB file.
I have no idea why it does not work. I suppose this simple example does not work mean that my configuration fails as well.