In his book “Exploring BeagleBone”, Derek Molloy provides example of executing of the source code that built on host machine using cross toolchain. For that QEMU emulator must be installed on host machine.
In terminal it works fine when a source is built with -static option:
pavel@ALABAMA:~/bbb_cross_toolchain_code$ arm-linux-gnueabihf-g++ -static testcross.cpp -o testcross
Testing cross compilation for armhf
But in Eclipse it doesn’t work although I added -static in cross-compiler options.
Any comments ?
For some reason the images didn’t show up in mail…
/lib/ld-linux-armhf.so.3: No such file or directory
Here is execution in eclipse:
Here is Eclipse compiler options:
-static isn’t compiler, but linker option.
Did you look on the book website?
Look at the response by Brendan Lynskey regarding adding the following in your “~/.bashrc”
You could do this on the command line as well but it will not be persistent between logins.
Sorry, I see you already solved this and the link I provided was for the Pi and BB.
There is a message fairly recently at the BB version of the book regarding this issue: