Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linux x11 is required even if I compile with QT -= gui and CONFIG += console
Forum Updated to NodeBB v4.3 + New Features

Linux x11 is required even if I compile with QT -= gui and CONFIG += console

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 129 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FrankE
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved