File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,20 @@ apt update
7
7
apt install python3 -y
8
8
9
9
cd opencv4/
10
- mkdir opencv-build-wasm && cd opencv-build-wasm
10
+ mkdir opencv-build-wasm
11
+ cd opencv-build-wasm
11
12
python3 ../platforms/js/build_js.py build_wasm --build_wasm --emscripten_dir=/emsdk/upstream/emscripten
12
13
13
14
cd /usr/src/app
14
- mkdir build-wasm && cd build-wasm
15
+ mkdir build-wasm
16
+ cd build-wasm
15
17
emcmake cmake .. -DUSE_WASM=1 -DOPENCV_DIR=/usr/src/app/opencv4
16
18
make -j5 install
17
19
(cd ../web/ && tar -czvf cimbar.wasm.tar.gz cimbar_js.* index.html main.js)
18
20
19
21
cd /usr/src/app
20
- mkdir build-asmjs && cd build-asmjs
22
+ mkdir build-asmjs
23
+ cd build-asmjs
21
24
emcmake cmake .. -DUSE_WASM=2 -DOPENCV_DIR=/usr/src/app/opencv4
22
25
make -j5 install
23
26
(cd ../web/ && zip cimbar.asmjs.zip cimbar_js.js index.html main.js)
You can’t perform that action at this time.
0 commit comments