Ask Your Question
0

Invoking "make -j8 -l8" failed

asked 2017-10-22 21:44:20 -0600

Chrisch gravatar image

Hi I tryed to make a move group interface in c++, but when i try to build the package i get all this errors using catkin_make, I'm using Kinetic im ubuntu 16.04.

Base path: /home/chrisch/clasesros_ws
Source space: /home/chrisch/clasesros_ws/src
Build space: /home/chrisch/clasesros_ws/build
Devel space: /home/chrisch/clasesros_ws/devel
Install space: /home/chrisch/clasesros_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/chrisch/clasesros_ws/build"
####
####
#### Running command: "make -j8 -l8" in "/home/chrisch/clasesros_ws/build"
####
[  0%] Built target mastering_ros_robot_description_pkg_xacro_generated_to_devel_space_
[ 33%] Built target usb_cam
[ 50%] Building CXX object planning/CMakeFiles/movimiento.dir/src/movimiento.cpp.o
[ 83%] Built target usb_cam_node
In file included from /opt/ros/kinetic/include/moveit/kinematic_constraints/kinematic_constraint.h:46:0,
                 from /opt/ros/kinetic/include/moveit/planning_scene/planning_scene.h:45,
                 from /opt/ros/kinetic/include/moveit/planning_scene_monitor/planning_scene_monitor.h:45,
                 from /opt/ros/kinetic/include/moveit_visual_tools/moveit_visual_tools.h:47,
                 from /home/chrisch/clasesros_ws/src/planning/src/movimiento.cpp:10:
/opt/ros/kinetic/include/geometric_shapes/bodies.h:41:2: error: #error This header requires at least C++11
 #error This header requires at least C++11
  ^
In file included from /opt/ros/kinetic/include/geometric_shapes/bodies.h:44:0,
                 from /opt/ros/kinetic/include/moveit/kinematic_constraints/kinematic_constraint.h:46,
                 from /opt/ros/kinetic/include/moveit/planning_scene/planning_scene.h:45,
                 from /opt/ros/kinetic/include/moveit/planning_scene_monitor/planning_scene_monitor.h:45,
                 from /opt/ros/kinetic/include/moveit_visual_tools/moveit_visual_tools.h:47,
                 from /home/chrisch/clasesros_ws/src/planning/src/movimiento.cpp:10:
/opt/ros/kinetic/include/geometric_shapes/shapes.h:41:2: error: #error This header requires at least C++11
 #error This header requires at least C++11
  ^
In file included from /opt/ros/kinetic/include/moveit/macros/class_forward.h:40:0,
                 from /opt/ros/kinetic/include/moveit/move_group_interface/move_group_interface.h:41,
                 from /home/chrisch/clasesros_ws/src/planning/src/movimiento.cpp:1:
/opt/ros/kinetic/include/moveit/macros/declare_ptr.h:52:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
   typedef std::shared_ptr<Type> Name##Ptr;                                                                             \
                ^
/opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’
   MOVEIT_DECLARE_PTR(C, C);
   ^
/opt/ros/kinetic/include/moveit/robot_model/link_model.h:50:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’
 MOVEIT_CLASS_FORWARD(Shape);
 ^
/opt/ros/kinetic/include/moveit/macros/declare_ptr.h:53:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
   typedef std::shared_ptr<const Type> Name##ConstPtr;
                ^
/opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’
   MOVEIT_DECLARE_PTR(C, C);
   ^
/opt/ros/kinetic/include/moveit/robot_model/link_model.h:50:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’
 MOVEIT_CLASS_FORWARD(Shape);
 ^
In file included from /opt/ros/kinetic/include/moveit/robot_model/joint_model_group.h:42:0,
                 from /opt/ros/kinetic/include/moveit/robot_model/robot_model.h:48,
                 from /opt/ros/kinetic/include/moveit/robot_state/robot_state.h:41,
                 from /opt/ros/kinetic/include/moveit/move_group_interface/move_group_interface.h:43,
                 from /home/chrisch/clasesros_ws/src/planning/src/movimiento.cpp:1:
/opt/ros/kinetic/include/moveit/robot_model/link_model.h:174:21 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-10-23 01:32:52 -0600

gvdhoorn gravatar image

Have you added a add_definitions(-std=c++11) statement somewhere in your CMakeLists.txt?

MoveIt needs C++11 enabled, otherwise you'll run into errors like these.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-10-22 21:44:20 -0600

Seen: 269 times

Last updated: Oct 23 '17