Programming examples using the Vimba X C API "VmbC".
THE SOFTWARE IS PRELIMINARY AND STILL IN TESTING AND VERIFICATION PHASE AND IS PROVIDED ON AN “AS IS” AND “AS AVAILABLE” BASIS AND IS BELIEVED TO CONTAIN DEFECTS. A PRIMARY PURPOSE OF THIS EARLY ACCESS IS TO OBTAIN FEEDBACK ON PERFORMANCE AND THE IDENTIFICATION OF DEFECT SOFTWARE, HARDWARE AND DOCUMENTATION.
- cmake (>= 3.21)
- Vimba X
- Qt 5.15.x (optional)
- Linux: gcc/g++ (>= 8.4.0)
- Windows: Microsoft Visual Studio (>= 2017)
Before running CMake to initialize the project, rename CMakeUserPresets.json.TEMPLATE
to CMakeUserPresets.json
.
Depending on your desired configuration and platform, you need to specify the path to your VmbAPI and Qt installation directory.
Open the file in an editor and adjust the following variables according to your local setup as follows:
-
VmbAPI:
In the configurePreset
win64
, set the value ofVMB_API_PATH
to your local VmbAPI installation. The path must point to the root directory of your VmbAPI installation, e.g.:"VMB_API_PATH": "C:/Program Files/Allied Vision/Vimba X/api/"
-
Qt:
If you want to build the Qt examples, you need to set the Qt path:
In the configurePreset
win64
, set the value ofQT_PATH
to your local Qt installation, e.g.:"QT_PATH": "C:/Qt/5.15.2/msvc2019_64"
Similar to Windows, adjust VMB_API_PATH
for VmbAPI and QT_PATH
for Qt for your desired Linux configuration:
linux64
(will be inherited bylinux64-debug
)arm64
(will be inherited byarm64-debug
)
Run CMake with your desired configuration preset to create your build system project files.
$ cmake --preset <PRESET>
e.g.: $ cmake --preset win64
All available presets can be listed with:
$ cmake --list-presets
The configuration step will create a Visual Studio Solution VmbCExamples.sln
in the folder specified in the configurePreset win64
, the default is build-win64
.
Makefiles will be created in the specified build folder, e.g. build-linux64
Use the CMake build presets to build a default set of targets for your configuration preset.
$ cmake --build --preset <PRESET>
e.g.: $ cmake --build --preset win64
You can adjust the build preset in CMakeUserPresets.json
to your needs.