Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gazebo_ros Compile Error #1563

Closed
DvinHartoonian opened this issue Jan 22, 2025 · 2 comments
Closed

gazebo_ros Compile Error #1563

DvinHartoonian opened this issue Jan 22, 2025 · 2 comments

Comments

@DvinHartoonian
Copy link

DvinHartoonian commented Jan 22, 2025

When I run

catkin build

in my ROS workspace, I get the following error:

Errors     << gazebo_ros:make /home/dvin/tiago_public_ws/logs/gazebo_ros/build.make.014.log
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libsdformat9.so.9.8.0', needed by '/home/dvin/tiago_public_ws/devel/.private/gazebo_ros/lib/libgazebo_ros_paths_plugin.so'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libsdformat9.so.9.8.0', needed by '/home/dvin/tiago_public_ws/devel/.private/gazebo_ros/lib/libgazebo_ros_api_plugin.so'. Stop.
make[2]: *** Waiting for unfinished jobs....
In file included from /home/dvin/tiago_public_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:23:
/usr/include/gazebo-11/gazebo/common/Events.hh:21:10: fatal error: sdf/sdf.hh: No such file or directory
   21 | #include <sdf/sdf.hh>
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/gazebo_ros_api_plugin.dir/build.make:63: CMakeFiles/gazebo_ros_api_plugin.dir/src/gazebo_ros_api_plugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:484: CMakeFiles/gazebo_ros_api_plugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/dvin/tiago_public_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_paths_plugin.cpp:23:
/usr/include/gazebo-11/gazebo/common/Plugin.hh:33:10: fatal error: sdf/sdf.hh: No such file or directory
   33 | #include <sdf/sdf.hh>
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/gazebo_ros_paths_plugin.dir/build.make:63: CMakeFiles/gazebo_ros_paths_plugin.dir/src/gazebo_ros_paths_plugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1441: CMakeFiles/gazebo_ros_paths_plugin.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
cd /home/dvin/tiago_public_ws/build/gazebo_ros; catkin build --get-env gazebo_ros | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -

I am running Ubuntu 20.04 and ROS 1 Noetic and this has started happening ever since the update to Noetic and Ubuntu on 17th January 2025.
I believe the compiler is trying to find the file libsdformat9.so.9.8.0 and it can't because in the latest version of Ubuntu 20.04, the file has been updated to libsdformat9.so.9.10.1.

Please confirm and please fix this issue.

@j-rivero
Copy link
Contributor

If you clean the the workspace (particularly the build/ directory) and try again, does it work?

Otherwise, could you please tell detail here what steps can be done to reproduce the problem?

@DvinHartoonian
Copy link
Author

I ran catkin clean and then ran catkin build after and it fixed my issue.

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants