I am using a shared library with ROOT. Everything works fine when I use it in a mahine running Fedora 7. However, I found that when I try to load the shared library in a RedHat ( version 4) machine it gives the following error.
{gSystem->Load(“libnbROOT.so”);}
dlopen error: /globalhome/jaliya/tmp_root_test/rootsvn/samples/./libnbROOT.so: cannot open shared object file: No such file or directory
Load Error: Failed to load Dynamic link library /globalhome/jaliya/tmp_root_test/rootsvn/samples/./libnbROOT.so
I am using the same ROOT version in both machines.
I also noticed that if I try to load “libQtRoot.so” in the lib directory of the root installation it does not work in the RedHat machine but it works fine in the Fedora version.
Could you please help me to figure out this problem?
I acutally build the binaries in these two systems separately. Compilation (including dictionary generation) works fine, but when I try to load the binaries on RedHat 4 it gives me the above error.
I was using ROOT 5.12.00e earlier and now I tested it with ROOT 5.21.02 and still it is the same.
Thank you very much for helping me to figure this out.
I treid adding compiler options and build my library for 32 bit platforms. Still it gives lot of compiler errors. Seems like I have to build ROOT for this machine. I will give it a try and let you know the results.