Skip to content

In this tutorial, I will show you 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.19.4 and Visual Studio Community 2019.

Notifications You must be signed in to change notification settings

Qannaf/Building-ViSP3-with-Visual-Studio-from-source-on-Windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Building-ViSP3-with-Visual-Studio-from-source-on-Windows

In this tutorial I will show yow 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.19.4 and Visual Studio Community 2019.

Install prerequisites

1.Visual Studio

Visual Studio Community 2019 could be downloaded from https://www.visualstudio.com/downloads/. During a fresh installation enable "Desktop development with C++" workload and check box "Windows 10 SDK" to enable usage of the Graphical Device Interface (GDI) useful to display images in a window thanks to vpDisplayGDI class. After a fresh installation, start Visual Studio and create an empty C++ project to install the common tools for Visual C++ 2019.

If you already have Visual Studio Community 2019, you can check if "Desktop Development with C++" workload is activated and if "Windows 10 SDK" is enabled following instructions given here that we resume: 1.1 Find the Visual Studio Installer on your computer. Select Start, and then scroll to the letter V, where it's listed as Visual Studio Installer Click or tap to start the installer, and then choose "Modify" 1.2 From the Workloads screen, check if "Desktop Development with C++" workload is activated and if "Windows 10 SDK" is enabled like in the following image img-msvc16-config

1.3 Choose Modify again. 1.4 After the new workloads and components are installed, choose Launch.

2.CMake

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.19.4-win64-x64.msi). To install just double click on the msi file.

3.Git

Install Git for Windows from https://git-for-windows.github.io/. This installation allows then to use git in a cmd Command Prompt.

4.PCL 1.10.0

In this link I show yow how to install PCL from source on Windows 10 with Visual C++. https://github.com/Qannaf/Building-PCL-with-Visual-Studio-from-source-on-Windows/blob/main/PCL1.10.0.md

5.OpenCV

In this link I show yow how to install OpenCV on Windows 10 with Visual C++/Python. https://github.com/Qannaf/Building-OpenCV-with-Visual-Studio-from-source-on-Windows/blob/main/OpenCV.md

Download ViSP3.3 source code :


  1. Clone ViSP3.3 from Git. https://github.com/lagadic/visp.git

CMake

Launch CMake (cmake-gui) and complete the source code and binaries location as in the next image

  1. Specify the input destination of the source code and the output destination of the solution file.

    • Where is the source code: C:\ViSP3.30
    • Where is build the binaries: C:\ViSP3.30\build 1
  2. Select then your compiler "Visual Studio 16 2019" and click on "Finish" button
    2 This will start CMake configuration

  3. [Configure] This will start CMake configuration. As shown in the next image, Eigen3 3

  4. [Generate]Press to output the solution file

Build

1.Start Visual Studio with administrator privileges and PCL solution file(C:\ViSP3.30\build\VISP.sln) Open
(INSTALL fails unless Visual Studio is started with administrator privileges)

  1. Build ViSP (ALL_BUILD)

  2. Set the solution configuration (Release).

  3. Select the ALL_BUILD project from Solution Explorer.

  4. Press Build> Build Solution to build the ViSP.

  5. Install ViSP (INSTALL)

    1. Select the INSTALL project from Solution Explorer.
    2. Press Build> Project Only> Build INSTALL Only to install ViSP. The necessary files are copied to the output destination specified by ** CMAKE_INSTALL_PREFIX **.

Environment Variable

  1. Create the environment variable ** VISP_DIR ** and set the PCL path (C:\ViSP3.30\install).

  2. Add the path of PCL and 3rd Party to the environment variable ** Path **.

    • %VISP_WS%\install\x64\vc16\bin

About

In this tutorial, I will show you 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.19.4 and Visual Studio Community 2019.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published