Linux x11 is required even if I compile with QT -= gui and CONFIG += console
-
I get this from a commandline tool I've made if I have no graphics device enabled (I can fake one but that's a bit tricky)
qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/mproject/plugins/platforms:" 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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. Aborted
Any idea about what can I do? I'm worried about needed it due QT += widgets but unfortunately some functional classes like QVector3D are dependant on this.
Thank you in advance for any tip.
-
Hi,
Using the widgets module implies the gui module.
By the way QVector3D is in the gui module.
Are you using classes which requires a QApplication ? If not the just use a QCoreApplication.
If you need a QApplication then use the offscreen backend.