rviz crashing on startup while looking for libraries
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 ?