Double click the downloaded .msi installer file and follow the wizard to complete the installation. Important: Select the option “Add CMake to PATH” during the installation process to configure system environment variables automatically.
Open Command Prompt and execute the following command to validate installation success by checking the version information:
cmake--version
Dependency 2 — Visual Studio
Note
The recommended Visual Studio version is 2022. Other versions are not tested and the compatibility is not guaranteed.
Download and install Visual Studio. Important: During installation, select the Desktop development with C++ workload under the Desktop and Mobile Applications category.
OpenCV is an optional dependency. When not installed, OpenCV-dependent sample features (such as image saving) will be skipped, without affecting the overall compilation and running of the samples.
The recommended OpenCV version is 4.11.0. Other versions are not tested and the compatibility is not guaranteed.
Double-click the downloaded .exe file and record the installation path.
After extraction, configure the OpenCV library path in the system environment variables.
Detailed steps: Access the Environment Variables dialog box, select the “Path” entry, and click Edit. In the Edit Environment Variables dialog box, configure the OpenCV library path.
According to the build configuration (Release or Debug), copy all files from VcameraSDK-X.X.X/cpp/win/<buildconfiguration>/bin to the VcameraSDK-X.X.X/cpp/example/build/<buildconfiguration>/ directory. Do not mix files from different configurations.
If the sample program uses OpenCV, copy the corresponding .dll files from the build\x64\vc16\bin folder under the OpenCV installation directory to the output directory of the corresponding configuration, such as VcameraSDK-X.X.X/cpp/example/build/Release/ or VcameraSDK-X.X.X/cpp/example/build/Debug/.
Specific operations:
For the Release configuration, copy opencv_world<version>.dll (for example, opencv_world4120.dll).
For the Debug configuration, copy opencv_world<version>d.dll (for example, opencv_world4120d.dll).