Open joshuayuan opened 5 years ago
comment the line “add_compile_options(-std=c++11)” in CMakeLists.txt, this commit breaks rgbdslam, the process segment faults at start because pcl has to be compiled with c++11
I had the same issue and @WeidiDeng answer solve it for me :-)
Had same issue.
comment the line “add_compile_options(-std=c++11)” in CMakeLists.txt, this commit breaks rgbdslam, the process segment faults at start because pcl has to be compiled with c++11
Ok, but then it breaks qt_gui.cpp.o
and a lot of other stuff that needs C++11...
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
...
And what you said doesn't make sense to me, if pcl has to be compiled with C++11, how would disabling C++11 compilation help? If you comment that line, it disables C++11 support, as far as I understand CMAKE syntax.
I was able to compile and run this following this tutorial, written by the author.
I believe using ROS kinetic + Ubuntu 16.04 will invariably yield this error, since it links PCL 1.7 which breaks with C++11. This is weird considering it's the recommended system inside the readme.
When I run
roslaunch rgbdslam rgbdslam.launch
, I get the following errors after the roslaunch server starts up. Then it dies. The instructions here are too complicated for me and feel unnecessary, and are a bit out dated. Hopefully there's some other fix.Any ideas, thanks!