1. Report an error
When compiling (catkin build) svo_pro_ws, an error is reported
/opt/ros/melodic/include/pcl_ros/point_cloud.h:303:27: error: variable templates only available with ‘-std=c++14’ or ‘-std=gnu++14’ [-Werror]
303 | constexpr static bool pcl_uses_boost = true;
2. Root cause of the problem
rpg_svo_pro_open - Github Plus
The CMake version is too low and the gcc/g++ version is inappropriate.
need CMake 3.21.4
andgcc/g++ 7.5.0
3. Solution
- upgraded CMake from
3.10
to3.21.4
- Open a new terminal and confirm the CMake version:
cmake --version
7.5.0
The version to switch gcc/g++ to- Delete
svo_pro_ws
all intermediate files (be sure) and recompile in this new terminal:catkin build