Hello,
I am having issues with libtiff.so.5
when running gazebo Harmonic. I recently went from Ubuntu 22.04 to Ubuntu 24.04, then I reinstalled the gazebo harmonic via command
sudo apt-get install ros-jazzy-ros-gz
And after a few solved issues I remained stuck at running simple command:
gz sim
that results in:
user@ubuntu:~$ gz sim
Error while loading the library [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/libgz-sim-physics-system.so]: libtiff.so.5: cannot open shared object file: No such file or directory
[Err] [SystemLoader.cc:107] Failed to load system plugin: (Reason: No plugins detected in library)
- Requested plugin name: [gz::sim::systems::Physics]
- Requested library name: [gz-sim-physics-system]
- Resolved library path: [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/libgz-sim-physics-system.so]
Error while loading the library [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/gui/libGzSceneManager.so]: libtiff.so.5: cannot open shared object file: No such file or directory
[GUI] [Err] [Application.cc:556] Failed to load plugin [GzSceneManager] : couldn't load library on path [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/gui/libGzSceneManager.so].
Error while loading the library [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/gui/libSpawn.so]: libtiff.so.5: cannot open shared object file: No such file or directory
[GUI] [Err] [Application.cc:556] Failed to load plugin [Spawn] : couldn't load library on path [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/gui/libSpawn.so].
Error while loading the library [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/gui/libVisualizationCapabilities.so]: libtiff.so.5: cannot open shared object file: No such file or directory
[GUI] [Err] [Application.cc:556] Failed to load plugin [VisualizationCapabilities] : couldn't load library on path [/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/gui/libVisualizationCapabilities.so].
[GUI] [Err] [Gui.cc:508] Failed to load config file[/home/user/.gz/sim/8/gui.config].
I have tried to install the missing library via command:
sudo apt install --reinstall libtiff5-dev
but it installs libtiff.so.6
instead of requested version .5.
I have tried very risky solution, that creates a symlink named libtiff.so.5, that points to libtiff.so.6, which allows me to start the gazebo sim, but then when I wanted to use in my .sdf file a gazebo plugins like:
<plugin name="gz::sim::systems::NavSat" filename="/opt/ros/jazzy/opt/gz_sim_vendor/lib/gz-sim-8/plugins/libgz-sim-navsat-system.so">
</plugin>
it results into the state, that gazebo opens the gui, but it is empty and no object is loaded and no error is logged. I believe, that this issue is connected to the libtiff library.
Does anyone have the same issue before? I tried the gazebo discord, but unfortunately no one responded.
Thank you guys.