Visual Servoing Platform
version 3.6.1 under development (2024-11-28)
|
In this tutorial you will learn how to install ViSP from source on Windows 10 with Visual C++. These steps have been tested on Windows 10 (64 bit), with CMake 3.22.1 and Visual Studio Community 2022.
Visual Studio Community 2022 could be downloaded from https://www.visualstudio.com/downloads/. During a fresh installation enable "Desktop development with C++" workload.
If you already have Visual Studio Community 2022, you can check if "Desktop Development with C++" workload is activated following instructions given here that we resume:
CMake could be download from http://www.cmake.org. Download the latest release for Windows win64-x64 platform (at the time this tutorial was written it was the file cmake-3.22.1-windows-x86_64.msi
). To install just double click on the msi
file.
Install Git for Windows from https://git-for-windows.github.io/. This installation allows then to use git in a cmd
Command Prompt.
If not already done, create a workspace that will contain all ViSP source, build, data set and optional 3rd parties. This workspace is here set to C:\visp-ws
folder, but it could be set to any other location.
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. 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" C:\> exit
Open a new cmd
Command Prompt and create the corresponding folder
C:\> mkdir %VISP_WS% C:\> exit
In this section, we give minimal instructions to build ViSP from source just to try ViSP without entering in Advanced ViSP installation.
cmd
Command Prompt and get ViSP source code in the workspace C:\> cd %VISP_WS% C:\> git clone https://github.com/lagadic/visp.git
C:\> mkdir visp-build-vc17 C:\> cd visp-build-vc17
C:\> cmake -G "Visual Studio 17 2022" -A "x64" ..\visp
C:\> cmake --build . --config Release --target install
%VISP_WS%\visp-build-vc17\install
folderPath
var to add %VISP_WS%\visp-build-vc17\install\x64\vc17\bin
corresponding to the path to ViSP libraries. To modify Path
environment variable do the following:%VISP_WS%\visp-build-vc17\install\x64\vc17\bin
VISP_DIR
var to help CMake to find ViSP as a 3rd party C:\> setx VISP_DIR "%VISP_WS%\visp-build-vc17\install" C:\> exit
To have a trial, just jump to Install ViSP data set before running some binaries that you just build or jump to Next tutorial. You can later come back to the Advanced ViSP installation.
ViSP is interfaced with several 3rd party libraries. Follow the link to see the complete list of Supported Third-Party Libraries. We recommend first to install OpenCV 3rd party in the workspace. Then to use optimized matrix operations you may install Eigen3 3rd party. If you have an Intel Realsense depth camera you may also install librealsense 3rd party. If your camera is a PointGrey you may install FlyCapture 3rd party, while if your camera is a Basler, you may rather install Pylon 3rd party. Other 3rd parties are optional and should be considered only by expert developers.
1. Get OpenCV
First you have to get OpenCV:
opencv-4.8.0-windows.exe
Win pack installer. The same procedure could be applied with all the previous OpenCV releases starting from 3.4.0 version.%VISP_WS%/3rdparty
. %VISP_WS%\3rdparty\opencv
.%VISP_WS%\3rdparty\opencv-4.8.0
.2. Build OpenCV from source
C:\> mkdir %VISP_WS%\3rdparty\opencv-4.8.0\build-vc17 C:\> cd %VISP_WS%\3rdparty\opencv-4.8.0\build-vc17
%VISP_WS%\3rdparty\opencv-4.8.0\build
: C:\> cmake -G "Visual Studio 17 2022" -A "x64" %VISP_WS%\3rdparty\opencv-4.8.0\sources -DCMAKE_INSTALL_PREFIX=%VISP_WS%\3rdparty\opencv-4.8.0\build -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF
C:\> cmake --build . --config Release --target install C:\> cmake --build . --config Debug --target install
2. Complete OpenCV installation
Now you have to complete OpenCV installation setting some environment vars:
OpenCV_DIR
environment variable. Start up a cmd
Command Prompt and enter: C:\> setx OpenCV_DIR "%VISP_WS%\3rdparty\opencv-4.8.0\build" C:\> exitwhere
%VISP_WS%\3rdparty\opencv-4.8.0\build
is where you have installed OpenCV. Inside this folder you should have a file named OpenCVConfig.cmake
.Path
environment variable. Open the "Edit environment variable" UI, and modify Path
to add a new line with %VISP_WS%\3rdparty\opencv-4.8.0\build\x64\vc17\bin
.Even if Eigen3 is designed as a template we recommend to install the library with Visual Studio.
1. Get Eigen3
eigen-3.4.0.zip
archive corresponding to Eigen 3.4.0.%VISP_WS%\3rdparty
.%VISP_WS%\3rdparty\eigen-3.4.0
2. Build and install Eigen3 from source
C:\> cd %VISP_WS%\3rdparty\eigen-3.4.0 C:\> mkdir build-vc17 C:\> cd build-vc17
%VISP_WS%\3rdparty\eigen-3.4.0\build-vc17\install
folder): C:\> cmake -G "Visual Studio 17 2022" -A "x64" .. -DCMAKE_INSTALL_PREFIX=%VISP_WS%\3rdparty\eigen-3.4.0\build-vc17\install
C:\> cmake --build . --config Release --target install
%VISP_WS%\3rdparty\eigen-3.4.0\build-vc17\install
folder3. Complete Eigen3 installation
Now you have to complete Eigen3 installation setting some environment vars:
EIGEN_DIR
environment variable. Start up a cmd
Command Prompt and enter: C:\> setx Eigen3_DIR "%VISP_WS%\3rdparty\eigen-3.4.0\build-vc17\install\share\eigen3\cmake" C:\> exitwhere
%VISP_WS%\3rdparty\eigen-3.4.0\build-vc17\install
is where you have installed Eigen3. Inside the folder %VISP_WS%\3rdparty\eigen-3.4.0\build-vc17\install\share\eigen3\cmake
you should have a file named Eigen3Config.cmake
.Path
environment var since Eigen3 is a template that has no library.I you have an Intel RealSense Depth camera (SR300 or D400 series), you may install librealsense 2.x in order to use vpRealSense2 class. Otherwise you can skip this section.
1. Install Intel Realsense SDK 2.0
Intel Realsense SDK 2.0 contains librealsense. To install this SDK:
Intel.RealSense.SDK-WIN10-<version>.exe
corresponding to the last Intel Realsense SDK 2.0 release. At the time this tutorial was written, we downloaded Intel.RealSense.SDK-WIN10-2.54.1.5216.exe
.Intel.RealSense.SDK-WIN10-<version>.exe
and follow default installation steps.2. Complete Intel Realsense SDK 2.0 installation
To finalize the installation, add the location of realsense2.dll
library in the Path
environment variable. Open the "Edit environment variable" UI, and modify Path
to add a new line with C:\Program Files (x86)\Intel RealSense SDK 2.0\bin\x64
.
PCL library could be installed to extend vpRealSense2 capabilities to acquire a point cloud. It could be also used to consider a point cloud as depth feature in the generic model-based tracker when using vpMbGenericTracker class. If you don't have an Intel Realsense Depth camera (SR300 or D400 series) or if you are not interested in model-based tracking using depth as feature you can skip this section.
At the time this tutorial was updated, in https://github.com/PointCloudLibrary/pcl/releases there was the PCL 1.13.1 release that came with PCL-1.13.1-AllInOne-msvc2022-win64.exe
installer.
For Visual Studio 17 2022:
PCL-1.13.1-AllInOne-msvc2022-win64.exe
PCL-1.13.1-AllInOne-msvc2022-win64.exe
, add PCL to the system path for all users and follow default installation steps.2. Complete PCL installation
To complete PCL installation, you need to add the location of pcl_common_<debug|release>.dll
and OpenNI2.dll
libraries in the Path
environment variable. Open the "Edit environment variable" UI, and modify by hand Path
to add respectively:
C:\Program Files\PCL 1.13.1\bin
C:\Program Files\OpenNI2\Redist
C:\Program Files\PCL 1.13.1\3rdParty\VTK\bin
I you have a PointGrey or FLIR USB 2.0, USB 3.0, GigE or FireWire camera (DragonFly2, Flea3...), you may install FlyCapture. Otherwise you can skip this section.
1. Install FlyCapture SDK Complete installation instructions are given here. We recap hereafter the main instructions to install FlyCapture SDK under Windows:
FlyCapture_2.13.3.61_x64.exe
file.2. Complete FlyCapture SDK
In order to find FlyCapture2_v100.dll
you need to add the location of the library to the Path
environment var. Open the "Edit environment variable" UI, and modify by hand Path
to add a new line with C:\Program Files\Point Grey Research\FlyCapture2\bin64
.
If you have a Basler FireWire, Camera Link, GigE or USB3.0 camera, you may install Pylon SDK. Otherwise you can skip this section.
To install Pylon:
We're sorry, but the installation could not be completed. The following error has occurred: Error code: 0x800700005, Refused Accessit means certainly that there is an application that needs access to Internet that is not closed. Typically, we encounter this issue with our Anti-Virus Kaspersky tool. Once Kaspersky was paused, installation succeeded.
C:\Program Files\Basler\pylon <version>\
and click on "Next" buttonIf you have an IDS camera you may install IDS Software Suite for uEye cameras. To this end:
"uEye industrial cameras"
"Firmware"
tab, select "uEye (IDS Software Suite)"
and press "SHOW"
button"Operating system"
tab select "Windows"
and press the search button"Software package"
section you should see the last "IDS Software Suite for Windows 32/64-bit"
version you may download. At the time this tutorial was written, we downloaded "ids-software-suite-win-4.95.zip"
file.Once downloaded, you may extract the archive.
Open the README file readme-ids-software-suite-win-*.html
and check compatibility list
IDS Software Suite has been tested with the following Windows 10 version: - Edition: Windows 10 Pro Version: 20H2 Version: 1909
If the Software Suite is compatible with your OS, proceed to the installation:
uEye_49500.exe
) to start the installation. The uEye driver installation is menu-driven.To test the Software Suite installation, plug a camera, enter "Start"
menu and run "IDS > uEyeDirectShow Demo"
binary.
IDS uEye Camera Software Suite installation enables vpUeyeGrabber class usage.
If you have a Kinova Jaco assistive robotic arm, it could be useful to install the corresponding Gen2 SDK to be able to use vpRobotKinova class. This class is an interface over Kinova Jaco Gen2 SDK and allows to control Gen2 4, 6 and 7 DoF arm.
1. Install Kinova Jaco SDK
PS 0000 0009_1.5.1.zip
(254M).C:\temp\kinova-jaco
C:\> dir C:\temp\kinova-jaco\windows 17/12/2018 21:48 6 234 383 Kinova-Jaco-Usb-Driver-(usblib)-Installer.exe 30/01/2019 00:02 207 ReadMe.txt 29/01/2019 23:58 64 658 780 SDK_GEN2_1_5_1_x86.exe 09/08/2017 21:38 13 767 776 vc_redist_x86.exe
SDK_GEN2_1_5_1_x86.exe
. Keep default installation options.C:\Program Files (x86)\JACO-SDK
There is no need to complete installation process as for previous 3rd parties.
If you have the Qualisys Motion Capture System you can optionally install qualisys_cpp_sdk from source to enable vpMocapQualisys usage.
1. Get and build Qualisys Datastream SDK
C:\> mkdir %VISP_WS%\3rdparty\qualisys C:\> cd %VISP_WS%\3rdparty\qualisys C:\> git clone https://github.com/qualisys/qualisys_cpp_sdk.git C:\> cd qualisys_cpp_sdk C:\> mkdir build C:\> cd build C:\> cmake -G "Visual Studio 17 2022" -A "x64" .. -DBUILD_EXAMPLES=ON C:\> cmake --build . --config Release --target install
After installation the SDK is installed in C:\Program Files\qualisys_cpp_sdk
and will be detected by ViSP if you run a new CMake configuration step over ViSP source code.
2. Complete installation
Now you have to complete Qualisys Datastream SDK installation setting some environment vars:
QUALISYS_DIR
environment variable. Start up a cmd
Command Prompt and enter: C:\> setx QUALISYS_DIR "%VISP_WS%\Program Files\qualisys_cpp_sdk" C:\> exit
VISP_WS%\qualisys_cpp_sdk\lib
.3. Known issue
If you encounter the following issue:
C:\visp-ws\3rdparty\qualisys\qualisys_cpp_sdk\build>cmake --build . --config Release --target install Microsoft (R) Build Engine version 16.3.2+e481bbf88 pour .NET Framework Copyright (C) Microsoft Corporation. Tous droits réservés. Checking Build System Building Custom Rule C:/visp-ws/3rdparty/qualisys/qualisys_cpp_sdk/CMakeLists.txt Markup.cpp Network.cpp RTPacket.cpp RTProtocol.cpp Génération de code en cours... qualisys_cpp_sdk.vcxproj -> C:\visp-ws\3rdparty\qualisys\qualisys_cpp_sdk\build\Release\qualisys_cpp_sdk.lib Building Custom Rule C:/visp-ws/3rdparty/qualisys/qualisys_cpp_sdk/CMakeLists.txt RigidBodyStreaming.cpp RigidBodyStreaming.vcxproj -> C:\visp-ws\3rdparty\qualisys\qualisys_cpp_sdk\build\Release\RigidBodyStreaming.exe Building Custom Rule C:/visp-ws/3rdparty/qualisys/qualisys_cpp_sdk/CMakeLists.txt -- Install configuration: "Release" CMake Error at cmake_install.cmake:48 (file): file cannot create directory: C:/Program Files/qualisys_cpp_sdk/lib/qualisys_cpp_sdk. Maybe need administrative privileges.
you need to start a cmd
command prompt as administrator. To this end type cmd
, right-click the command prompt and then click Run as administrator.
If you have the Vicon Motion Capture System you can optionally install Vicon Datastream SDK to enable vpMocapVicon usage.
1. Get Vicon Datastream SDK
ViconDataStreamSDK_1.11.0_128037.zip
.$VISP_WS\3rdparty\vicon
$ mkdir %VISP_WS%\3rdparty\vicon
$VISP_WS\3rdparty\vicon
, in our case ViconDataStreamSDK_1.11.0_128037.zip
ViconDataStreamSDK_1.11.0_128037h__Win64.zip
ViconDataStreamSDK_1.*_x64.msi
that you need now to execute to complete installation in C:\Program Files\Vicon\DataStream SDK
After installation the SDK is available in C:\Program Files\Vicon\DataStream SDK
.
2. Complete installation
Now you have to complete Vicon Datastream SDK installation setting some environment vars:
VICON_DIR
environment variable. Start up a cmd
Command Prompt and enter: C:\> setx VICON_DIR "%VISP_WS%\Program Files\Vicon\DataStream SDK\Win64\CPP" C:\> exit
VISP_WS%\Program Files\Vicon\DataStream SDK\Win64\CPP
.To install JSON on windows, follow JSON 3rd party installation instructions.
There are different ways to get ViSP source code.
visp-x.y.z.tar.gz
or visp-x.y.z.zip
is downloaded, uncompress the file in %VISP_WS%\visp\visp-x.y.z
using for example WinRAR.visp-snapshot-yyyy-mm-dd.tar.gz
is downloaded, uncompress the file in %VISP_WS%\visp\visp-x.y.z
using for example WinRAR.git
command line tool: C:\> cd %VISP_WS% C:\> git clone https://github.com/lagadic/visp.git
We suppose now that ViSP source is in %VISP_WS%\visp
.
The goal of the configuration step is now to use CMake to produce a Visual Studio C++ solution file that will be located in %VISP_WS%/visp-build-vc17
.
%VISP_WS%/visp-build-vc17
folder.%VISP_WS%/visp-build-vc17/install
. If you want to change the installation folder to C:\Program Files (x86)\ViSP
, make sure that you have administrator privileges to write in that folder before modifying CMAKE_INSTALL_PREFIX
. Eigen3_DIR
environment var, you will get the following warning in cmake_gui
: CMake Warning at CMakeLists.txt:1156 (message): Eigen3 config file is detected in C:/visp-ws/eigen-3.4.0/build-vc17. Using C:/visp-ws/eigen-3.4.0/build-vc17/Eigen3Config.cmake doesn't allow to use a valid Eigen3 include dir: C://include/eigen3. Modify Eigen3_DIR to point to Eigen3Config.cmake file located in Eigen3 installation folder or turn USE_EIGEN3 OFF.We strongly recommend to fix this warning. To this end:
cmake-gui
Eigen3_DIR
environment var running setx Eigen3_DIR "%VISP_WS%\3rdparty\eigen-3.4.0\build-vc17\install\share\eigen3\cmake"
cmake-gui
File > Delete Cache
At this point, you should no more see the warning.
.dll
extension). This is the default configuration that is recommended. If you want to create rather a static library (with .lib
extension) you have to uncheck the BUILD_SHARED_LIBS
option to disable DLL creation.%VISP_WS%/visp-build-vc17
folder you have the Visual Studio VISP.sln
generated solution file.%VISP_WS%/visp-build-vc17/VISP.sln
solution file. This action will open ViSP project in Visual Studio C++. By default, Visual Studio opens the solution in Debug
configuration. Modify the configuration to "Release"
. "Build > Build Solution"
to build ViSP or hit "Ctrl+Maj+B"."INSTALL"
project. To this end, apply a left click on "INSTALL"
to select the project, then a right click to enter in the "Build" menu. %VISP_WS\visp-build-vc17\install
folder; headers and libraries in include
and x64/vc17
subfolders respectively."Release"
configuration. Now in %VISP_WS%/visp-build-vc17/install/x64/vc17/bin
folder you have ViSP DLL libraries corresponding to ViSP modules. Debug
configuration. In that case, all the library names are suffixed by "d" character (libvisp_core351d.dll
...).To build ViSP documentation, you have first to install Doxygen:
doxygen-1.9.4-setup.exe
cmd
Command Prompt and enter build directory C:\> cd %VISP_WS%\visp-build-vc17
C:\> cmake -G "Visual Studio 17 2022" -A "x64" %VISP_WS%\visp
C:\> cmake --build . --config Release --target visp_doc
The generated documentation is then available in $VISP_WS/visp-build-vc17/doc/html/index.html
npm
LTS version following these instructions, then install MathJax and build doc using: C:\> npm install mathjax C:\> cmake -G "Visual Studio 17 2022" -A "x64" %VISP_WS%\visp -DUSE_MATHJAX=ON C:\> cmake --build . --config Release --target visp_doc
ENABLE_FULL_DOC
to ON
like: C:\> cmake -G "Visual Studio 17 2022" -A "x64" %VISP_WS%\visp -DENABLE_FULL_DOC=ON C:\> cmake --build . --config Release --target visp_doc
Modify the Path
var to add the path to ViSP dll libraries. To this end open the "Edit environment variable" UI, and modify Path
to add a new line with %VISP_WS%\visp-build-vc17\install\x64\vc17\bin
.
In order to ease ViSP detection by CMake when ViSP is used as a 3rd party in an external project, like the one described in the Tutorial: How to create and build a project that uses ViSP and CMake on Unix or Windows, you may set VISP_DIR
environment variable with the path to the VISPConfig.cmake
file:
C:\> setx VISP_DIR "%VISP_WS%\visp-build-vc17\install" C:\> exit
Some ViSP examples and tests require a data set that contains images, video, models that is not part of ViSP source code. This data set is available in Github (https://github.com/lagadic/visp-images) or as a release in a separate archive named visp-images-x.y.z.zip
. This archive could be downloaded from https://visp.inria.fr/download page. Note that ViSP tutorials are not using ViSP data set.
We give hereafter the two ways to get this data set:
1. Get data set release
visp-images-3.x.y.zip
from https://visp.inria.fr/download and uncompress it in your workspace %VISP_WS%
. VISP_INPUT_IMAGE_PATH
environment variable to help ViSP examples and tests to detect automatically the location of the requested data. In our case, this variable should be set to %VISP_WS%\visp-images-3.6.0
. Open a cmd
Command Prompt and run C:\> setx VISP_INPUT_IMAGE_PATH %VISP_WS%\visp-images-3.6.0 C:\> exit
2. Get data set from github
C:\> cd %VISP_WS% C:\> git clone https://github.com/lagadic/visp-images.git
VISP_INPUT_IMAGE_PATH
environment variable to help ViSP examples and tests to detect automatically the location of the requested data. In our case, this variable should be set to %VISP_WS%\visp-images
. Open a cmd
Command Prompt and run C:\> setx VISP_INPUT_IMAGE_PATH %VISP_WS%\visp-images C:\> exit
Test data set usage
From now, you can try to run ViSP examples and tests. For example, if you want to run %VISP_WS%\visp-build-vc17\example\device\display\Release\displayGDI.exe
, open a cmd
Command Prompt, enter in the right folder and run:
C:\> cd %VISP_WS%\visp-build-vc17\example\device\display\Release C:\> displayGDI.exe A click to close the windows... A click to display a cross... Cross position: 392, 306 A click to exit the program... Bye
Since all 3rd parties are optional you may have started to install only some of them. Imagine that you just installed a new third-party, or that you upgraded the version of this 3rd party. The next step is to go back to the build folder, configure ViSP with CMake to detect the newly installed third-party library and build again ViSP. This could be achieved with:
C:\> cd $VISP_WS/visp-build-msvc17 C:\> cmake ../visp
Here you can check the content of the ViSP-third-party.txt
file and see if the newly installed 3rd party is well detected.
Finally, you need to rebuild and install ViSP with:
C:\> cmake --build . --config Release --target install
After ViSP installation, you can remove installed material using:
C:\> cd $VISP_WS/visp-build-msvc17 C:\> cmake --build . --config Release --target uninstall
If you want to build only ViSP modules libraries, nor the examples, tutorials and tests:
C:\> cd $VISP_WS/visp-build-msvc17 C:\> cmake --build . --config Release --target visp_modules
If you want to build a given module and all the dependencies:
C:\> cd $VISP_WS/visp-build-msvc17 C:\> cmake --build . --config Release --target visp_<module_name>
For example to build the model-based tracker module named mbt, run:
C:\> cd $VISP_WS/visp-build-msvc17 C:\> cmake --build . --config Release --target visp_mbt
To see which are the optional 3rd parties that are found during the configuration stage and that will be used by ViSP during the build you can have a look to the text file named ViSP-third-party.txt
and located in $VISP_WS/visp-build-vc17
. We provide hereafter an example of a possible content of this file that contains also build info.
C:\> type $VISP_WS/visp-build-vc17/ViSP-third-party.txt ========================================================== General configuration information for ViSP 3.5.1 Version control: 43c8720f4 Platform: Timestamp: 2023-07-06T09:32:23Z Host: Windows 10.0.19044 AMD64 CMake: 3.26.4 CMake generator: Visual Studio 17 2022 CMake build tool: C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe MSVC: 1935 System information: Number of CPU logical cores: 4 Number of CPU physical cores: 4 Total physical memory (in MiB): 16057 OS name: Windows OS release: Professional OS version: (Build 19044) OS platform: AMD64 CPU name: Pentium II (0.25 micron) Is the CPU 64-bit? yes Does the CPU have FPU? yes CPU optimization: SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 C/C++: Built as dynamic libs?: yes C++ Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe (ver 19.35.32215.0) C++ flags (Release): /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP4 /EHa -openmp /Gy /bigobj /MD /O2 /Ob2 /DNDEBUG C++ flags (Debug): /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP4 /EHa -openmp /Gy /bigobj /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /MP4 /EHa -openmp /MD /O2 /Ob2 /DNDEBUG C flags (Debug): /DWIN32 /D_WINDOWS /W3 /MP4 /EHa -openmp /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO Linker flags (Debug): /machine:x64 /debug /INCREMENTAL /ignore:4099 Use cxx standard: 17 ViSP modules: To be built: core dnn_tracker gui imgproc io java_bindings_generator klt me sensor ar blob robot visual_features vs vision detection mbt tt tt_mi Disabled: - Disabled by dependency: - Unavailable: java Windows RT support: no Python (for build): C:/Python310/python.exe Java: ant: no JNI: C:/Program Files/Microsoft/jdk-11.0.16.101-hotspot/include C:/Program Files/Microsoft/jdk-11.0.16.101-hotspot/include/win32 C:/Program Files/Microsoft/jdk-11.0.16.101-hotspot/include Build options: Build deprecated: yes Build with moment combine: no OpenCV: Version: 4.8.0 Modules: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo stitching video videoio OpenCV dir: C:/visp-ws/3rdparty/opencv-4.8.0/build Mathematics: Blas/Lapack: yes \- Use MKL: no \- Use OpenBLAS: no \- Use Atlas: no \- Use Netlib: no \- Use GSL: no \- Use Lapack (built-in): yes (ver 3.2.1) Use Eigen3: yes (ver 3.4.0) Use OpenCV: yes (ver 4.8.0) Simulator: Ogre simulator: \- Use Ogre3D: no \- Use OIS: no Coin simulator: \- Use Coin3D: no \- Use SoWin: no \- Use SoXt: no \- Use SoQt: no \- Use Qt5: no \- Use Qt4: no \- Use Qt3: no Media I/O: Use JPEG: no Use PNG: no \- Use ZLIB: no Use OpenCV: yes (ver 4.8.0) Use stb_image (built-in): yes (ver 2.27.0) Use TinyEXR (built-in): yes (ver 1.0.2) Real robots: Use Afma4: no Use Afma6: no Use Franka: no Use Viper650: no Use Viper850: no Use ur_rtde: no Use Kinova Jaco: no Use aria (Pioneer): no Use PTU46: no Use Biclops PTU: no Use Flir PTU SDK: no Use MAVSDK: no Use Parrot ARSDK: no \-Use ffmpeg: no Use Virtuose: no Use qbdevice (built-in): yes (ver 2.6.0) Use takktile2 (built-in): no GUI: Use X11: no Use GTK: no Use OpenCV: yes (ver 4.8.0) Use GDI: yes Use Direct3D: no Cameras: Use DC1394-2.x: no Use CMU 1394: no Use V4L2: no Use directshow: no Use OpenCV: yes (ver 4.8.0) Use FLIR Flycapture: no Use Basler Pylon: no Use IDS uEye: no RGB-D sensors: Use Realsense: no Use Realsense2: yes (ver 2.54.1) Use Occipital Structure: no Use Kinect: no \- Use libfreenect: no \- Use libusb-1: no \- Use pthread: no Use PCL: yes (ver 1.13.1) \- Use VTK: no F/T sensors: Use atidaq (built-in): no Use comedi: no Use IIT SDK: no Mocap: Use Qualisys: no Use Vicon: no Detection: Use zbar: no Use dmtx: no Use AprilTag (built-in): yes (ver 3.1.1) \- Use AprilTag big family: no Misc: Use Clipper (built-in): yes (ver 6.4.2) Use pugixml (built-in): yes (ver 1.9.0) Use libxml2: no Use json (nlohmann): yes (ver 3.11.2) Optimization: Use OpenMP: yes Use pthread: no Use pthread (built-in): yes (ver 3.0.1) Use Simd (built-in): yes (ver 4.9.109) DNN: Use CUDA Toolkit: no Use TensorRT: no Documentation: Use doxygen: yes \- Use mathjax: no Tests and samples: Use catch2 (built-in): yes (ver 2.13.7) Tests: yes Demos: yes Examples: yes Tutorials: yes Dataset found: yes (ver 3.6.0 in C:\visp-ws\visp-images) Library dirs: Eigen3 include dir: C:/visp-ws/3rdparty/eigen-3.4.0/build-vc17/install/share/eigen3/cmake OpenCV dir: C:/visp-ws/3rdparty/opencv-4.8.0/build PCL dir: C:/Program Files/PCL 1.13.1/cmake Install path: C:/visp-ws/visp-build-vc17/install ==========================================================
With Eigen 3.3.8 installed following Eigen3 3rd party installation, during visp_core
build you will get an issue:
eigen_assert_exception is not member of Eigen
This issue is known and reported here.
A quick fix is to comment the corresponding line 162 in %VISP_WS%\3rdparty\eigen-3.3.8\build-vc16\install\include\eigen3\Eigen\src\Core\Products\Parallelizer.h
like
//if (errorCount) EIGEN_THROW_X(Eigen::eigen_assert_exception()); #endif
At the end of the Intel Realsense SDK
installation process or when running Intel Realsense Viewer
, if you get the following error message:
Program terminated due to an unrecoverable SEH exception: Illegal CPU instruction! Possibly newer CPU architecture is required
it means that your CPU is too old to support a recent version of the Intel Realsense SDK. A workaround is to install an older version. In our case installing Intel.RealSense.SDK-WIN10-2.32.1.1297.exe
does the trick.
You are now ready to see the next Tutorial: How to create and build a project that uses ViSP and CMake on Unix or Windows that will show you how to use ViSP as a 3rd party to build your own project.