But the more strange thing is that it could correctly create and read TObjects, with these errors. It also seemed correct when opening the root file using ROOT directly.
The path picture showed is the “install path”, include the copy of libraries and pcms. The original path of library and pcm are different, but they are in the same install path.
By the way, I did it in this way with ROOT 6.13.06 and it was no error.
ROOT v6.18 has enforced better consistency between .so files and rdict files. The rdict files should be in the same location where the library is and should have the same name as the library but ending with _rdict.pcm.
Can you tell us the output of realpath some/path/to/StcfMCHeaderDict_rdict.pcm,realpath some/path/to/libStcfMCEvent.so and realpath some/path/to/libStcfMCEvent_rdict.pcm?
Let’s start simple. Can you remove the installation first and see if the error persists. If it still persists then could you export ROOTDEBUG=7 in the terminal before running root and attach the output?
@whyellowbred, the library seems to be called libStcfMCEvent.so and the rdict.pcm StcfMCEventDict_rdict.pcm. Is there a rename step say from StcfMCEventDict.so to libStcfMCEvent?