-
-
Notifications
You must be signed in to change notification settings - Fork 84
[Linux] Static Qt6 Dependency error building with cmake+vcpkg #510
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
Comments
(note: on mateo's set up, anyway, since CI is happy, and on personal builds it's also fine: macOS (clion with cmake+vcpkg (adriweb)) and windows too (VS with cmake+vcpkg (calc84)) I'm trying a fresh Ubuntu VM to see if I can repro |
I know that it was a joke and that pieces of information were available elsewhere to other maintainers, but the first version of your bug report was begging for a "you suck at making actionable bug reports" response, dear Mateo ;) |
Gotta make the title clickbaity 👀 |
I basically repro'd the issue on a fresh Ubuntu 24.10 VM. I'll try investigating that a bit more before trying with a config closer to the CI (same vcpkg commits and all that) |
So far no luck, even after having checked out an older vcpkg. I'm not sure why qt's cmake stuff can't find the xcb lib, whether host or vcpkg-provided... especially when there's no such problem in CI. Building in Dynamic seems to be OK, as long as you end up providing the xcb qt plugin later... but that's not solving the issue. |
So... in conclusion, where it works fine on macOS and Windows, something is weird on Linux in some setups (at least on a fresh Ubuntu 24.10 VM, I guess I can try on another distro but even the Ubuntu CI works for unknown reasons), for the Static Qt6 build of CEmu (the default!) within vcpkg from cmake: it fails to find xkbconfig-x11, which ends up as a required dependency for the "xcb" qt platform plugin. For now, if you want to build on Linux:
If anyone wants to dive deeper than Mateo and I did, feel free to do so, as this is becoming a mystery, especially when it works in CI! In the meantime, I've added the Linux Qt5 presets for cmake+vcpkg in b3821a5. cmake -G Ninja --preset Linux-x64-Qt5 -DDEPS_RELEASE_ONLY=ON
cmake --build --preset Linux-x64-Qt5-Release |
Uh oh!
There was an error while loading. Please reload this page.
It doesn't build and nothing works
While building Qt (?) with cmake+vcpkg:
The text was updated successfully, but these errors were encountered: