In our case we got opencv-4.5.5-vc14_vc15.exe Win pack installer.
If your camera is a PointGrey you may install Fl圜apture 3rd party, while if your camera is a Basler, you may rather install Pylon 3rd party. If you have an Intel Realsense depth camera you may also install librealsense 3rd party. Then to use optimized matrix operations you may install Eigen3 3rd party. We recommend first to install OpenCV 3rd party in the workspace. ViSP is interfaced with several 3rd party libraries. You can later come back to the Advanced ViSP installation. To have a trial, just jump to Install ViSP data set before running some binaries that you just build or jump to Next tutorial.
Set VISP_DIR var to help CMake to find ViSP as a 3rd party C:\> setx VISP_DIR "%VISP_WS%\visp-build-vc17\install".Click "New" button to add a new line with %VISP_WS%\visp-build-vc17\install\圆4\vc17\bin.The "Edit environment variable" UI will appear.Under the "User Variables" section (the upper half), find the row with "Path" in the first column, and click edit.Click the "Environment Variables." button.Open the Start Search, type in "env", and choose "Edit environment variables for your account".To modify Path environment variable do the following: Modify the Path var to add %VISP_WS%\visp-build-vc17\install\圆4\vc17\bin corresponding to the path to ViSP libraries.ViSP is now installed in %VISP_WS%\visp-build-vc17\install folder.Build and install ViSP (installation doesn't need administrator privileges) C:\> cmake -build.
Run CMake in build directory (here the generator is chosen for Visual Studio 17 2022): C:\> cmake -G "Visual Studio 17 2022" -A "圆4" %VISP_WS%\visp.Create a build directory C:\> mkdir %VISP_WS%\visp-build-vc17.Open a new cmd Command Prompt and get ViSP source code in the workspace C:\> cd %VISP_WS%.In this section, we give minimal instructions to build ViSP from source just to try ViSP without entering in Advanced ViSP installation. Open a new cmd Command Prompt and create the corresponding folder C:\> mkdir %VISP_WS% Then, type cmd or cmd.exe and press Enter or click/tap OK) and run the following to create a workspace environment var named VISP_WS: C:\> setx VISP_WS "C:\visp-ws" To create the workspace, open a cmd Command Prompt (a fast way to launch this window is to press the Win + R keys on your keyboard. This workspace is here set to C:\visp-ws folder, but it could be set to any other location. If not already done, create a workspace that will contain all ViSP source, build, data set and optional 3rd parties. This installation allows then to use git in a cmd Command Prompt. To install just double click on the msi file. Download the latest release for Windows win64-圆4 platform (at the time this tutorial was written it was the file cmake-3.22.1-windows-x86_64.msi).
These steps have been tested on Windows 10 (64 bit), with CMake 3.22.1 and Visual Studio Community 2022.
In this tutorial you will learn how to install ViSP from source on Windows 10 with Visual C++.