Ask Your Question
1

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
1

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
1

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 164 times

Last updated: Aug 02 '12