-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[qt5] Cross-compilation for ARM64 fails #16922
Comments
qt5-base is not yet setup for cross builds since host triplets were just recently added. You can try setting |
|
Confirm |
Finaly i found dirty solution and can cross-compile So what i did:
And it works for me. I got armv6/armv7a/arm64 vcpkg libraries set! @Neumann-A hope it could help in the future investigating. UPD: Also added there another hack to cross compile for Mac M1 (based on https://github.com/qbittorrent/qBittorrent/wiki/Compilation:-macOS-(x86_64,-arm64,-cross-compilation)) UPD2: Now that branch contains patches to cross-compile qt5-base on: (host -> target) UPD3: I spent a lot of time to try to understand and fix |
This is also on my wishlist, adding cross-compilation for ARM64 for Qt 5.15 would be really nice and another small step towards a more mature windows arm64 ecosystem. |
Qt 5 doesn't require host Qt installation to exist, only Qt 6 does. But currently vcpkg builds both host and target variants which doesn't seem right. Here's an example how to cross-compile Qt5-base (checked on 5.15.5) x86_64 -> arm64 on a Mac that doesn't require editing any mkspecs:
maybe the same would work on Windows. Qt tools like qmake and moc are built for host and libs are built for target: > lipo -info lib/libQt5Core.a
Non-fat file: lib/libQt5Core.a is architecture: arm64
> file bin/moc
bin/moc: Mach-O 64-bit executable x86_64 |
Qt5 in vcpkg simply doesn't work like upstream. |
Is there any progress with this? I found that the |
@Neumann-A Could you have any suggestions for cross-compilation of qt5-base under arm64? |
Requires setting it up from the portfile for windows? |
From https://code.qt.io/cgit/qt/qtbase.git/tree/cmake/README.md:
The text was updated successfully, but these errors were encountered: