diff 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
line wrap: on
line diff
--- a/README	Tue Aug 21 16:36:01 2018 +0200
+++ b/README	Tue Aug 21 16:48:25 2018 +0200
@@ -91,6 +91,7 @@
 or into native SDL applications.
 
 to build the WASM samples:
+-------------------------
 ```
 cd ~/orthanc-stone/Platforms/Wasm
 ./build-wasm.sh
@@ -106,6 +107,24 @@
 ```
 Now, you can open the samples in http://localhost:9977
 
+to build the SDL native samples (SimpleViewer only):
+-------------------------------
+```
+mkdir -p ~/builds/orthanc-stone-build
+cd ~/builds/orthanc-stone-build
+cmake -DALLOW_DOWNLOADS=ON ~/orthanc-stone/
+cmake --build . --target OrthancStoneSimpleViewer -- -j 5
+```
+
+to execute the native samples:
+```
+# launch an Orthanc listening on 8042 port:
+Orthanc
+
+# launch the sample
+./OrthancStoneSimpleViewer --instance1=XX --instance2=XX
+``` 
+
 
 Licensing
 ---------