ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rviz crashing on startup while looking for libraries

asked 2022-10-11 09:04:46 -0500

clueless gravatar image

updated 2022-10-11 09:36:46 -0500

I am starting out using ROS (Noetic) and have built ROS Noetic from source on Fedora35. I have only just got it all built, and thought I would try some cartographer demos.

When I run rviz, it crashes with the following

[mike@modron slam]$ /opt/ros/noetic/lib/rviz/rviz -d /home/mike/work/slam/install_isolated/share/cartographer_ros/configuration_files/demo_2d.rviz __name:=rviz __log:=/home/mike/.ros/log/7fad24d8-48c6-11ed-956e-1c1b0d953da9/rviz-4.log].
[ INFO] [1665483357.826180715]: rviz version 1.14.19
[ INFO] [1665483357.826241116]: compiled against Qt version 5.15.2
[ INFO] [1665483357.826254821]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1665483357.832717719]: Forcing OpenGl version 0.
[ WARN] [1665483358.015412053]: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /RenderSystem_GL.  System Error: /RenderSystem_GL.so.1.9.0: cannot open shared object file: No such file or directory in DynLib::load at /builddir/build/BUILD/ogre-1.9.0/OgreMain/src/OgreDynLib.cpp (line 107)
terminate called after throwing an instance of 'Ogre::InternalErrorException'
what():  OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /RenderSystem_GL.  System Error: /RenderSystem_GL.so.1.9.0: cannot open shared object file: No such file or directory in DynLib::load at /builddir/build/BUILD/ogre-1.9.0/OgreMain/src/OgreDynLib.cpp (line 107)
Aborted (core dumped)

My OGRE stuff is in /usr/lib64 and /usr/lib64/OGRE and this build appears (from this error message) to be looking in / for the libraries. To test this, I put a temporary symlink in / pointing to /usr/lib64/OGRE/RenderSystem_GL.so, and when I reran it complained about a different library. So it really is looking at / for libraries.

Clearly, I've done something wrong in the build of noetic and/or rviz or with my configuration.

I do not have the source for OGRE, these libraries come from the Fedora repos, so all that "DynLib::load at /builddir/build/BUILD/ogre-1.9.0/OgreMain/src/OgreDynLib.cpp (line 107)" is meaningless to me

LD_LIBRARY_PATH is set up OK.

My Noetic build instructions came from here Installation from source

Anyone got any hints or tips about where I have gone wrong ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-10-13 10:50:10 -0500

clueless gravatar image

OK. Well, after a lot of messing about I can confirm that the binary in the Fedora repo simply does not work.

I have rebuilt several versions of Ogre (v13.5, v1.10.7 & v1.9.1), then rebuilt rviz.

I build ogre from source (v 1.9.1) - which is the oldest available; and it simply worked.

edit flag offensive delete link more
0

answered 2022-10-11 10:13:32 -0500

duck-development gravatar image

updated 2022-10-11 10:14:10 -0500

Has your fedora ogre 1.9

The other thing is there neotic fedora32 is named not fedora35 rep 3

edit flag offensive delete link more

Comments

Thanks for the reply.

Fedora35 has ogre 1.9and it successfully built against it, so I do not understand why it fails to find it when running.

I acknowledge that Noetic is supported against Fedora32, but Fedora 32 , 33 & 34 are end of life products, and even Fedora 35 is end of life next month I believe.

clueless gravatar image clueless  ( 2022-10-11 10:22:15 -0500 )edit

Did you try to use ldd your start cmd to get all libs you depend on

duck-development gravatar image duck-development  ( 2022-10-11 10:37:04 -0500 )edit

It's not listing anything from /usr/lib64/OGRE. Maybe I'll try rebuilding it and take more notice of all stuff scrolling off the screen

clueless gravatar image clueless  ( 2022-10-11 10:42:34 -0500 )edit

You may have the issu https://github.com/OGRECave/ogre/issu... may this help you

duck-development gravatar image duck-development  ( 2022-10-11 10:46:14 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-10-11 09:04:46 -0500

Seen: 181 times

Last updated: Oct 13 '22