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

Error in $ rosmake rgbdslam with ros-electric

asked 2012-08-02 02:48:09 -0500

chris_chris gravatar image

updated 2014-01-28 17:13:13 -0500

ngrennan gravatar image

I am using ros-electric. When I build rgbdslam package in ros.

$ rosmake rgbdslam.

I got the error,

/usr/bin/ld: CMakeFiles/rgbdslam.dir/src/openni_listener.o: in function OpenNIListener::processNode(Node*):openni_listener.cpp(.text+0x6fd4): error: undefined reference to 'clock_gettime'

Anybody have idea about this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-08-02 22:30:51 -0500

Sudhan gravatar image

Add -lrt to the set of linked libraries in CMakeLists.txt

edit flag offensive delete link more

answered 2012-08-02 04:16:28 -0500

pig's head gravatar image

I ever have similar problems.

Try to find header file that 'clock_gettime' needs,and add to openni_listener.cpp

edit flag offensive delete link more

Question Tools


Asked: 2012-08-02 02:48:09 -0500

Seen: 266 times

Last updated: Aug 02 '12