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

Undefined Symbol in libgz-rendering-7(or 9)-ogre2 on Ubuntu 22.04.4 LTS #999

Open
Jack-ReframeSystems opened this issue May 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Jack-ReframeSystems
Copy link

Jack-ReframeSystems commented May 11, 2024

Environment

  • OS Version: Ubuntu 22.04.4 LTS
  • Source, on branch gz-rendering7, commit f95826f
  • Rendering Plugin: Ogre2
  • Ogre Versions:
libogre-next-2.3-dev/unknown,now 2.3.1-9osrf~jammy amd64 [installed]
libogre-next-2.3.0/unknown,now 2.3.1-9osrf~jammy amd64 [installed,automatic]
libogre-next-dev/jammy,now 2.2.5+dfsg3-0ubuntu2 amd64 [installed]

I am fairly positive this was caused by a change in the Hlms setupRootLayout interface in this commit of Ogre-next: OGRECave/ogre-next@ea9c99a#diff-ddd79ccfa4b6debd7d7161129f18e9b52196690bb885d32736be9bb72f403d1fR225

You can see setupRootLayout got a new signature which is not used in the gz-rendering codebase.

Description

  • Expected behavior: Gazebo should start and successfully load the libgz-rendering7-ogre2 engine plugin.
  • Actual behavior: Gazebo crashes with:
[ruby $(which gz) sim-15] Error while loading the library [install/lib/gz-rendering-7/engine-plugins/libgz-rendering-ogre2.so]: install/lib/gz-rendering-7/engine-plugins/libgz-rendering-ogre2.so: undefined symbol: _ZN4Ogre7HlmsPbs15setupRootLayoutERNS_10RootLayoutE
[ruby $(which gz) sim-15] [GUI] [Err] [RenderEngineManager.cc:534] Failed to load plugin [gz-rendering-ogre2] : couldn't load library on path [install/lib/gz-rendering-7/engine-plugins/libgz-rendering-ogre2.so].

Steps to reproduce

  1. Try and build Gz-Garden from source on Ubuntu 22.04.4 LTS
  2. Run gz sim and load up any simulation world.
@Jack-ReframeSystems Jack-ReframeSystems added the bug Something isn't working label May 11, 2024
@traversaro
Copy link
Contributor

I see that both ogre-next 2.3.1 and 2.2.5 are installed by apt, that as you correctly point out are not ABI-compatible. Can you try to uninstall one of the two, and try to re-comile gz-rendering (and any downstream package that depends from gz-rendering and you are compiling from source) from a clean build? My guess is that the problem should disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Inbox
Development

No branches or pull requests

2 participants