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

ARM builds #19

Closed
shesek opened this issue May 27, 2020 · 6 comments
Closed

ARM builds #19

shesek opened this issue May 27, 2020 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@shesek
Copy link
Collaborator

shesek commented May 27, 2020

No description provided.

@shesek shesek added the enhancement New feature or request label May 27, 2020
@dr-bonez
Copy link

Happy to take this on if no one is already on it.

@dr-bonez
Copy link

I have successfully cross-compiled to armv7-unknown-linux-musleabihf using https://github.com/Start9Labs/rust-musl-cross. No modifications were necessary.

@dr-bonez
Copy link

I have successfully cross-compiled to armv7-unknown-linux-gnueabihf using https://github.com/Start9Labs/rust-arm-builder. No modifications were necessary.

@shesek
Copy link
Collaborator Author

shesek commented May 27, 2020

I have successfully cross-compiled to armv7-unknown-linux-gnueabihf using https://github.com/Start9Labs/rust-arm-builder. No modifications were necessary.

Very nice!

I'm not very experienced with Rust cross-compilation, but is the docker image necessary to make this work? I'm able to cross compile Windows builds from my Linux by just using the right target, and some online resources suggest that it should be possible for arm as well.

If it is necessary, could https://github.com/rust-embedded/cross be suitable to do this?

@dr-bonez
Copy link

docker is not strictly necessary for cross compilation, you can always setup the full necessary environment locally. However, most projects rely on a gcc cross-compiler and openssl for the desired target. These docker images already have that set up, so it is a lot more convenient. I have not used cross before but I imagine it works fairly similarly to the above images.

@dr-bonez
Copy link

looks like cross works out of box as well

@shesek shesek added this to the v0.1.5 milestone Sep 26, 2020
shesek added a commit that referenced this issue Sep 26, 2020
shesek added a commit that referenced this issue Sep 26, 2020
shesek added a commit that referenced this issue Sep 26, 2020
shesek added a commit that referenced this issue Sep 26, 2020
shesek added a commit that referenced this issue Sep 26, 2020
shesek added a commit that referenced this issue Sep 28, 2020
@shesek shesek closed this as completed Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants