rs_to_velodyne-master compile Error:
/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:
- Solve git upload file error [rejected] master -> master (fetch first) error: failed to push some refs to ‘
- [Solved] ioctl_cfg80211.c:1141:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
- How to Solve gtid master-slave replication connecting Issue
- Push to origin/Master was rejected [How to Solve]
- [Solved] Redis New Version Install Error: server.c:3014:36: error: ‘struct redisServer’ has no member named ‘aof_filename’
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- [Solved] Linux gcc Compile Error: unknown type name ‘bool‘
- tuxedo Compile Background Common Error [How to Fix]
- [Git] Solve git branch -M main error: refname refs/heads/master not found
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode
- Ubuntu18.04 Compile Error: android 7 FAILED [How to Solve]
- [Solved] GCC Compile Error: fatal error: sys/cdefs.h: No such file or directory
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘
- [Solved] Centos8 openssh Compile Error: error while loading shared libraries
- How to Solve Ubuntu20.04 Compile Error:error while loading shared libraries: libncurses.so.5
- [Solved] rk3588_buildroot Compile Error: ERROR: Running build_kernel failed!
- Debian9 g++ Compile Error: error: ‘EDOM’ was not declared in this scope