comparison OrthancStone/Resources/Graveyard/Deprecated/Samples/WebAssembly/NOTES.txt @ 1512:244ad1e4e76a

reorganization of folders
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 Jul 2020 16:21:02 +0200
parents Resources/Graveyard/Deprecated/Samples/WebAssembly/NOTES.txt@553084468225
children bc4c50a53bd3
comparison
equal deleted inserted replaced
1511:9dfeee74c1e6 1512:244ad1e4e76a
1 Docker SJO
2 ==========
3
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
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".
11
12
13 Docker BGO
14 ==========
15
16 On Ubuntu WSL
17 -------------
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
24 ninja install
25
26 Then, on Windows
27 -----------------
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
29
30 # WAIT A COUPLE OF SECS
31 # if the archive has NOT already been unzipped, unzip it
32 # upload dicom files to running orthanc
33
34 cd C:\osi\dev\twiga-orthanc-viewer\demo\dicomfiles
35 if (-not (test-path RTVIEWER-c8febcc6-eb9e22a4-130f208c-e0a6a4cd-4d432c57)) { unzip RTVIEWER-c8febcc6-eb9e22a4-130f208c-e0a6a4cd-4d432c57.zip}
36 ImportDicomFiles.ps1 127.0.0.1 8042 .\RTVIEWER-c8febcc6-eb9e22a4-130f208c-e0a6a4cd-4d432c57\
37
38 --> localhost:8042 --> Plugins --> serve-folders --> stone --> ...
39
40 Local BGO
41 ==========
42
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
49
50
51
52 TODO: Orthanc.exe
53
54
55 Local SJO
56 ==========
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
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