ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Installing Hydro on OS X 10.8, Error compiling orocos_kdl

asked 2014-04-14 04:33:45 -0600

karthik_ms gravatar image

updated 2014-04-14 06:56:22 -0600

demmeln gravatar image

Hi, I am desperately trying to install ROS Hydro on OSX 10.8 with Xcode 5.0.2. While compiling the packages, I get the following error, compiling the Orocos_kdl package and I did not find any plausible solution on the answers for this error. I donot have enough karma to gist this error.

247aIn file included from : /Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/segment.hpp25default:: 26 :
argument musterror : be /Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hppa: 247definition:friend25 
:declaration  specifying errora:  default argument must be frienda  declarationdefinition specifying
 a default argument must be a definition
     inline friend bool Equal(const Vector& a,const Vector& b,double eps=epsilon);
     inline friend bool Equal(const Vector& a,const Vector& b,double eps=epsilon);
                        ^
                        ^
     inline friend bool Equal(const Vector& a,const Vector& b,double eps=epsilon);
                        ^
/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp:247:25: error: friend declaration specifying a default argument must be a definition
     inline friend bool Equal(const Vector& a,const Vector& b,double eps=epsilon);
                        ^
/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp:697:25: error: friend declaration specifying a default argument must be a definition
     inline friend bool Equal(const Frame& a,const Frame& b,double eps=epsilon);
/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp:697:25: error/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp: :697:friend25 :declaration  specifying errora :                         ^default
 argumentfriend  mustdeclaration  bespecifying  aa  definitiondefault 
argument must be a definition
     inline friend bool Equal(const Frame& a,const Frame& b,double eps=epsilon);
                        ^
     inline friend bool Equal(const Frame& a,const Frame& b,double eps=epsilon);
                        ^
/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp:697:25: error: friend declaration specifying a default argument must be a definition
     inline friend bool Equal(const Frame& a,const Frame& b,double eps=epsilon);
                        ^
/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp:772:25: error: friend declaration specifying/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp :a772 :default25 :argument  must errorbe:  a frienddefinition declaration
 specifying a default argument must be a definition
     inline friend bool Equal(const Twist& a,const Twist& b,double eps=epsilon);
                        ^
     inline friend bool Equal(const Twist& a,const Twist& b,double eps=epsilon);

Some part of it shows this :

/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.inl:1037:14: error: friend declaration specifying a default argument must be the only declaration
IMETHOD bool Equal(const Wrench& a,const Wrench& b,double eps) {
             ^
/Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/frames.hpp:935:25: note: previous declaration is here
     inline friend bool Equal(const Wrench& a,const Wrench& b,double eps=epsilon);
                        ^
In file included from /Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/chaindynparam.cpp:22:
In file included from /Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/chaindynparam.hpp:25:
In file included from /Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/chainidsolver_recursive_newton_euler.hpp:25:
In file included from /Users/Siva/ros_catkin_ws/src/orocos_kinematics_dynamics/orocos_kdl/src/chainidsolver.hpp:25:
In file included ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-04-16 21:02:56 -0600

Hansg91 gravatar image

Hi,

I ran into similar issues when I was compiling a few days ago. I replaced orocos_kdl with the latest version from their git. This solved most compiling errors and introduced some new ones (mainly regarding the change from reference to pointer, changing some '.' to '->' did the trick).

Good luck!

edit flag offensive delete link more

Comments

Did you face the issue after applying the patches suggested here http://answers.ros.org/question/94771/building-ros-on-osx-109-solution/ ?

demmeln gravatar image demmeln  ( 2014-04-17 05:00:53 -0600 )edit

I didn't try those patches, I thought they were just about fixing the incomplete type in the template, but I see they also do something regarding the "Equals" functions. I'd decided to try the master version and that worked for me.

Hansg91 gravatar image Hansg91  ( 2014-04-17 05:16:27 -0600 )edit

I downloaded and compiled orocos_kdl separately and it now works. Thanks for the suggestion.

karthik_ms gravatar image karthik_ms  ( 2014-04-23 19:49:51 -0600 )edit
0

answered 2014-04-14 06:59:50 -0600

demmeln gravatar image

I'm not sure if this error is related, but have you applied the patches from this post: http://answers.ros.org/question/94771...

Also, please gist the errors and post the link (obscure it a bit by removing https:// and maybe inserting some space, we can fix the link for you). I tried to code-block the output in your post, but the newlines are screwed up and it is hard to read.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-14 04:33:45 -0600

Seen: 666 times

Last updated: Apr 16 '14