-
Notifications
You must be signed in to change notification settings - Fork 50
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-compiler support #87
Comments
Hi, Ritual doesn't currently support any kind of cross-compilation. It seems that you need to configure the cmake project properly to do a cross-compilation of the There is no option to do this through ritual's API, but you can hack around it. The relevant code executed by the build script is here. You can clone the repository and add your cmake variable (
If this turns out to be working, we'll make a more convenient way to pass this variable.
The generated crates are able to use various Qt versions, as long as they are not too old (currently, 5.9 is the oldest supported version). Hopefully you'll be able to use the published crates. The compiler error indicates that Qt tries to use GLES (GL for Embedded Systems) which is not available on desktops. This is correct, and the error should be fixed when cross-compilation is properly configured for |
Look as very valuable input to me, I will try this on the weekend. |
Hi, after adopting your suggestion into However, the executable
I also checked Whats up with this binary and why are the executing? thx |
The build script calls this binary here. You can patch The proper fix for that issue would be either not to call |
Hi,
I'd like to use Rust QT bindings for an embedded target. The build host is an x86, the target is an aarch64 architecture. However I can't figure out how to cross compile the qt bindings crate.
I suppose it has something to with the c_lib part which is part of each crate generated by ritual.
From my build logs I see that the host compiler instead of the target is used for c_lib. I think this is because cmake does not get setup for cross-compiling during this build step.
Further, it might be necessecary to re-generate my own crates to match the qt-version used on the cross target and not the host (https://github.com/rust-qt/ritual#generating-qt-crates).
What is the preferred way to select the sysroot/cross toolchain in ritual?
By the way, I am using buildroot.
The missing include file (see log below) is present int the sysroot of the target (but not on the host).
Thanks for your help
The text was updated successfully, but these errors were encountered: