I downloaded the latest OpenCV-2.4.2.exe and unpacked it. Then I opened a project in visual studio 2010 and pointed it to the include and lib folders that it needs to build.
In my case, the lib folder is in \opencv\build\x64\vc10\lib which is different than the instructions online. This folder seems to contain a compiled version of everything. However, when I build my project, I get
LINK : fatal error LNK1104: cannot open file ‘cv.lib’
cv.lib is nowhere to be found.
Is there something else that needs to be compiled?
Well, I solved the issue.
In stdafx.h I had to comment out:
which were trying to load cv.lib, etc. My guess is this was correct for previous openCV version but isn’t valid for 2.4.2. Then I had to add
to my project in the Linker->Input->Additional dependencies part.
I tried the staticlib folder and x64 but this is what worked for me on Windows 7 64-bit.
Hope this helps someone else (I’ve seen similar issues other people had).