【发布时间】:2010-12-30 07:25:30
【问题描述】:
OpenCV 2.0a 不包括为 Visual Studio 用户预编译的 OpenCV 库。我正在尝试使用 Visual Studio 2010 Beta 和 CMake 从源代码构建库,但我遇到了很多错误。
我什至尝试使用 dumpbin 从 dll 生成库,但链接器错误仍然存在。请指导我为 VS2010 生成静态库。
【问题讨论】:
标签: visual-studio-2010 opencv cmake
OpenCV 2.0a 不包括为 Visual Studio 用户预编译的 OpenCV 库。我正在尝试使用 Visual Studio 2010 Beta 和 CMake 从源代码构建库,但我遇到了很多错误。
我什至尝试使用 dumpbin 从 dll 生成库,但链接器错误仍然存在。请指导我为 VS2010 生成静态库。
【问题讨论】:
标签: visual-studio-2010 opencv cmake
如果您看到的构建错误与:
'back_inserter': identifier not found
就像源文件 cvmodelest.cpp 和 cvhog.cpp 的情况一样,将以下包含语句添加到每个源文件中:
#include <iterator>
有关'back_inserter': identifier not found error 的更多信息,请参阅this blog post。
【讨论】:
有点晚了,但我创建了一个video tutorial 用于使用 Visual Studio 2010 编译和配置 OpenCV 2.1。
【讨论】:
试试 this tutorial(dead) 和 this one 退出。
我在 VS 2010 和 Windows 7 上试过这个。
【讨论】:
请参阅 another StackOverflow thread. 它适用于 VC++ 2008,但它可能会有所帮助。
【讨论】: