README.md 1.37 KB
Newer Older
1
Test application that uses SIGHT SDK.
2 3 4

## Build instructions

5
### Configuration
6

7
```
8
# ccmake -DSight_DIR=/path/to/sight/lib/cmake/sight -G Ninja ../ 
9 10
```

11 12
This will build a sample application that uses sight bundles and libraries. That will also build a custom bundle.

13
### Runtime 
14

15
- For Windows, add the path to the sight libraries to the `PATH` variable `PATH=%PATH%;C:\Path\to\sight\bin`
16
- For Linux, add the path to the sight libraries to the `LD_LIBRARY_PATH` variable `LD_LIBRARY_PATH="/path/to/sight/lib;/path/to/sight/lib/sight`
17

18
### Launch sight-sdk-sample
19

20
The output of the application should look like:
21 22

```
23
# ./sight-sdk-sample
24 25 26 27 28 29 30 31 32

time 1.53536e+15
time ::fwRuntime::EConfigurationElement
patient Breath-Expi^patient
time ::fwServices::SConfigController
sbutton ::guiQt::editor::SSignalButton
time ::maths::SConcatenateMatrices
```

33
Besides this, a modified copy of Tuto01Basic shows that you can also build a XML application outside Sight. To run this application, just type something like:
34 35

```
36
LD_LIBRARY_PATH="/path/to/sight/lib;/path/to/sight/lib/sight" /path/to/sight/bin/fwlauncher share/sight/TutoSDK-0.1/profile.xml -B "share/sight"
37 38 39 40
```

The main difference comparing to the classic usage, is the use of the `-B` switch to specify the bundles location. You must specify the location of the bundles from the SDK, and the location 
of the custom bundles built from this repository.