rs_to_velodyne-master compile Error:



解决方法:
在对应程序包的CMakeLists.txt中加入一行代码即可顺利编译。
/usr/include/pcl-1.10/pcl/point_types.h:574:1: error: ‘plus’ is not a member of ‘pcl::traits’ 574 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::CPPFSignature, /usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘plusscalar’ is not a member of ‘pcl::traits’ 588 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature, /usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘type’ is not a member of ‘pcl::traits::datatype<pcl::PPFRGBSignature, pcl::fields::f4>::decomposed’ {aka ‘pcl::traits::decomposeArray<float>’} /usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘plusscalar’ is not a member of ‘pcl::traits’ 588 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature, ......




解决方法:
在对应程序包的CMakeLists.txt中加入一行代码即可顺利编译。
Solution:
Add the following line in CMakeLists.txt of the corresponding program package:
set(CMAKE_CXX_STANDARD 14)
You can also use the same method when compiling other packages with the same error!
Read More:
- error: ‘integer_sequence’ is not a member of ‘std’ [How to Solve]
- [Solved] catkin_make error: CMake Error at CMakeLists.txt:1:
- Fastplanner compilation error: Could not find a package configuration file provided by “cmake_modules”
- error: inlining failed in call to always_inline [How to Solve]
- [Solved] Cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
- [Solved] ioctl_cfg80211.c:1130:4: error: too many arguments to function ‘cfg80211_roamed’
- [Solved] ioctl_cfg80211.c:1141:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
- [Solved] Ubuntu 18.04 Install opencv3.2.0 and opencv_contrib Error
- cstdio [Error] ‘::fpos_t‘ has not been declared [How to Solve]
- Linux Error: CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode
- NXP mx8 Platform tensorflow-lite build error [How to Solve]
- MAC: Clion configure C compiler Error: The C compiler identification is unknown
- [Solved] GCC Compile Error: fatal error: sys/cdefs.h: No such file or directory
- Vector series in actual C + +_ To_ fit()
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- [Solved] Linux gcc Compile Error: unknown type name ‘bool‘
- [Solved] catkin_make Error: pkg_resources.DistributionNotFound: pyparsing
- [Solved] configure: error: no acceptable C compiler found in $PATH
- Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘