Mercurial > hg > orthanc-stone
comparison README @ 264:6b98ac45aaee am-2
documented how to compile and execute WASM samples
author | am@osimis.io |
---|---|
date | Tue, 21 Aug 2018 16:36:01 +0200 |
parents | 84844649a8fd |
children | 30dc6e383b0b |
comparison
equal
deleted
inserted
replaced
262:77fdab5b5d6e | 264:6b98ac45aaee |
---|---|
85 | 85 |
86 Usage details are available as part of the Orthanc Book: | 86 Usage details are available as part of the Orthanc Book: |
87 http://book.orthanc-server.com/developers/stone.html | 87 http://book.orthanc-server.com/developers/stone.html |
88 | 88 |
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 use SDL. | 90 "Samples" folder. These samples can be compiled into Web Assembly |
91 or into native SDL applications. | |
92 | |
93 to build the WASM samples: | |
94 ``` | |
95 cd ~/orthanc-stone/Platforms/Wasm | |
96 ./build-wasm.sh | |
97 ``` | |
98 | |
99 to serve the WASM samples: | |
100 ``` | |
101 # launch an Orthanc listening on 8042 port: | |
102 Orthanc | |
103 | |
104 # launch an nginx that will serve the WASM static files and reverse proxy Orthanc | |
105 sudo nginx -p $(pwd) -c nginx.local.conf | |
106 ``` | |
107 Now, you can open the samples in http://localhost:9977 | |
91 | 108 |
92 | 109 |
93 Licensing | 110 Licensing |
94 --------- | 111 --------- |
95 | 112 |