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

Enable cross-compilation #18

Open
tribbloid opened this issue Aug 1, 2024 · 3 comments
Open

Enable cross-compilation #18

tribbloid opened this issue Aug 1, 2024 · 3 comments

Comments

@tribbloid
Copy link

2 options I'm aware of but haven't tried:

my team is working on several builds for ARM architecture (MacOS/Linux). They work smoothly, but we would ideally move to a single publishing pipeline that uses a x86_64 computer to build binaries for all environments.

please upvote if you have similar requirement

@badicsalex
Copy link
Owner

Does this project need to be modified in any way to allow using these tools?

@tribbloid
Copy link
Author

negative, my branch (without opencv dependency) compiles on both a amd64 laptop & a rockchip SoC as-is, both with the latest Debian + libhidapi-dev + libusb-1.0-0-dev.

would be interested to know how Android SDK did this

@truedat101
Copy link

I would be interested in this as well. Could also consider using bazel. It could sit along side the traditional builds in the repo. https://github.com/bazelbuild/examples/blob/main/rust-examples/02-hello-cross/README.md. All rust all the time is cool but some things are better at handling dependencies. My past attempts at rust cross compilation were full of difficulties, but it was awhile back. I recently ran through the bazel build rust examples and was suitably impressed with what can be possible. There is a learning curve with bazel, however, I do use it for another project where cross compilation is part of the process. I would say the big win for a dev is not having to manage toolchains, and dependencies get handled cleanly.

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

3 participants