Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alrooney opened this issue Feb 3, 2017 · 2 comments
Open

Comments

@alrooney
Copy link

alrooney commented Feb 3, 2017

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

@sdt
Copy link
Owner

sdt commented Feb 3, 2017

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
Copy link
Author

alrooney commented Feb 4, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants