-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Qt: enhance cross-compilation support for desktop platforms #6208
Conversation
29f31f9
to
b2bba4d
Compare
I'm not sure what qttools package brings here, cross-compilation is supported by qtcore by having it install the tools when cross-compiling, why not just extend this logic? |
The main reasons for using
I hope this clarifies your concerns. |
Thanks for the clarification, it seems like a nice change indeed. |
I just noticed a potential issue in both the |
Resolved by adding the following check to for _, dep in ipairs(package:plaindeps()) do
if not dep:fetch() and dep:parents(package:name()) then
return
end
end |
This PR improves cross-compilation workflows by introducing a new
qt-tools
package, which provides the essential host tools required for building Qt applications in cross-compilation environments.Example Usage
For a simple Qt Widgets application created using the command:
Update the
xmake.lua
file as follows:To build the project for MinGW on Linux, run:
This command will automatically install all required packages, including
qt6base
,qt6core
,qt6gui
, andqt-tools
.Alternatively, we can specify a host Qt SDK using the
--qt_host
option:qt-tools
package will be installed to ensure compatibility.