Hello.
I have to use the so file that is compiled at Ubuntu in TX2.
but i met the message “OSError: cannot open shared object file: No such file or directory”
I checked location of so file and read the so file as absolute path in hard coding environment.
but i met same message… why didn’t TX2 find the so file??
My desktop could read the so file in Ubuntu.
Where did you put the file? Is it in the linker path? You can see all the linker sees via:
ldconfig -p
You can look for something specific, e.g., libGLX via:
ldconfig -p | egrep 'libGLX'
If you just put a file in the linker path and did not reboot, then the file won’t be seen unless you run:
sudo ldconfig
If the file is not in the link path, then you might use LD_PRELOAD to add it:
LD_PRELOAD=/where/ever/it/is/libSomething.so your_program
If you used “-rpath” in linking, then your lib must be in that exact spot. See “man ld” and search for “rpath”.