I have met a xerces related error.
The gdml has been turned on when installing geant4 (version 10.5.p01), and the xerces can be found by geant4 installation.
In the geant4make.sh file, I can see xerces has been set up.
but when I compiled examples with reading gdml files, I had below errors:
/usr/bin/ld: cannot find -lxerces-c
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
collect2: error: ld returned 1 exit status
the gcc version is 7.1.0.
then, I set below in .bashrc
the errors were the same. I don’t know why.
Actually, above errors are just found in a linux cluster. For my own linux machine, gdml can be read in without any problems.