GenICam_SDK.docx
11
3.5 Examples
The SDK software package comes with a set of programming examples for C++. Currently there are
two examples included:
acquisition_basics
Demonstrates how to discover and open a device and how to acquire images.
Locations:
Windows:
C:\Users\Public\Documents\Chromasens\GCT2\examples\basic
Linux:
/usr/share/csgenicam/examples/basic
feature_iteration
Demonstrates how to iterate through the feature tree of a device and how to set / get
features.
Locations:
Windows:
C:\Users\Public\Documents\Chromasens\GCT2\examples\feature_iteration
Linux:
/usr/share/csgenicam/examples/feature_iteration
3.5.1 Build examples
To build the examples requires CMake version > v3.14 and a build environment. The steps to build the
examples are the same for both
Windows
and
Linux
:
1) Open the CMake GUI and select the examples root directory as the source folder of your project.
(
“Where is the source code”)
2) Next select a directory where to generate the project files, should be somewhere outside the
source tree.
(
“Where to build the binaries”)
3) Press the
“Configure” button. After the first configuration it is required to manually set the path
to the CSGenICam CMake configuration files:
4) Press
“Configure” again and “Generate” afterwards. The project is now configured and can be
opened and built from the directory selected in
“Where to build the binaries”.