Imaging Control 4 C Library 1.2.0
|
To help setting up projects, the installer sets two environment variables:
IC4PATH
points to the installation directoryPATH
is extended to include IC4PATH%\bin
The IC Imaging Control 4 installer puts the include, library and binary files into
IC4PATH%\include
IC4PATH%\lib
IC4PATH%\bin
The ic4 SDK for Linux is split into several .deb packages.
Contains the ic4 core libraries.
Contains ic4-ctrl binary. Useful for debugging purposes.
Contains:
This package is required when compiling C or C++ applications using ic4.
Contains html documentation for all language bindings of ic4.
Contains plugin allowing ic4 to save h264/h265 videos via GStreamer.
Contains plugin allowing ic4 to display images via OpenGL.
Contains ic4-demoapp and ic4-device-manager.
To compile a C program using IC Imaging Control 4 C Library, include files and libraries have to be found by the project in some way. The specifics depend on the type of project being used.
Add the following line to your CMakeLists.txt
to instuct CMake to look for the ic4 library package:
Then, add ic4::core
to the target_link_libraries
section for your executable. CMake will then automatically add the proper include pathes and library options to your project.
To copy the ic4 binary files to your output directory, use the ic4_copy_runtime_to_target
function.
The minimum CMakeLists.txt for a ic4 C project looks like this:
Add this code to your main C file to check whether project setup was successful: