ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.03k stars 233 forks source link

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

Open acrazyczy opened 6 months ago

acrazyczy commented 6 months ago

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.

enrico223 commented 5 months ago

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