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

Gazebo: undefined reference to `clock_gettime'

asked 2012-02-27 23:57:36 -0600

ReiniK gravatar image

Linking CXX executable gazebo-non-ros libgazebo_server.so.0.10.0: undefined reference to clock_gettime' collect2: ld returned 1 exit status make[4]: *** [server/gazebo-non-ros] Error 1 make[4]: Leaving directory/home/klapfer/ros/stacks/simulator_gazebo/gazebo/build/gazebo/build' make[3]: * [server/CMakeFiles/gazebo-exec.dir/all] Error 2 make[3]: Leaving directory /home/klapfer/ros/stacks/simulator_gazebo/gazebo/build/gazebo/build' make[2]: *** [all] Error 2 make[2]: Leaving directory/home/klapfer/ros/stacks/simulator_gazebo/gazebo/build/gazebo/build' make[1]: * [installed] Error 2 make[1]: Leaving directory `/home/klapfer/ros/stacks/simulator_gazebo/gazebo' CMake Error at CMakeLists.txt:32 (message): Build of Gazebo failed

I just changed computer this morning and when trying to compile the gazebo_simulator I get this error. It is computer depended, but I have no clue where the error comes from.

I hope I can find some help here. Thank you all in advance.

Reinhard

edit retag flag offensive close merge delete

Comments

Note: I am tryng to compile the latest version taken from https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/tags/electric/

ReiniK gravatar image ReiniK  ( 2012-02-28 00:06:29 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-28 04:12:52 -0600

ReiniK gravatar image

updated 2012-02-28 04:15:13 -0600

Modifying the file: ~/ros/stacks/simulator_gazebo/gazebo/build/gazebo/server/CMakeLists.txt helped.

target_link_libraries( gazebo-exec ${libtool_library}
                               ${gazeboserver_link_libs} 
                               ${boost_libraries} 
                               ${assimp_libraries} 
                               ${freeimage_library} 
                               gazebo_server
                               gazebo_rendering
                               gazebo_av-shared
                               gazebo_gui
                               gazebo_physics
                               gazeboshm 
                               assimp
                               pthread
                               -lrt

)

But is is not optimal and the changes are undone when cleaning the project. If someone knows a solution to this it would be nice to share it here.

Thank you.

edit flag offensive delete link more

Comments

this has change has been added to the repo, and will be there in the next release 1.4.12 (https://kforge.ros.org/gazebo/hg/rev/2ab1039c959f)

hsu gravatar image hsu  ( 2012-02-28 06:33:26 -0600 )edit

Question Tools

Stats

Asked: 2012-02-27 23:57:36 -0600

Seen: 887 times

Last updated: Feb 28 '12