Mercurial > hg > orthanc-stone
annotate Applications/StoneWebViewer/WebAssembly/NOTES.txt @ 1584:bd180f97c734
parsing osirix annotations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 21 Oct 2020 17:33:17 +0200 |
parents | 65eccce95882 |
children | 18384efed33d |
rev | line source |
---|---|
1537
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
1 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
2 Building WebAssembly samples using Docker |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
3 ========================================= |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
4 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
5 The script "./docker-build.sh" can be used to quickly build the |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
6 WebAssembly samples on any GNU/Linux distribution equipped with |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
7 Docker. This avoids newcomers to install Emscripten and learn the |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
8 CMake options. Just type: |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
9 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
10 $ ./docker-build.sh Release |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
11 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
12 After successful build, the binaries will be installed in the |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
13 following folder (i.e. in the folder "wasm-binaries" at the root of |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
14 the source distribution): |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
15 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
16 $ ls -l ../../wasm-binaries |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
17 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
18 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
19 NB: The source code of the Docker build environment can be found at |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
20 the following location: |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
21 https://github.com/jodogne/OrthancDocker/tree/master/wasm-builder |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
22 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
23 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
24 Native compilation (without Docker) |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
25 =================================== |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
26 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
27 Install Emscripten: |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
28 https://emscripten.org/docs/getting_started/downloads.html |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
29 |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
30 Then, if the installation path is "~/Downloads/emsdk/": |
de8cf5859e84
removing useless docker-build.sh from the two plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1531
diff
changeset
|
31 |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 # source ~/Downloads/emsdk/emsdk_env.sh |
1531
d3cafeef07bb
fix for new interface of Orthanc::ParsedDicomFile::ExtractDicomSummary()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
33 # cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DALLOW_DOWNLOADS=ON -G Ninja |
1548
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1544
diff
changeset
|
34 # ninja install |
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1544
diff
changeset
|
35 |
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1544
diff
changeset
|
36 => The binaries will be put in "../../../wasm-binaries/StoneWebViewer/" |