annotate Samples/WebAssembly/NOTES.txt @ 1279:7ec8fea061b9 broker

integration mainline->broker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Feb 2020 15:20:08 +0100
parents 64e5f3ff6360
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
832
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
1 Docker SJO
833
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
2 ==========
826
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
3
631
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 $ source ~/Downloads/emsdk/emsdk_env.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 $ cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DALLOW_DOWNLOADS=ON .. -DCMAKE_INSTALL_PREFIX=/tmp/stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 $ ninja install
826
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
7 $ docker run -p 4242:4242 -p 8042:8042 --rm -v /tmp/stone:/root/stone:ro -v /tmp/stone-db/:/var/lib/orthanc/db/ jodogne/orthanc-plugins:latest /root/stone/Configuration.json --verbose
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
8
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
9 WARNING: This won't work using "orthanc-plugins:1.5.6", as support for
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
10 PAM is mandatatory in "/instances/.../image-uint16".
752
6030db24eaea Fixed wasm sample (BasicScene) according to changes (ViewportController) +
Benjamin Golinvaux <bgo@osimis.io>
parents: 631
diff changeset
11
833
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
12
832
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
13 Docker BGO
833
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
14 ==========
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
15
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
16 On Ubuntu WSL
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
17 -------------
832
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
18 . ~/apps/emsdk/emsdk_env.sh
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
19 cd /mnt/c/osi/dev/
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
20 mkdir -p build_stone_newsamples_wasm_wsl
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
21 mkdir -p build_install_stone_newsamples_wasm_wsl
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
22 cd build_stone_newsamples_wasm_wsl
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
23 cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DALLOW_DOWNLOADS=ON /mnt/c/osi/dev/orthanc-stone/Samples/WebAssembly -DCMAKE_INSTALL_PREFIX=/mnt/c/osi/dev/build_install_stone_newsamples_wasm_wsl
752
6030db24eaea Fixed wasm sample (BasicScene) according to changes (ViewportController) +
Benjamin Golinvaux <bgo@osimis.io>
parents: 631
diff changeset
24 ninja install
6030db24eaea Fixed wasm sample (BasicScene) according to changes (ViewportController) +
Benjamin Golinvaux <bgo@osimis.io>
parents: 631
diff changeset
25
839
c47031d9f6b1 Added dose struct load in (ongoing) FusionMprSample + doc change
Benjamin Golinvaux <bgo@osimis.io>
parents: 833
diff changeset
26 Then, on Windows
c47031d9f6b1 Added dose struct load in (ongoing) FusionMprSample + doc change
Benjamin Golinvaux <bgo@osimis.io>
parents: 833
diff changeset
27 -----------------
833
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
28 docker run -p 4242:4242 -p 8042:8042 --rm -v "C:/osi/dev/build_install_stone_newsamples_wasm_wsl:/root/stone:ro" jodogne/orthanc-plugins:1.5.6 /root/stone/Configuration.json --verbose
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
29
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
30 # WAIT A COUPLE OF SECS
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
31 # if the archive has NOT already been unzipped, unzip it
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
32 # upload dicom files to running orthanc
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
33
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
34 cd C:\osi\dev\twiga-orthanc-viewer\demo\dicomfiles
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
35 if (-not (test-path RTVIEWER-c8febcc6-eb9e22a4-130f208c-e0a6a4cd-4d432c57)) { unzip RTVIEWER-c8febcc6-eb9e22a4-130f208c-e0a6a4cd-4d432c57.zip}
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
36 ImportDicomFiles.ps1 127.0.0.1 8042 .\RTVIEWER-c8febcc6-eb9e22a4-130f208c-e0a6a4cd-4d432c57\
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
37
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
38 --> localhost:8042 --> Plugins --> serve-folders --> stone --> ...
826
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
39
832
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
40 Local BGO
833
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
41 ==========
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
42
832
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
43 . ~/apps/emsdk/emsdk_env.sh
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
44 cd /mnt/c/osi/dev/
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
45 mkdir -p build_stone_newsamples_wasm_wsl
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
46 mkdir -p build_install_stone_newsamples_wasm_wsl
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
47 cd build_stone_newsamples_wasm_wsl
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
48 cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DALLOW_DOWNLOADS=ON /mnt/c/osi/dev/orthanc-stone/Samples/WebAssembly -DCMAKE_INSTALL_PREFIX=/mnt/c/osi/dev/build_install_stone_newsamples_wasm_wsl
826
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
49
833
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
50
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
51
832
46f0034c3111 reformat NOTES.txt
Benjamin Golinvaux <bgo@osimis.io>
parents: 826
diff changeset
52 TODO: Orthanc.exe
826
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
53
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
54
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
55 Local SJO
833
d492c3b71c65 Removed assert in Broker + reformatted notes on wasm samples
Benjamin Golinvaux <bgo@osimis.io>
parents: 832
diff changeset
56 ==========
826
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
57
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
58 $ source ~/Downloads/emsdk/emsdk_env.sh
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
59 $ cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DALLOW_DOWNLOADS=ON .. -DCMAKE_INSTALL_PREFIX=/tmp/stone
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
60 $ ninja install
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
61
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
62 $ make -C ~/Subversion/orthanc/r -j4
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
63 $ make -C ~/Subversion/orthanc-webviewer/r -j4
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
64 $ ~/Subversion/orthanc/r/Orthanc ../ConfigurationLocalSJO.json
2de01660debe reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 820
diff changeset
65
904
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
66
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
67 Local AM
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
68 ========
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
69
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
70 . ~/apps/emsdk/emsdk_env.sh
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
71 cd /mnt/c/o/
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
72 mkdir -p build_stone_newsamples_wasm_wsl
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
73 mkdir -p build_install_stone_newsamples_wasm_wsl
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
74 cd build_stone_newsamples_wasm_wsl
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
75 cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/fastcomp/emscripten/cmake/Modules/Platform/Emscripten.cmake -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=/mnt/c/o/orthanc/ -DCMAKE_BUILD_TYPE=Release -DALLOW_DOWNLOADS=ON /mnt/c/o/orthanc-stone/Samples/WebAssembly -DCMAKE_INSTALL_PREFIX=/mnt/c/o/build_install_stone_newsamples_wasm_wsl
ecdb2ceaa925 notes for AM build
Alain Mazy <alain@mazy.be>
parents: 839
diff changeset
76 ninja