Reputation: 21
Continuation of this topic
First of all, I'm new on the site, excuse me if I make beginner mistakes :).
Then, my subject has been on the front page of many topics but I didn't really find any similarity or the topic is very old.
I have a Linux Debian Jessie ARMhf tablet (gcc version 4.9.2)
I have a Linux Mint 19.1 Tessa x86_64 PC
I want to cross compile files from the PC to the tablet
The tablet is connected in SSH with the PC (so I can't do a "target" on the tablet)
I am trying to compile a c++ file that depends on shared .so libraries.
I would like to set the location of these libraries with -Wl,-rapth,/path/to/lib but it doesn't seem to work.
The error must be related to the arm-linux-gnueaihf-g++ compiler.
Indeed when I do with the base pc compiler :
`$ g++ -o test test.cpp -Iinclude -Wl,-rpath,/path/to/my/lib -L/path/to/lib -lLib1name -lLib2name`
there are no errors, but with the cross-compiler
`$ arm-linux-gnueabihf-g++ ...`
it indicates an error :
`$ /usr/local/lib/lLib1name.so file not recognized`
You can already see that it doesn't take into account -rpath (because the paths are different) and that arm-linux-gnueabihf should be the source of the error.
Thank you for helping me :)
Upvotes: 0
Views: 350