In this tutorial you will learn how to build ViSP framework for Universal Windows Platform (UWP) to include ViSP functionalities in apps developments that target a wide range of devices including PC, mobile, Xbox, HoloLens, IoT, and Surface Hub.

This tutorial has been tested on Windows 10 (64 bit), with CMake 3.7.1 and Visual Studio Community 2015 and is only working since ViSP 3.0.1.

Install required software

Visual Studio Community 2015. Make sure that the Universal Windows App Development Tools are selected from the optional features list. Without these tools, you won't be able to create your universal apps. After the installation, start Visual Studio and create an empty C++ project to install the common tools for Visual C++ 2015.

To build ViSP just double click on C:/workspace/visp/visp-build-vc14-uwp-wp-8.1/VISP.sln solution file. This action will open ViSP project in Visual Studio C++.

With Visual Studio build and install the solution. If everything goes right you will find ViSP libraries and headers in C:/workspace/visp/visp-build-vc14-uwp-wp-8.1/install folder.

Now if you want that ViSP benefits from OpenCV functionalities, you can follow the next section.

Build ViSP with OpenCV

Note

The following steps are given for Windows Store 10.0 targetting a x86 platform. They need to be adapted to your use case.

Building ViSP with OpenCV as 3rd party needs first to succeed in building OpenCV for UWP. As of writing on January 2017, the way is to use Microsoft fork https://github.com/Microsoft/opencv and branch vs2015-samples.

Open C:/workspace/opencv/opencv-build-vc14-uwp-ws-10/opencv.sln file with Visual Studio 2015, build and install all the solution

If everything goes right you will find OpenCV libraries and headers in C:/workspace/opencv/opencv-build-vc14-uwp-ws-10/install folder.

Now you can use OpenCV as third-party and configure ViSP in order to use OpenCV. To this end modify the cmake command that was used to Build ViSP by adding -DOpenCV_DIR=C:\workspace\opencv\opencv-build-vc14-uwp-ws-10\install option to cmake command line: