sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

qt could not load "xcb" even though it was found while running sioyek

Open acrazyczy opened this issue 11 months ago • 1 comments

I am using Arch Linux with fish terminal on WSL2 and installed sioyek following the instructions for generic distribution of Linux.

I try to run ./sioyek in build folder, which produces the following error:

qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

fish: Job 1, './sioyek' terminated by signal SIGABRT (Abort)

Regarding my xcb plugins,

/usr/include/xcb/ is owned by libxcb 1.16.1-1
/usr/include/xcb/ is owned by xcb-util 0.4.1-1
/usr/include/xcb/ is owned by xcb-util-image 0.4.1-2
/usr/include/xcb/ is owned by xcb-util-keysyms 0.4.1-4
/usr/include/xcb/ is owned by xcb-util-renderutil 0.3.10-1
/usr/include/xcb/ is owned by xcb-util-wm 0.4.2-1

I installed qt5 using from qt5-qtbase.

acrazyczy avatar Mar 24 '24 19:03 acrazyczy

Try with this ./sioyek --unset-env=QT_QPA_PLATFORM

enrico223 avatar Apr 09 '24 15:04 enrico223