Mercurial > hg > orthanc-stone
annotate Samples/WebAssembly/NOTES.txt @ 1058:a36c47487a70 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Oct 2019 13:38:35 +0200 |
parents | 64e5f3ff6360 |
children |
rev | line source |
---|---|
832 | 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 | 3 |
631 | 4 $ source ~/Downloads/emsdk/emsdk_env.sh |
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 | |
6 $ ninja install | |
826 | 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 |
8 | |
9 WARNING: This won't work using "orthanc-plugins:1.5.6", as support for | |
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 | 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 | 18 . ~/apps/emsdk/emsdk_env.sh |
19 cd /mnt/c/osi/dev/ | |
20 mkdir -p build_stone_newsamples_wasm_wsl | |
21 mkdir -p build_install_stone_newsamples_wasm_wsl | |
22 cd build_stone_newsamples_wasm_wsl | |
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 | 39 |
832 | 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 | 43 . ~/apps/emsdk/emsdk_env.sh |
44 cd /mnt/c/osi/dev/ | |
45 mkdir -p build_stone_newsamples_wasm_wsl | |
46 mkdir -p build_install_stone_newsamples_wasm_wsl | |
47 cd build_stone_newsamples_wasm_wsl | |
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 | 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 | 52 TODO: Orthanc.exe |
826 | 53 |
54 | |
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 | 57 |
58 $ source ~/Downloads/emsdk/emsdk_env.sh | |
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 | |
60 $ ninja install | |
61 | |
62 $ make -C ~/Subversion/orthanc/r -j4 | |
63 $ make -C ~/Subversion/orthanc-webviewer/r -j4 | |
64 $ ~/Subversion/orthanc/r/Orthanc ../ConfigurationLocalSJO.json | |
65 | |
904 | 66 |
67 Local AM | |
68 ======== | |
69 | |
70 . ~/apps/emsdk/emsdk_env.sh | |
71 cd /mnt/c/o/ | |
72 mkdir -p build_stone_newsamples_wasm_wsl | |
73 mkdir -p build_install_stone_newsamples_wasm_wsl | |
74 cd build_stone_newsamples_wasm_wsl | |
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 | |
76 ninja |