NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.03k stars 13.37k forks source link

toggldesktop missing qt platform plugin xcb #97659

Open fkarg opened 3 years ago

fkarg commented 3 years ago

Describe the bug When starting toggldesktop (after installing it locally), it fails with qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "".

To Reproduce

$ nix-env -iA nixos.toggldesktop
...
$ toggldesktop
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Expected behavior toggldesktop starting.

Additional context

If relevant:

$ exa -lahF .nix-profile/bin/toggldesktop 
Permissions Size User Date Modified Name
lrwxrwxrwx    81 root  1 Jan  1970  .nix-profile/bin/toggldesktop -> /nix/store/kggsh6zsxn78sfzmvyzf8qmylvbwrmw5-toggldesktop-7.4.231/bin/toggldesktop

Attempting to execute it with nix-shell -p toggldesktop does not succeed either, due to a build process failing.

Notify maintainers: @yegortimoshenko

Metadata

$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.7.10, NixOS, 20.03.2882.51d115ac89d (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.6`
 - channels(root): `"nixos-20.03.2882.51d115ac89d"`
 - channels(fkarg): `"nixos-20.03.2843.14006b724f3, nixpkgs-20.09pre239318.c59ea8b8a0e"`
 - nixpkgs: `/home/fkarg/.nix-defexpr/channels/nixpkgs`
chpio commented 3 years ago

EDIT: seem to work now.


getting the same error for *picard*: ``` $ QT_DEBUG_PLUGINS=1 picard [...] In /nix/store/44c67yi9hwrl6if4szkgd37s2wi0n0vy-qtbase-5.15.0-bin/lib/qt-5.15.0/plugins/platforms/libqxcb.so: Plugin uses incompatible Qt library (5.15.0) [release] "The plugin '/nix/store/44c67yi9hwrl6if4szkgd37s2wi0n0vy-qtbase-5.15.0-bin/lib/qt-5.15.0/plugins/platforms/libqxcb.so' uses incompatible Qt library. (5.15.0) [release]" not a plugin QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/z65l1jqvxa58zzwwa3bvglb6asj4y8cv-python3-3.8.5/bin/platforms" ... qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" ``` edit: but im using unstable nixpkgs/nixos: ``` $ nix-info -m - system: `"x86_64-linux"` - host os: `Linux 5.8.14, NixOS, 21.03pre246543.24c9b05ac53 (Okapi)` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.3.7` - channels(root): `"nixos-21.03pre246543.24c9b05ac53"` - channels(thomas): `"nixpkgs-21.03pre246624.cfed29bfcb2"` - nixpkgs: `/home/thomas/.nix-defexpr/channels/nixpkgs` ```
p-h commented 3 years ago

@chpio a workaround is overriding qt5 with qt514

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

Artturin commented 2 years ago

they use cmake instead of qmake so it should be easy to get it working again since the expression no longer needs to be so complicated https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=toggldesktop

spy4x commented 5 months ago

Hey guys! Any update on this by any chance?