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

Problem Building ROS on Debian

asked 2012-05-19 11:04:11 -0600

MarkyMark2012 gravatar image

updated 2014-01-28 17:12:22 -0600

ngrennan gravatar image

Hi All,

Just got a Raspberry Pi and building ROS on it (Yes is takes an age...but works) any way I get the following error (So close yet so far):

[ 91%] Building CXX object ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/src/turtle.cpp.o /root/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp: In member function âbool turtlesim::Turtle::update(double, QPainter&, const QImage&, qreal, qreal)â: /root/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:132: error: no matching function for call to âmax(double, qreal)â /root/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:162: error: no matching function for call to âmax(qreal, double)â /root/ros-underlay/ros_tutorials/turtlesim/src/turtle.cpp:163: error: no matching function for call to âmax(qreal, double)â make[2]: * [ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/src/turtle.cpp.o] Error 1 make[1]: [ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/all] Error 2 make: ** [all] Error 2

Thanks

Mark

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2012-05-19 21:26:06 -0600

MarkyMark2012 gravatar image

Fixed it - added static_cast<double>() around the offending types...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-05-19 11:04:11 -0600

Seen: 501 times

Last updated: May 19 '12