【问题标题】:Build the OpenCV 2.0 libraries from source using Visual Studio 2010 Beta and CMake使用 Visual Studio 2010 Beta 和 CMake 从源代码构建 OpenCV 2.0 库
【发布时间】: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


    【解决方案1】:

    如果您看到的构建错误与:

    'back_inserter': identifier not found
    

    就像源文件 cvmodelest.cppcvhog.cpp 的情况一样,将以下包含语句添加到每个源文件中:

    #include <iterator>
    

    有关'back_inserter': identifier not found error 的更多信息,请参阅this blog post

    【讨论】:

    【解决方案2】:

    有点晚了,但我创建了一个video tutorial 用于使用 Visual Studio 2010 编译和配置 OpenCV 2.1。

    【讨论】:

      【解决方案3】:

      试试 this tutorial(dead) 和 this one 退出。

      我在 VS 2010 和 Windows 7 上试过这个。

      【讨论】:

        【解决方案4】:

        请参阅 another StackOverflow thread. 它适用于 VC++ 2008,但它可能会有所帮助。

        【讨论】:

          猜你喜欢
          • 2016-08-14
          • 1970-01-01
          • 2021-03-17
          • 2013-02-21
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2016-07-25
          • 2011-02-24
          相关资源
          最近更新 更多