-
Notifications
You must be signed in to change notification settings - Fork 143
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
a lot of (maybe all) packages depending on qt6 fail to cross-compile #3035
Comments
every single one of them fails to cross compile, yes. it's not unexpected and there's nobody interested in making it work (since cross compiling is not a primary focus and it being broken is not seen as a bug) |
if you know what magic to pass to cmake for qt cross to work and for it to use 'host moc/uic , etc tools' then maybe it's fixable |
oh, i understand, sorry for making the issue |
you can keep it open but i don't think i'll make any attempt at fixing it (anybody else is free to though) (also there is probably a lot more other packages that fail to crosscompile, it's not something unique to qt6 because i don't usually test cross at all) |
they should perhaps be marked as !cross, but i think marking things fundamentally uncrossable because 'all are qt' is a bit bad, since then there's a lot of work to later unset it if that (single) issue is fixed. it's easier to just not touch it even though it's known-broken.. (i think the same thing for gobject-introspection- if they add an actual fix upstream then we have to remove !cross in 100 places, which isn't super meaningful) |
I think the following changes may help to cross compile with qt6. --- a/main/karchive/template.py
+++ b/main/karchive/template.py
@@ -2,6 +2,10 @@ pkgname = "karchive"
pkgver = "6.8.0"
pkgrel = 0
build_style = "cmake"
+configure_args = [
+ "-DQt6CoreTools_DIR=/usr/lib/cmake/Qt6CoreTools",
+ "-DQt6LinguistTools_DIR=/usr/lib/cmake/Qt6LinguistTools",
+]
# fails with zlib-ng equality on comp data
make_check_args = ["-E", "kfiltertest"]
hostmakedepends = [
@@ -9,6 +13,8 @@ hostmakedepends = [
"extra-cmake-modules",
"ninja",
"pkgconf",
+ "qt6-qtbase-devel",
+ "qt6-qttools-devel",
]
makedepends = [
"qt6-qtbase-devel", Similar options are used in another repository https://github.com/termux/termux-packages/blob/e7e4eff910aaf14f1a706606968b40f0016100af/x11-packages/lxqt-session/build.sh#L13 |
adding that to every template is a definite no |
the packages i've tested fail during the configure stage due to it trying to launch a binary from a foreign architecture, even if the equivalent for the host architecture is installed
different packages seem to be failing in different stages, for example in the AUTOMOC stage (example: main/openmw) or while executing ECMQueryQt.cmake (example: main/karchive)
i've attached a log from my attempts of building these two packages
here's a list of packages i've attempted and failed to crossbuild:
log for main/openmw (target aarch64, host x86_64)
log for main/karchive (target riscv64, host x86_64)
The text was updated successfully, but these errors were encountered: