Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu20.04 compilation problems #79

Open
1466758326 opened this issue Feb 22, 2024 · 1 comment
Open

Ubuntu20.04 compilation problems #79

1466758326 opened this issue Feb 22, 2024 · 1 comment

Comments

@1466758326
Copy link

In file included from /usr/include/pcl-1.10/pcl/pcl_macros.h:77,
from /usr/include/pcl-1.10/pcl/PCLHeader.h:10,
from /usr/include/pcl-1.10/pcl/point_cloud.h:47,
from /opt/ros/noetic/include/pcl_ros/point_cloud.h:5,
from /home/peng-ubuntu/ros_ws/package_ws/interactive_slam/src/odometry_saver/src/odometry_saver.cpp:12:
/usr/include/pcl-1.10/pcl/pcl_config.h:7:4: error: #error PCL requires C++14 or above
7 | #error PCL requires C++14 or above
| ^~~~~
In file included from /usr/include/pcl-1.10/pcl/console/print.h:44,
from /usr/include/pcl-1.10/pcl/conversions.h:53,
from /opt/ros/noetic/include/pcl_ros/point_cloud.h:8,
from /home/peng-ubuntu/ros_ws/package_ws/interactive_slam/src/odometry_saver/src/odometry_saver.cpp:12:
/usr/include/pcl-1.10/pcl/pcl_config.h:7:4: error: #error PCL requires C++14 or above
7 | #error PCL requires C++14 or above
| ^~~~~
In file included from /usr/local/include/g2o/core/sparse_block_matrix.h:42,
from /usr/local/include/g2o/core/sparse_optimizer.h:34,
from /home/peng-ubuntu/ros_ws/package_ws/interactive_slam/src/hdl_graph_slam/include/g2o/robust_kernel_io.hpp:7,
from /home/peng-ubuntu/ros_ws/package_ws/interactive_slam/src/hdl_graph_slam/src/g2o/robust_kernel_io.cpp:3:
/usr/local/include/g2o/core/matrix_structure.h:57:19: error: ‘std::string_view’ has not been declared
57 | bool write(std::string_view filename) const;
| ^~~~~~~~~~~
make[2]: *** [hdl_graph_slam/CMakeFiles/hdl_graph_slam_nodelet.dir/build.make:141:hdl_graph_slam/CMakeFiles/hdl_graph_slam_nodelet.dir/src/g2o/robust_kernel_io.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
In file included from /usr/local/include/g2o/core/sparse_block_matrix.h:42,
from /usr/local/include/g2o/core/marginal_covariance_cholesky.h:34,
from /usr/local/include/g2o/core/linear_solver.h:33,
from /usr/local/include/g2o/core/block_solver.h:35,
from /home/peng-ubuntu/ros_ws/package_ws/interactive_slam/src/hdl_graph_slam/src/hdl_graph_slam/graph_slam.cpp:8:
/usr/local/include/g2o/core/matrix_structure.h:57:19: error: ‘std::string_view’ has not been declared
57 | bool write(std::string_view filename) const;
| ^~~~~~~~~~~
In file included from /opt/ros/noetic/include/pcl_ros/point_cloud.h:284,
from /home/peng-ubuntu/ros_ws/package_ws/interactive_slam/src/odometry_saver/src/odometry_saver.cpp:12:
/usr/include/pcl-1.10/pcl/pcl_config.h:7:4: error: #error PCL requires C++14 or above
7 | #error PCL requires C++14 or above

@cinogul
Copy link

cinogul commented Apr 14, 2024

Try this instead: catkin_make -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants