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

Error in $ rosmake rgbdslam with ros-electric

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

chris_chris gravatar image

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

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
1

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

Sudhan gravatar image

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

edit flag offensive delete link more
1

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

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

Stats

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

Seen: 280 times

Last updated: Aug 02 '12