comparison Applications/StoneWebViewer/WebAssembly/NOTES.txt @ 1538:d1806b4e4839

moving OrthancStone/Samples/ as Applications/Samples/
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2020 13:24:38 +0200
parents StoneWebViewer/WebAssembly/NOTES.txt@de8cf5859e84
children 8ddf77198ed7
comparison
equal deleted inserted replaced
1537:de8cf5859e84 1538:d1806b4e4839
1
2 Building WebAssembly samples using Docker
3 =========================================
4
5 The script "./docker-build.sh" can be used to quickly build the
6 WebAssembly samples on any GNU/Linux distribution equipped with
7 Docker. This avoids newcomers to install Emscripten and learn the
8 CMake options. Just type:
9
10 $ ./docker-build.sh Release
11
12 After successful build, the binaries will be installed in the
13 following folder (i.e. in the folder "wasm-binaries" at the root of
14 the source distribution):
15
16 $ ls -l ../../wasm-binaries
17
18
19 NB: The source code of the Docker build environment can be found at
20 the following location:
21 https://github.com/jodogne/OrthancDocker/tree/master/wasm-builder
22
23
24 Native compilation (without Docker)
25 ===================================
26
27 Install Emscripten:
28 https://emscripten.org/docs/getting_started/downloads.html
29
30 Then, if the installation path is "~/Downloads/emsdk/":
31
32 # source ~/Downloads/emsdk/emsdk_env.sh
33 # cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DALLOW_DOWNLOADS=ON -G Ninja