Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 2.65 KB

INSTALL_WINDOWS.md

File metadata and controls

55 lines (41 loc) · 2.65 KB

Tutorial: How to compile on Windows

This guide shows how to compile the Online LiDAR Processor on Windows with Microsoft Visual C++.
Tested on Windows 10 with Visual Studio 2017.

Install the dependencies

For Windows operating systems binary releases are available for the dependencies:

PCAP support

In order to support reading PCAP files, PCL must be compiled with the WITH_PCAP flag. Unfortunately the official prebuilt binaries are built without it. If reading PCAP files is a required functionality, you must:

  1. Install a PCAP library (e.g. Npcap)
  2. Compile PCL manually with the WITH_PCAP flag, for which you should check the official guide.
    Note, that version 1.8 or higher is required for PCAP integration.

Submodules

The project depends on some locally built tools:

Check out the repository, then initialize the submodules to download the locally built dependencies:

git submodule init
git submodule update

Compile the dependencies:

cd vendor
make -f Makefile_Windows

Note: rerun when tools change in the vendor directory.

Compile the program

mkdir build && cd build
cmake .. -DCMAKE_GENERATOR_PLATFORM=[x86|x64] -DWITH_SLAM=OFF
msbuild ALL_BUILD.vcxproj /p:Configuration=Release

Pay attention to set the value of the CMAKE_GENERATOR_PLATFORM option correctly, matching the architecture of the installed PCL, otherwise compilation will fail.

Note: there is no SLAM support currently on Windows due to some dependencies of the implemented algorithms (libpointmatcher). You may try Windows using WSL instead.

Typical issues

  • Issue: the Boost library is not found upon CMake configuration.
    Solution: in case you use a separate Boost installation instead of PCL's default one, you might need to configure its location through the BOOST_INCLUDEDIR variable.

  • Issue: the OpenNI2 library is not found upon execution of the compiled binary.
    Solution: the <path>\<to>\<openni2>\Redist folder must be in your PATH variable.