srmainwaring / asv_wave_sim

This package contains plugins that support the simulation of waves and surface vessels in Gazebo.
GNU General Public License v3.0
126 stars 36 forks source link

Could not find shared library #155

Closed AntonioViscomi closed 9 months ago

AntonioViscomi commented 9 months ago

Hi all, I'm trying to run the simulator on gazebo harmonic (ubuntu 22.4). I've done the build with test and no test failed. When I do 'gz sim -v4 -s -r waves.sdf' and gz sim -v4 -g some errors shows up.

In the server terminal I get:

[Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-waves-model-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-waves-visual-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [ArduPilotPlugin] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library. [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-hydrodynamics-system] : Could not find shared library.

While in the client:

[GUI] [Err] [SystemLoader.cc:92] Failed to load system plugin [gz-waves1-waves-visual-system] : Could not find shared library.

I've followed the wiki procedure (also installed gzdev).

edit: forgot to mention that I've changed export GZ_VERSION=garden in export GZ_VERSION=harmonic after it didn't work with the first one.

srmainwaring commented 9 months ago

@AntonioViscomi - this looks like your GZ_SIM_SYSTEM_PLUGIN_PATH is not correct, although cannot tell without more information about your system and environment.

AntonioViscomi commented 9 months ago

This solved the problem. I'm taking my first steps in gazebo and it seems I've built the whole thing in gz_ws/src instead of gz_ws. My fault, thanks a lot.