docker-raspberry-pi-cross-compiler icon indicating copy to clipboard operation
docker-raspberry-pi-cross-compiler copied to clipboard

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

Open alrooney opened this issue 8 years ago • 2 comments

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

alrooney avatar Feb 03 '17 04:02 alrooney

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.

sdt avatar Feb 03 '17 04:02 sdt

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.

alrooney avatar Feb 04 '17 04:02 alrooney