【问题标题】:Problems building openCV with contrib using CMake in windows for visual studio 2019在 Visual Studio 2019 的 Windows 中使用 CMake 使用 contrib 构建 openCV 时出现问题
【发布时间】:2020-06-09 11:52:39
【问题描述】:

我无法在 windows 中为 Visual Studio 2019 构建 openCV(我需要使用 contribs 库)。我对它的工作原理有点困惑 - 我通过 anaconda 3 安装了 python 3,我得到以下信息错误:

cmake/OpenCVGenSetupVars.cmake:54 处的 CMake 警告(消息): 不支持配置:在安装中验证 setupvars 脚本 目录 调用堆栈(最近的调用优先): CMakeLists.txt:967(包括)

它还测试 python 2 和 python 3 我需要同时安装吗?

我的系统环境变量设置为 C:\DEV\anaconda3\Library\bin

当我尝试构建项目时,我在 Visual Studio 中遇到了数千个错误。

链接到另一个类似问题:

opencv cmake warning meanings: CMakeLists.txt:1066 (include)

谢谢!

【问题讨论】:

    标签: python visual-studio opencv cmake opencv-contrib


    【解决方案1】:

    我最终设法解决了它。 Anaconda 使用 python 3.7,它似乎不适用于 opencv4.3。我将我的 opencv 版本更改为 4.2 并设法最终编译所有内容。

    警告本身仍然存在,但现在正在成功构建。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多