problem with finding library in gazebo 1.9.0
Hello Dear All,
I have a problem after updating gazebo (1.8.6) to (1.9.0), that i explain in this question, by the way i can't solve it and i add gazebo-1.9 to all headers, now when i run my code i got this error:
[ 75%] Built target Manage
[100%] Building CXX object CMakeFiles/main.dir/main.cc.o
Linking CXX executable main
/usr/bin/ld: cannot find -lgazebo_sdf_interface
collect2: ld returned 1 exit status
make[2]: *** [main] Error 1
make[1]: *** [CMakeFiles/main.dir/all] Error 2
make: *** [all] Error 2
22:19:51: The process "/usr/bin/make" exited with code 2.
Error while building project Project (target: Desktop)
When executing build step 'Make'
i searched for libgazebosdfinterface, but i can't find it, any one know what is my fault?
Asked by Vahid on 2013-07-26 12:56:10 UTC
Answers
From Version 1.9.0 SDF is now a separate library and cannot be linked through Gazebo.
You can find an overview at http://gazebosim.org/wiki/Tutorials/1.9/Overview_of_new_ROS_integration#Running_Gazebo
Asked by ynevatia on 2013-07-26 15:19:24 UTC
Comments
Are you compiles gazebo from source, or using the debians?
Also, please post the output of:
pkg-config --libs gazebo
Asked by nkoenig on 2013-07-26 18:31:36 UTC
Comments
Dear nkoenig, in first i installed gazebo using the debians ( i think 1.6.X ) and i get updated package with automatic update of software center.
Asked by Vahid on 2013-07-26 20:06:53 UTC
the output of above command is : -Wl,-rpath,/usr/lib,-rpath,/usr/lib/gazebo-1.9/plugins -L/usr/lib/gazebo-1.9/plugins -lgazebo_transport -lgazebo_physics -lgazebo_sensors -lgazebo_rendering -lsdformat -lgazebo_msgs -lgazebo_math -lgazebo_common -lgazebo
Asked by Vahid on 2013-07-26 20:07:32 UTC
Hi Vahid, try -lsdformat instead of -lgazebo_sdf_interface, maybe that will help
Asked by ynevatia on 2013-07-27 02:44:38 UTC
Comments
my problem is solved, i reinstall gazebo and qt!
Asked by Vahid on 2013-07-28 06:05:38 UTC