@DirkS, I've been going through the two cross-compile tutorials. You suggested.
The
hackaday.com tutorial seemed easy, but when I transfer the executable to the RasPi and run it, I get a "
segmentation fault" error. I found a few solutions online, but they are not working for me.
Then I tried the
medium.com/@au42 tutorial.
His make files reference "
tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc" and when I try run that compiler on my Ubuntu 16.04 laptop I get this error: "
bash: ./arm-linux-gnueabihf-g++: cannot execute binary file: Exec format error". The file size for this executable is 778k.
I compared that executable to the hackaday tutorial.
The hackaday tutorial is using a compiler in the path "
tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++". Different path and different executable. The file size for this executable is 561k. This is the one that builds my simple "Hello World" test app, but the resulting executable is causing the "
segmentation fault" error on the RasPi.
Do you have any ideas how I can get the cross-compile to work?
Thanks,
Chris