【问题标题】:CMake Error at cmake/OpenCVCompilerOptimizations.cmake:505 (message): Compiler doesn't support baseline optimization flagscmake/OpenCVCompilerOptimizations.cmake:505 处的 CMake 错误(消息):编译器不支持基线优化标志
【发布时间】:2018-06-22 11:50:57
【问题描述】:

我正在尝试从 github repository 的 opencv 源代码构建 openCv.js javascript 库 我按照official page
的说明进行操作 我安装了 cmake、python 和 Emscripten。 当我运行这个 python 命令时:

python ./platforms/js/build_js.py build_js

我收到以下错误:

-- Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required
is at least "3.4" (found E:/Github projects/emsdk-master/python/2.7.13.1_64bit/p
ython-2.7.13.amd64/python.exe)
-- Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required
is at least "3.2" (found E:/Github projects/emsdk-master/python/2.7.13.1_64bit/p
ython-2.7.13.amd64/python.exe)
CMake Error at cmake/OpenCVCompilerOptimizations.cmake:505 (message):
Compiler doesn't support baseline optimization flags:
Call Stack (most recent call first):
cmake/OpenCVCompilerOptions.cmake:261 (ocv_compiler_optimization_options)
CMakeLists.txt:554 (include)

screenshot of the error

如何修复此错误并构建 opencv.js?

【问题讨论】:

    标签: javascript python opencv cmake


    【解决方案1】:

    您需要将 python 版本更新为至少 3.4

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多