Skip to content

Commit

Permalink
upgrading opencv and emsdk to 3.1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed May 14, 2024
1 parent 91ffcc5 commit 904d90e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/opencv_js.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion build_w_docker.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash

docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) -e "EMSCRIPTEN=/emsdk/upstream/emscripten" emscripten/emsdk:2.0.10 emcmake python3 ./opencv/platforms/js/build_js.py opencv_js --config="./opencv.webarkit_config.py" --build_wasm --cmake_option="-DBUILD_opencv_dnn=OFF" --cmake_option="-DBUILD_opencv_objdetect=OFF" --cmake_option="-DBUILD_opencv_photo=OFF" --build_flags="-s EXPORT_ES6=1 -s USE_ES6_IMPORT_META=0"
if [ ! -d "opencv_js" ] ; then
mkdir opencv_js
sudo chmod -R 777 opencv_js
echo "mkdir opencv_js"
fic

docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) -e "EMSCRIPTEN=/emsdk/upstream/emscripten" emscripten/emsdk:3.1.26 emcmake python3 ./opencv/platforms/js/build_js.py opencv_js --config="./opencv.webarkit_config.py" --build_wasm --cmake_option="-DBUILD_opencv_dnn=OFF" --cmake_option="-DBUILD_opencv_objdetect=OFF" --cmake_option="-DBUILD_opencv_photo=OFF" --build_flags="-s EXPORT_ES6=1 -s USE_ES6_IMPORT_META=0"

# copy the output to the build folder
cp -r opencv_js/bin/opencv_js.js build
2 changes: 1 addition & 1 deletion opencv
Submodule opencv updated 1193 files

0 comments on commit 904d90e

Please sign in to comment.