How to fix qt.qpa.plugin: Could not find the Qt platform plugin "wayland"
1 min read
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
[1] 3755073 IOT instruction (core dumped) soulseekqt
- Install the
qt5-wayland
package.
# debian/ubuntusudo apt install qt5-wayland
# archsudo pacman -S qt5-wayland
- If it doesn’t work, try to run the program with the
QT_QPA_PLATFORM
environment variable set toxcb
.
QT_QPA_PLATFORM=xcb [program-name]
References: