i.e. under the system files. I find this strange because I installed geant4 against my local copy of Qt5 in my home directory where you can find these libraries under:
Is the load_gdml executable installed, or are you running it from where you built it? If the former, then it’s not going to find libraries in locations like /home/richard/Qt5.12.12/5.12.12/gcc_64/lib/cmake. If you want it to do that, you’ll need to configure the application with -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON. See also the CMake Wiki on RPATH handling, which is old, but still relevant.
As an aside, Debian 12 provides system packages for Qt5 5.15, so I’d recommend using those unless you have very specific reasons to not do so.
I am running the executable load_gdml.sh from ~/g4work/G01/build.
A while ago, when I was installing geant4.v10.7.4 I had problems getting it to see the correct Qt5 system libraries which is why I opted for a local install of Qt5.12.12. This may be the source of my problems i.e. clashing versions between system and local files?
What does readelf -d load_gdml print? Nominally Cmake should add the full rpath to needed libraries, and a Geant4 install should be providing those on the link line. Could you also rebuild G01 from scratch and run make VERBOSE=1 (or ninja -v if you use Ninja) and post the output of the final link command please?
Thank you for your attention. Before you sent your last message, I removed my local copy of Qt in my home drive and made sure that I had all the prerequisite library files for Qt in their system locations.
I then re-installed Geant4 and now G01 works fine.