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. QT-Eglfs not working on x86_64 debian testing
Forum Updated to NodeBB v4.3 + New Features

QT-Eglfs not working on x86_64 debian testing

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.4k Views 1 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.
  • E Offline
    E Offline
    Erdbeergulasch
    wrote on last edited by
    #1

    Hi,

    after building QT with opengl (following this howto: http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi)

    and compiling one of the examples, i get the following error ("QXcbConnection: Could not connect to display")
    if i run the example from a shell without x-server
    on a shell with x-server this example is fully working, but i don't think, that eglfs is working, the qt-application uses only x11.

    the reason is, that i want to run my own qt-applications without x-server applications i only want to run them directly with eglfs.

    i am running a debian testing (with 64bit)

    here are the steps, i did to compile qt:
    git clone git://gitorious.org/qt/qt5.git
    cd qt5
    ./init-repository

    Tweak the qt_base configure

    change the following lines in /usr/local/src/qt5/qtbase/configure

    flags for libdbus-1

    QT_CFLAGS_DBUS="-I/usr/include/dbus-1.0/ -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include/"
    QT_LIBS_DBUS=-ldbus-1

    flags for Glib (X11 only)

    QT_CFLAGS_GLIB="-I/usr/include/glib-2.0/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/"
    QT_LIBS_GLIB=-lglib-2.0

    and add the following lines in /usr/local/src/qt5/qtbase/configure
    QT_CFLAGS_PULSEAUDIO="-I/usr/include/glib-2.0/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/"
    QT_LIBS_PULSEAUDIO="-lpulse -lpulse-mainloop-glib"

    flags for GStreamer (X11 only)

    QT_CFLAGS_GSTREAMER="-I/usr/include/gstreamer-0.10/ -I/usr/include/glib-2.0/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/ -I/usr/include/libxml2/"
    QT_LIBS_GSTREAMER=

    add the following to the line, where QT_CFLAGS_FONTCONFIG is in the else-case:
    QT_CFLAGS_FONTCONFIG=-I/usr/include/freetype2/

    Run ./configure
    ./configure -v -opengl es2 -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5 &> output

    here i saw EGLFS ..... yes.

    Building:
    make -j 5 &> output_make

    Install:
    make install &> output_make_install

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

      Hi and welcome to devnet,

      If I saw things correctly you probably have both XCB and eglfs support and XCB is picked up by default. Try calling your app like this

      @myapp -platform eglfs@

      Hope it helps

      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
      0
      • E Offline
        E Offline
        Erdbeergulasch
        wrote on last edited by
        #3

        hi, thanks for the reply,

        am i right, if you mean that the application (for example one of the qt-examples), i compiled with the eglfs-enabled qmake and make.
        should be started with this the params "-platform eglfs".

        because if i do this, i get the following errors:
        libEGL warning: DRI2: xcb_connect failed
        libEGL warning: DRI2: xcb_connect failed
        Could not initialize egl display

        i tried it on the analogclock-example.

        thanks

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

          It still tries to connect to xcb…

          To ensure it doesn't, rebuild your Qt with -no-xcb when your configure

          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
          0

          • Login

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