sdt / docker-raspberry-pi-cross-compiler

Raspberry Pi cross-compiler and sysroot in a Docker container.
https://hub.docker.com/r/sdthirlwall/raspberry-pi-cross-compiler/
MIT License
246 stars 69 forks source link

cross compile for pi on osx results in wrong ELF class: ELFCLASS64 #27

Open alrooney opened 7 years ago

alrooney commented 7 years ago

I cross compiled on osx. When I try to run the binary on the raspberry pi I get: wrong ELF class: ELFCLASS64

sdt commented 7 years ago

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.

alrooney commented 7 years ago

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.