Skip to content
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

Possibly build this for ARM-based Ubuntu? #18

Open
rreed opened this issue Sep 5, 2023 · 1 comment
Open

Possibly build this for ARM-based Ubuntu? #18

rreed opened this issue Sep 5, 2023 · 1 comment

Comments

@rreed
Copy link

rreed commented Sep 5, 2023

Today, fetch_qt6 always gets an x86_64 binary, even on Ubuntu Server. This makes this completely unusable there, and removing the fetch call still doesn't allow Bazel to find a system ARM-friendly qt6.

@Vertexwahn
Copy link
Owner

Vertexwahn commented Sep 8, 2023

ARM support on Linux should be not to hard

look for thing like this:

qt_toolchain(
    name = "qt_linux",
    data = [
        "@qt_linux_x86_64//:moc",
        "@qt_linux_x86_64//:rcc",
        "@qt_linux_x86_64//:uic",
    ],
    moc_cmd = "$(location @qt_linux_x86_64//:moc)",
    rcc_cmd = "$(location @qt_linux_x86_64//:rcc)",
    uic_cmd = "$(location @qt_linux_x86_64//:uic)",
)

We need to add something like this:

qt_toolchain(
    name = "qt_linux",
    data = [
        "@qt_linux_arm64//:moc",
        "@qt_linux_arm64//:rcc",
        "@qt_linux_arm64//:uic",
    ],
    moc_cmd = "$(location @qt_linux_arm64//:moc)",
    rcc_cmd = "$(location @qt_linux_arm64//:rcc)",
    uic_cmd = "$(location @qt_linux_arm64//:uic)",
)

And we need a prebuild Qt version -> https://github.com/Vertexwahn/rules_qt6/blob/main/docs/prebuild_qt_versions.md

Can imagine that it works straightforward.

Not sure if I will time for this...

Contributions are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants