OpenCV WebAssembly
OpenCV WebAssembly
我尝试 运行 本教程 http://videocortex.io/2017/opencv-web-app/ 来构建和试用 OpenCV WebAssembly。但我无法完成步骤 "The Build System" 我构建了 emscripten 1.38.21,安装了 Python 2.7.5.3_64bit 和 CMAKE 3.13.2 但最后出现错误:
我是不是漏掉了什么?
当我 运行 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 并按照以下步骤操作:
- 获取源代码:
git clone https://github.com/ucisysarch/opencvjs.git
cd opencvjs
git clone https://github.com/opencv/opencv
cd opencv
git checkout 3.1.0
- 安装 Emscripten:
./emsdk update
./emsdk install sdk-incoming-64bit --shallow
./emsdk activate sdk-incoming-64bit
source ./emsdk_env.sh
- 将 OpenCV 构建为 WebAssembly。
python make.py --wasm
我尝试 运行 本教程 http://videocortex.io/2017/opencv-web-app/ 来构建和试用 OpenCV WebAssembly。但我无法完成步骤 "The Build System" 我构建了 emscripten 1.38.21,安装了 Python 2.7.5.3_64bit 和 CMAKE 3.13.2 但最后出现错误:
我是不是漏掉了什么?
当我 运行 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 并按照以下步骤操作:
- 获取源代码:
git clone https://github.com/ucisysarch/opencvjs.git cd opencvjs git clone https://github.com/opencv/opencv cd opencv git checkout 3.1.0
- 安装 Emscripten:
./emsdk update ./emsdk install sdk-incoming-64bit --shallow ./emsdk activate sdk-incoming-64bit source ./emsdk_env.sh
- 将 OpenCV 构建为 WebAssembly。
python make.py --wasm