We cross compile and link our elf from a x86 host against aacrch64 libs and headers. After copying the compiled binary to a TX1 and try to run it, we get:
“error while loading shared libraries: libnvidia-ml.so.1: cannot open shared object file: No such file or directory.”
The readelf reports:
0x000000000000000f (RPATH) Library rpath: [/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs]
which does exist on the TX1.
Does the elf has to be compiled on a TX1 for it to work? Or I am missing something in the RPATH or our build environment?
Thanks for the help!