views:

1986

answers:

4

OpenCV 2.0a does not include pre-compiled OpenCV libraries for Visual Studio users. I am trying to build the libraries from source using Visual Studio 2010 Beta and CMake, but I am getting lot of errors.
I even tried generating the libs from dlls using dumpbin but the linker errors are still persisting. Please guide me to generate the static libs for VS2010.

A: 

See another StackOverflow thread. It's for VC++ 2008, but it may help.

Jive Dadson
A: 

If the build error you're seeing is related to "'back_inserter': identifier not found", as is likely the case for the source files "cvmodelest.cpp" and "cvhog.cpp", add the following include statement to each of those source files:

#include <iterator>

For more info about the "'back_inserter': identifier not found" error, see this blog post:

http://blogs.msdn.com/b/vcblog/archive/2009/05/25/stl-breaking-changes-in-visual-studio-2010-beta-1.aspx

Rethunk
Of the various blog posts and other pages about using CMake, I found this one helpful:http://electronic-salad.blogspot.com/2010/03/install-opencv20-for-windows.html
Rethunk
A: 

maybe help: install opencv 2.0 to visual c++ 2010 Express, here: http://arie-fardiansyah.blogspot.com/2010/09/install-opencv-20-ke-visual-c-2010.html

Arie Fardiansyah