Mercurial > hg > orthanc-stone
comparison README @ 265:30dc6e383b0b am-2
documented how to build the native sample
author | am@osimis.io |
---|---|
date | Tue, 21 Aug 2018 16:48:25 +0200 |
parents | 6b98ac45aaee |
children | b04b13810540 |
comparison
equal
deleted
inserted
replaced
264:6b98ac45aaee | 265:30dc6e383b0b |
---|---|
89 Stone of Orthanc comes with several sample applications in the | 89 Stone of Orthanc comes with several sample applications in the |
90 "Samples" folder. These samples can be compiled into Web Assembly | 90 "Samples" folder. These samples can be compiled into Web Assembly |
91 or into native SDL applications. | 91 or into native SDL applications. |
92 | 92 |
93 to build the WASM samples: | 93 to build the WASM samples: |
94 ------------------------- | |
94 ``` | 95 ``` |
95 cd ~/orthanc-stone/Platforms/Wasm | 96 cd ~/orthanc-stone/Platforms/Wasm |
96 ./build-wasm.sh | 97 ./build-wasm.sh |
97 ``` | 98 ``` |
98 | 99 |
103 | 104 |
104 # launch an nginx that will serve the WASM static files and reverse proxy Orthanc | 105 # launch an nginx that will serve the WASM static files and reverse proxy Orthanc |
105 sudo nginx -p $(pwd) -c nginx.local.conf | 106 sudo nginx -p $(pwd) -c nginx.local.conf |
106 ``` | 107 ``` |
107 Now, you can open the samples in http://localhost:9977 | 108 Now, you can open the samples in http://localhost:9977 |
109 | |
110 to build the SDL native samples (SimpleViewer only): | |
111 ------------------------------- | |
112 ``` | |
113 mkdir -p ~/builds/orthanc-stone-build | |
114 cd ~/builds/orthanc-stone-build | |
115 cmake -DALLOW_DOWNLOADS=ON ~/orthanc-stone/ | |
116 cmake --build . --target OrthancStoneSimpleViewer -- -j 5 | |
117 ``` | |
118 | |
119 to execute the native samples: | |
120 ``` | |
121 # launch an Orthanc listening on 8042 port: | |
122 Orthanc | |
123 | |
124 # launch the sample | |
125 ./OrthancStoneSimpleViewer --instance1=XX --instance2=XX | |
126 ``` | |
108 | 127 |
109 | 128 |
110 Licensing | 129 Licensing |
111 --------- | 130 --------- |
112 | 131 |