robotology-playground / idynutils

iDynUtils is an utility library to model and control robots with YARP bindings using iDynTree
GNU Lesser General Public License v3.0
1 stars 2 forks source link

C++11 support required by collision_utils #9

Closed liesrock closed 7 years ago

liesrock commented 7 years ago

Trying to setup @duncanjovial desktop I find this error wile trying to compile collision_utils:

In file included from /usr/include/c++/4.8/cstdint:35:0,
                 from /home/juancastano/robotology-superbuild/build/install/include/fcl/data_types.h:42,
                 from /home/juancastano/robotology-superbuild/build/install/include/fcl/math/vec_3f.h:42,
                 from /home/juancastano/robotology-superbuild/build/install/include/fcl/BV/AABB.h:42,
                 from /home/juancastano/robotology-superbuild/build/install/include/fcl/collision_object.h:43,
                 from /home/juancastano/robotology-superbuild/build/install/include/fcl/broadphase/broadphase.h:43,
                 from /opt/ros/indigo/include/moveit/collision_detection_fcl/collision_common.h:43,
                 from /opt/ros/indigo/include/moveit/collision_detection_fcl/collision_robot_fcl.h:40,
                 from /opt/ros/indigo/include/moveit/collision_detection_fcl/collision_world_fcl.h:40,
                 from /home/juancastano/robotology-superbuild/external/idynutils/include/idynutils/idynutils.h:30,
                 from /home/juancastano/robotology-superbuild/external/idynutils/include/idynutils/collision_utils.h:24,
                 from /home/juancastano/robotology-superbuild/external/idynutils/src/collision_utils.cpp:2:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \

Can you add the C++11 support?

arocchi commented 7 years ago

So what is the setup? We are talking about a 14.04 right? As far as I remember, the fcl installation was something only necessary for 16.04, so I guess the fact that it got installed is the culprit here... I should investigate this at the superbuild level first.

liesrock commented 7 years ago

The desktop is running 14.04, sorry I missed this.

arocchi commented 7 years ago

At the moment 14.04 requires the binary version of fcl, as the default superbuild install a newer version of fcl which is suited to ros kinetic. Using fcl from .deb idynutils compiles as expected