docker-raspberry-pi-cross-compiler
docker-raspberry-pi-cross-compiler copied to clipboard
cross compile for pi on osx results in wrong ELF class: ELFCLASS64
I cross compiled on osx. When I try to run the binary on the raspberry pi I get: wrong ELF class: ELFCLASS64
I suspect #23 may fix your problem.
Could you try compiling with rpxc arm-linux-gnueabihf-gcc
rather than rpxc gcc
and let me know if that fixes things for you?
If you're using g++
or whatever instead of gcc
, add that same arm-linux-gnueabihf-
prefix.
Thanks for the suggestion. I suspect that will work, but I am having issues resolving the dependencies now that I have configured that as my compiler. Will continue to track that down, but it is unrelated to my original issue.