mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge pull request #19376 from alalek:fixup_19105
This commit is contained in:
commit
bbad38b2c5
@ -287,20 +287,20 @@ So, make sure [docker](https://www.docker.com/) is installed in your system and
|
|||||||
@code{.bash}
|
@code{.bash}
|
||||||
git clone https://github.com/opencv/opencv.git
|
git clone https://github.com/opencv/opencv.git
|
||||||
cd opencv
|
cd opencv
|
||||||
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk emcmake python3 ./dev/platforms/js/build_js.py build_js
|
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk emcmake python3 ./platforms/js/build_js.py build_js
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
In Windows use the following PowerShell command:
|
In Windows use the following PowerShell command:
|
||||||
|
|
||||||
@code{.bash}
|
@code{.bash}
|
||||||
docker run --rm --workdir /src -v "$(get-location):/src" "emscripten/emsdk" emcmake python3 ./dev/platforms/js/build_js.py build_js
|
docker run --rm --workdir /src -v "$(get-location):/src" "emscripten/emsdk" emcmake python3 ./platforms/js/build_js.py build_js
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
@warning
|
@warning
|
||||||
The example uses latest version of emscripten. If the build fails you should try a version that is known to work fine which is `2.0.10` using the following command:
|
The example uses latest version of emscripten. If the build fails you should try a version that is known to work fine which is `2.0.10` using the following command:
|
||||||
|
|
||||||
@code{.bash}
|
@code{.bash}
|
||||||
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk:2.0.10 emcmake python3 ./dev/platforms/js/build_js.py build_js
|
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk:2.0.10 emcmake python3 ./platforms/js/build_js.py build_js
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
### Building the documentation with Docker
|
### Building the documentation with Docker
|
||||||
@ -324,5 +324,5 @@ docker build . -t opencv-js-doc
|
|||||||
Now run the build command again, this time using the new image and passing `--build_doc`:
|
Now run the build command again, this time using the new image and passing `--build_doc`:
|
||||||
|
|
||||||
@code{.bash}
|
@code{.bash}
|
||||||
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) "opencv-js-doc" emcmake python3 ./dev/platforms/js/build_js.py build_js --build_doc
|
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) "opencv-js-doc" emcmake python3 ./platforms/js/build_js.py build_js --build_doc
|
||||||
@endcode
|
@endcode
|
||||||
|
Loading…
Reference in New Issue
Block a user