gpt4 book ai didi

c++ - OpenCV WebAssembly

转载 作者:行者123 更新时间:2023-11-28 04:28:00 25 4
gpt4 key购买 nike

我尝试运行本教程,http://videocortex.io/2017/opencv-web-app/ ,构建和试用 OpenCV WebAssembly。但是我无法完成“构建系统”步骤我已经构建了 emscripten 1.38.21,安装了 Python 2.7.5.3_64bit 和 CMAKE 3.13.2 但最终出现错误:

我错过了什么吗?

enter image description here

enter image description here

enter image description here

enter image description here

当我运行 emcc -v 时,我也遇到了一些错误:

WARNING:root:LLVM version appears incorrect (seeing "6.0", expected "3.7") ERROR:root:Emscripten, llvm and clang versions do not match, this is dangerous (1.35.0, "1.38.21", "1.38.21") ERROR:root:Make sure to use the same branch in each repo, and to be up-to-date on each. See http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html INFO:root:(Emscripten: Running sanity checks) emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.35.0 clang version 6.0.1 (emscripten 1.38.21 : 1.38.21) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: D:\Repositories\emsdk\clang\e1.38.21_64bit WARNING:root:LLVM version appears incorrect (seeing "6.0", expected "3.7") ERROR:root:Emscripten, llvm and clang versions do not match, this is dangerous (1.35.0, "1.38.21", "1.38.21") ERROR:root:Make sure to use the same branch in each repo, and to be up-to-date on each. See http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html INFO:root:(Emscripten: Running sanity checks)

最佳答案

有人已经成功地将 OpenCV 编译成 WebAssembly。您可以访问GitHub repository并按照以下步骤操作:

  1. 获取源代码:

    git 克隆 https://github.com/ucisysarch/opencvjs.git
    光盘 opencvjs
    git 克隆 https://github.com/opencv/opencv
    CD OpenCV
    git 结帐 3.1.0
  2. 安装 Emscripten:
    ./emsdk更新
    ./emsdk 安装 sdk-incoming-64bit --shallow
    ./emsdk 激活 sdk-incoming-64bit
    来源./emsdk_env.sh
  3. 将 OpenCV 构建为 WebAssembly。
    python make.py --wasm

关于c++ - OpenCV WebAssembly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53781802/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com