Could not load the Qt platform plugin "xcb
-
wrote on 17 Sept 2023, 10:37 last edited by
if calling system("~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro &");
getting output below:
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
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: minimalegl, offscreen, wayland-egl, linuxfb, minimal, vkkhrdisplay, wayland, xcb, vnc, eglfs.
-
if calling system("~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro &");
getting output below:
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
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: minimalegl, offscreen, wayland-egl, linuxfb, minimal, vkkhrdisplay, wayland, xcb, vnc, eglfs.
Hi,
Are you running your Desktop Environment on Wayland as the error message suggests ? If so, do as suggested and use the wayland QPA.
If not, start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see exactly why the xcb loading fails.
-
wrote on 19 Sept 2023, 11:33 last edited by
try:
sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'
-
wrote on 25 Oct 2023, 17:32 last edited by
@Stecco Thanks stecco, I was unable to run the latest versions of qtcreator and after running your suggestion (sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*') everything got solved.