Ubuntu 16.04 compilation of ROS 1 SDK failed

Ubuntu 16.04 compilation of ROS 1 SDK failed

Problem Description

The following error occurs during compilation of ROS 1 SDK on Ubuntu 16.04.

Error message

Error message

Solution

Modify the following two files, then recompile.

  • src/percipio_camera/CMakeLists.txt add “set(CMAKE_CXX_STANDARD 11)”.

    CMakeLists.txt modification

    CMakeLists.txt

  • src/percipio_camera/src/DepthStreamProc.cpp add “#include <cstdlib>”.

    DepthStreamProc.cpp modification

    DepthStreamProc.cpp