【发布时间】: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)
如何修复此错误并构建 opencv.js?
【问题讨论】:
标签: javascript python opencv cmake