-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[package] qt/6.x: Qt 6 can not be cross-compiled #20257
Comments
Aww yes, won't the Qt recipe effectively have to add itself as a |
This would already be in place: https://github.com/conan-io/conan-center-index/blob/master/recipes/qt/6.x.x/conanfile.py#L396-L397
I prepared the changes here |
Nice, I didn't know that we already added it as a Since Qt is available as a |
This is needed so the tools will also be built for the target platform. Otherwise there will be no moc etc. in the binary package being built so this Qt could not be used for development on the target platform. I came across this when building for x86_64 on an Apple Silicon machine. With Rosetta, the tools cross-compiled for Intel Macs can also be executed, but they would not be built without the flag being set. |
Ah, I see. It's because the |
Ah, i did not recognize the "module options" yet, thanks! Pushed it and hope to be able to try it out tomorrow on a Mac. |
It' not related to qttools. Moc, qmake, uic etc are part of qtbase. Is there an adverse effect of defining |
As i understand the documentation, the tools built for the target platform would be used for building the rest of Qt. This would mean that the tools need to be executable on the build platform too, which may not be the case. |
The
When disabling this I'm having the following issue
@ericLemanissier do you perhaps have any insights since you worked in this recently? |
@actondev see #21037 (comment) and following messages |
Description
Since there is a check implemented in
validate()
and setting theQT_HOST_PATH
CMake variable is not implemented, it is not possible to cross-compile Qt, e.g. for x86_64 on an Apple Silicon machine.Package and Environment Details
Conan profile
[settings]
os=Macos
os_build=Macos
arch=x86_64
arch_build=armv8
compiler=apple-clang
compiler.version=14
compiler.libcxx=libc++
build_type=Release
[options]
[conf]
[build_requires]
[env]
Steps to reproduce
conan install --build missing qt/6.5.2
Logs
not relevant
The text was updated successfully, but these errors were encountered: