NixOS: steam-run alone is one library short of a working Qt
Build PCM package / build (push) Successful in 6s
Build PCM package / build (push) Successful in 6s
Field-tested: under steam-run the PySide6 wheel loads, but Qt aborts at platform-plugin init - the Steam runtime predates Qt 6.5, which hard-requires libxcb-cursor0 for xcb (and its wayland stack is too old for the wayland plugin). Document the working invocation: point LD_LIBRARY_PATH at xcb-util-cursor on top of steam-run, or build a proper buildFHSEnv wrapper. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -95,11 +95,19 @@ OS specifics are spelled out per step and in *Platform notes* below.
|
|||||||
**NixOS**: pip's Linux wheels link against standard FHS library
|
**NixOS**: pip's Linux wheels link against standard FHS library
|
||||||
paths, which NixOS does not provide — PySide6 fails with
|
paths, which NixOS does not provide — PySide6 fails with
|
||||||
`libgthread-2.0.so.0: cannot open shared object file`. The plugin
|
`libgthread-2.0.so.0: cannot open shared object file`. The plugin
|
||||||
cannot fix this from inside its venv (KiCad installs wheels only):
|
cannot fix this from inside its venv (KiCad installs wheels only);
|
||||||
run KiCad inside an FHS environment (e.g. `steam-run kicad`) or
|
run KiCad inside an FHS environment. `steam-run kicad` alone is
|
||||||
enable `programs.nix-ld` with Qt's runtime libraries (glib,
|
**not** enough: its runtime predates Qt 6.5's hard requirement for
|
||||||
fontconfig, freetype, dbus, libGL, libxkbcommon and the X11/xcb
|
`libxcb-cursor0`, so Qt aborts with *"no Qt platform plugin could
|
||||||
set).
|
be initialized"*. Supply that one library on top:
|
||||||
|
```sh
|
||||||
|
XCBCUR=$(nix build --no-link --print-out-paths nixpkgs#xcb-util-cursor)
|
||||||
|
QT_QPA_PLATFORM=xcb LD_LIBRARY_PATH=$XCBCUR/lib steam-run kicad
|
||||||
|
```
|
||||||
|
or build a dedicated FHS wrapper with `buildFHSEnv` whose
|
||||||
|
`targetPkgs` include `kicad`, `xcb-util-cursor`, `glib`,
|
||||||
|
`fontconfig`, `freetype`, `dbus`, `libGL`, `libxkbcommon`,
|
||||||
|
`wayland` and the `xorg` X11/xcb libraries.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user