Mercurial > hg > orthanc-stone
annotate Deprecated/Samples/README.md @ 1473:9cbc6d21ae89
SeriesThumbnailsLoader::SuccessMessage::DecodeImage(), fix static builds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jun 2020 18:02:49 +0200 |
parents | 65e1e4b08302 |
children |
rev | line source |
---|---|
1361
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
1 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
2 **These samples are deprecated and not guaranteed to work. A migration to a |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
3 new version of the Stone API is underway.** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
4 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
5 Please read orthanc-stone/Samples/README.md first for general requirements. |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
6 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
7 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
8 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
9 Deprecated -- to be sorted |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
10 =========================== |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
11 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
12 The following assumes that the source code to be downloaded in |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
13 `~/orthanc-stone` and Orthanc source code to be checked out in |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
14 `~/orthanc`. |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
15 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
16 Building the WASM samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
17 ------------------------------------- |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
18 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
19 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
20 cd ~/orthanc-stone/Applications/Samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
21 ./build-wasm.sh |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
22 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
23 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
24 Serving the WASM samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
25 ------------------------------------ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
26 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
27 # launch an Orthanc listening on 8042 port: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
28 Orthanc |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
29 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
30 # launch an nginx that will serve the WASM static files and reverse |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
31 # proxy |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
32 sudo nginx -p $(pwd) -c nginx.local.conf |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
33 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
34 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
35 You can now open the samples in http://localhost:9977 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
36 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
37 Building the SDL native samples (SimpleViewer only) |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
38 --------------------------------------------------- |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
39 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
40 The following also assumes that you have checked out the Orthanc |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
41 source code in an `orthanc` folder next to the Stone of Orthanc |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
42 repository, please enter the following: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
43 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
44 **Simple make generator with dynamic build** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
45 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
46 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
47 # Please set $currentDir to the current folder |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
48 mkdir -p ~/builds/orthanc-stone-build |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
49 cd ~/builds/orthanc-stone-build |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
50 cmake -DORTHANC_FRAMEWORK_SOURCE=path \ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
51 -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc \ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
52 -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON \ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
53 ~/orthanc-stone/Applications/Samples/ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
54 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
55 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
56 **Ninja generator with static SDL build (pwsh script)** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
57 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
58 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
59 # Please yourself one level above the orthanc-stone and orthanc folders |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
60 if( -not (test-path stone_build_sdl)) { mkdir stone_build_sdl } |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
61 cd stone_build_sdl |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
62 cmake -G Ninja -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples/ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
63 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
64 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
65 **Ninja generator with static SDL build (bash/zsh script)** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
66 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
67 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
68 # Please yourself one level above the orthanc-stone and orthanc folders |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
69 if( -not (test-path stone_build_sdl)) { mkdir stone_build_sdl } |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
70 cd stone_build_sdl |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
71 cmake -G Ninja -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="`pwd`/../orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples/ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
72 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
73 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
74 **Visual Studio 2017 generator with static SDL build (pwsh script)** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
75 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
76 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
77 # The following will use Visual Studio 2017 to build the SDL samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
78 # in debug mode (with multiple compilers in parallel). NOTE: place |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
79 # yourself one level above the `orthanc-stone` and `orthanc` folders |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
80 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
81 if( -not (test-path stone_build_sdl)) { mkdir stone_build_sdl } |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
82 cd stone_build_sdl |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
83 cmake -G "Visual Studio 15 2017 Win64" -DMSVC_MULTIPLE_PROCESSES=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples/ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
84 cmake --build . --config Debug |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
85 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
86 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
87 If you are working on Windows, add the correct generator option to |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
88 cmake to, for instance, generate msbuild files for Visual Studio. |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
89 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
90 Then, under Linux: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
91 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
92 cmake --build . --target OrthancStoneSimpleViewer -- -j 5 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
93 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
94 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
95 Note: replace `$($pwd)` with the current directory when not using Powershell |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
96 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
97 Building the Qt native samples (SimpleViewer only) under Windows: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
98 ------------------------------------------------------------------ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
99 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
100 **Visual Studio 2017 generator with static Qt build (pwsh script)** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
101 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
102 For instance, if Qt is installed in `C:\Qt\5.12.0\msvc2017_64` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
103 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
104 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
105 # The following will use Visual Studio 2017 to build the SDL samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
106 # in debug mode (with multiple compilers in parallel). NOTE: place |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
107 # yourself one level above the `orthanc-stone` and `orthanc` folders |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
108 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
109 if( -not (test-path stone_build_qt)) { mkdir stone_build_qt } |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
110 cd stone_build_qt |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
111 cmake -G "Visual Studio 15 2017 Win64" -DMSVC_MULTIPLE_PROCESSES=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DCMAKE_PREFIX_PATH=C:\Qt\5.12.0\msvc2017_64 -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_QT=ON ../orthanc-stone/Applications/Samples/ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
112 cmake --build . --config Debug |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
113 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
114 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
115 Note: replace `$($pwd)` with the current directory when not using Powershell |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
116 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
117 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
118 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
119 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
120 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
121 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
122 Building the SDL native samples (SimpleViewer only) under Windows: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
123 ------------------------------------------------------------------ |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
124 `cmake -DSTATIC_BUILD=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON -G "Visual Studio 15 2017 Win64" ../orthanc-stone/Applications/Samples/` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
125 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
126 Note: replace `$($pwd)` with the current directory when not using Powershell |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
127 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
128 Executing the native samples: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
129 -------------------------------- |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
130 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
131 # launch an Orthanc listening on 8042 port: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
132 Orthanc |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
133 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
134 # launch the sample |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
135 ./OrthancStoneSimpleViewer --studyId=XX |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
136 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
137 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
138 Build the Application Samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
139 ----------------------------- |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
140 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
141 **Visual Studio 2008 (v90) ** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
142 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
143 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
144 cmake -G "Visual Studio 9 2008" -DUSE_LEGACY_JSONCPP=ON -DENABLE_OPENGL=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
145 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
146 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
147 **Visual Studio 2019 (v142) ** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
148 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
149 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
150 cmake -G "Visual Studio 16 2019" -A x64 -DMSVC_MULTIPLE_PROCESSES=ON -DENABLE_OPENGL=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
151 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
152 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
153 **Visual Studio 2017 (v140) ** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
154 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
155 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
156 cmake -G "Visual Studio 15 2017 Win64" -DMSVC_MULTIPLE_PROCESSES=ON -DENABLE_OPENGL=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
157 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
158 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
159 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
160 Build the core Samples |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
161 --------------------------- |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
162 How to build the newest (2019-04-29) SDL samples under Windows, *inside* a |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
163 folder that is sibling to the orthanc-stone folder: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
164 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
165 **Visual Studio 2019 (v142) ** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
166 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
167 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
168 cmake -G "Visual Studio 16 2019" -A x64 -DMSVC_MULTIPLE_PROCESSES=ON -DENABLE_OPENGL=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Samples/Sdl |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
169 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
170 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
171 **Visual Studio 2017 (v140) ** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
172 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
173 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
174 cmake -G "Visual Studio 15 2017 Win64" -DMSVC_MULTIPLE_PROCESSES=ON -DENABLE_OPENGL=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Samples/Sdl |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
175 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
176 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
177 **Visual Studio 2008 (v90) ** |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
178 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
179 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
180 cmake -G "Visual Studio 9 2008" -DUSE_LEGACY_JSONCPP=ON -DENABLE_OPENGL=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Samples/Sdl |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
181 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
182 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
183 And under Ubuntu (note the /mnt/c/osi/dev/orthanc folder): |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
184 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
185 cmake -G "Ninja" -DENABLE_OPENGL=ON -DSTATIC_BUILD=OFF -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="/mnt/c/osi/dev/orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Samples/Sdl |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
186 ``` |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
187 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
188 TODO trackers: |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
189 - CANCELLED (using outlined text now) text overlay 50% --> ColorTextureLayer 50% |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
190 - DONE angle tracker: draw arcs |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
191 - Handles on arc |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
192 - Select measure tool with hit test --> Delete command |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
193 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
194 |
bd26e09903c0
Some even more real doc
Benjamin Golinvaux <bgo@osimis.io>
parents:
1359
diff
changeset
|
195 |