How to Cross-Compile a Slint Application with Qt Backend in Rust #8100
-
How to Cross-Compile a Slint Application with Qt Backend in RustI'm developing an application using Slint and Rust, and I want to use Qt as the backend for rendering the UI. I need to cross-compile this application to different target platforms. Current Environment
Goals
What I've TriedI've already added Slint as a dependency in Cargo.toml, but I'm not sure how to specify Qt as the backend and properly set up the cross-compilation environment. Specific Questions
Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm uncertain whether I need to download the corresponding version of Qt for the target platform on my local machine. |
Beta Was this translation helpful? Give feedback.
-
I have never done it so I can't help, but you can specify the QT_INCLUDE_PATH and QT_LIBRARY_PATH env variables when compiling. |
Beta Was this translation helpful? Give feedback.
If you're using cross then you need these to be set inside the docker container. You can set the from the outside and use
passthrough
in[build.env]
in yourCross.toml
. The paths they'd be referring to are local to the container though.How do you install Qt for your target architecture inside the cross container?