The CVB++ API is a modern, object-oriented C++ wrapper for the core CVB SDK. It is implemented as a header-only library and provides a convenient and type-safe interface on top of the underlying C API. This design allows seamless integration into C++ projects without the need for separate library binaries or additional build steps.
To ensure long-term reliability and compatibility, CVB is built on a stable and well-defined core interface:
The CVB C-API maintains a stable application binary interface (ABI), ensuring that applications built against a specific version continue to work with newer CVB versions without requiring recompilation, as long as the interface contract remains unchanged.
To compile a CVB-based application using CMake, you first need to install CMake and ensure it is available in your system’s PATH.
If you want to generate a Microsoft Visual Studio solution or compile CVB code on any other platform using CMake, you need to create a CMakeLists.txt
file. Your CVB installation already includes sample projects with CMake support. You can find them in %CVB%%/Tutorial
(on Windows) or $CVB/tutorial
(on Linux). A list of all C++ example programs can also be found here.
A minimal CMakeLists.txt
starts with the required CMake version, the C++ standard to use, and the project name:
Next, add the following lines to locate the FindCVB.cmake
module, which is provided in %CVB%cmake
. This module allows CMake to find and correctly link against the necessary CVB libraries:
Then, define your executable and link it with the required CVB libraries using target_link_libraries
. All available CVB targets are defined in FindCVB.cmake
. To find out which CVB target corresponds to the namespaces and classes you are using, refer to the list of CVB libraries.
The CVB C++ wrapper is located in your CVB installation directory under CVB%\Lib\C\cvb
. All classes and functions are part of the Cvb
namespace. Additional namespaces and classes are used for specific functionality.
To use the wrapper, include the corresponding header file and call the functions via the Cvb
namespace:
To display images with CVB, you can use Qt. For more details, refer to C++ - Image Display Using Qt/QML.
C++ Example Programs in CVB Installation
Code Examples
C++ API Documentation
C++ - Image Display Using Qt/QML
CVB Development Workflow Overview