Luis MENDOZA committed Sep 17, 2018 1 Test application that uses SIGHT SDK.  Flavien BRIDAULT-LOUCHEZ committed Aug 27, 2018 2 3 4  ## Build instructions  Flavien BRIDAULT-LOUCHEZ committed Jun 04, 2020 5 ### Configuration  Luis MENDOZA committed Sep 17, 2018 6   Flavien BRIDAULT-LOUCHEZ committed Aug 27, 2018 7   Flavien BRIDAULT-LOUCHEZ committed Jun 04, 2020 8 # ccmake -DSight_DIR=/path/to/sight/lib/cmake/sight -G Ninja ../  Flavien BRIDAULT-LOUCHEZ committed Aug 27, 2018 9 10   Luis MENDOZA committed Sep 17, 2018 11 12 This will build a sample application that uses sight bundles and libraries. That will also build a custom bundle.  Flavien BRIDAULT-LOUCHEZ committed Jun 04, 2020 13 ### Runtime  Luis MENDOZA committed Sep 17, 2018 14   Flavien BRIDAULT-LOUCHEZ committed Jun 05, 2020 15 - For Windows, add the path to the sight libraries to the PATH variable PATH=%PATH%;C:\Path\to\sight\bin  Flavien BRIDAULT-LOUCHEZ committed Jun 04, 2020 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  Luis MENDOZA committed Sep 17, 2018 17   Flavien BRIDAULT-LOUCHEZ committed Jun 04, 2020 18 ### Launch sight-sdk-sample  Luis MENDOZA committed Sep 17, 2018 19   Flavien BRIDAULT-LOUCHEZ committed Sep 24, 2018 20 The output of the application should look like:  Flavien BRIDAULT-LOUCHEZ committed Aug 27, 2018 21 22    Flavien BRIDAULT-LOUCHEZ committed Jun 04, 2020 23 # ./sight-sdk-sample  Flavien BRIDAULT-LOUCHEZ committed Aug 27, 2018 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   Flavien BRIDAULT-LOUCHEZ committed Jun 05, 2020 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:  Flavien BRIDAULT-LOUCHEZ committed Aug 27, 2018 34 35    Flavien BRIDAULT-LOUCHEZ committed Jun 05, 2020 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"  Flavien BRIDAULT-LOUCHEZ committed Aug 27, 2018 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.