Mercurial > hg > orthanc-stone
comparison Samples/WebAssembly/NOTES.txt @ 860:238693c3bc51 am-dev
merge default -> am-dev
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 24 Jun 2019 14:35:00 +0200 |
parents | c47031d9f6b1 |
children | 5cfb479fdbde ecdb2ceaa925 |
comparison
equal
deleted
inserted
replaced
856:a6e17a5a39e7 | 860:238693c3bc51 |
---|---|
1 Docker SJO | |
2 ========== | |
3 | |
1 $ source ~/Downloads/emsdk/emsdk_env.sh | 4 $ source ~/Downloads/emsdk/emsdk_env.sh |
2 $ cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DALLOW_DOWNLOADS=ON .. -DCMAKE_INSTALL_PREFIX=/tmp/stone | 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 |
3 $ ninja install | 6 $ ninja install |
4 $ sudo docker run -p 4242:4242 -p 8042:8042 --rm -v /tmp/stone:/root/stone:ro jodogne/orthanc-plugins:1.5.6 /root/stone/Configuration.json --verbose | 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 |