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. Problem with XCB and OpenGL

Problem with XCB and OpenGL

Scheduled Pinned Locked Moved Solved General and Desktop
xcb openglqxcbintegration
4 Posts 2 Posters 4.5k Views
  • 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.
  • CalogeroC Offline
    CalogeroC Offline
    Calogero
    wrote on last edited by SGaist
    #1

    My application is exiting with the following error whenever I try to use OpenGL

    QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
    

    My desktop is Ubuntu 12.04 (32 bit). I configured Qt 5.6.0 with the following options

    ./configure -qt-zlib -system-libpng -system-libjpeg -platform linux-g++-32 -fontconfig -qt-xcb -nomake examples -nomake tools

    This is the configure output

       Configure summary
    
    Build type:    linux-g++-32 (i386, CPU features: none detected)
    
    Build options:
      Configuration .......... accessibility accessibility-atspi-bridge audio-backend avx c++11 clock-gettime clock-monotonic compile_examples concurrent dbus enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis opengl openssl pcre png posix_fallocate precompile_header qpa qpa reduce_exports reduce_relocations release rpath shared small-config sse2 sse3 sse4_1 sse4_2 ssse3 system-freetype system-jpeg system-png threadsafe-cloexec xcb xcb-glx xcb-plugin xcb-qt xcb-xlib xinput2 xkbcommon-qt xlib xrender zlib 
      Build parts ............ libs
      Mode ................... release
      Using sanitizer(s)...... none
      Using C++ standard ..... c++11
      Using gold linker....... no
      Using new DTAGS ........ yes
      Using PCH .............. yes
      Using LTCG ............. no
      Target compiler supports:
        SSE2/SSE3/SSSE3 ...... yes/yes/yes
        SSE4.1/SSE4.2 ........ yes/yes
        AVX/AVX2 ............. yes/no
    
    Qt modules and options:
      Qt D-Bus ............... yes (loading dbus-1 at runtime)
      Qt Concurrent .......... yes
      Qt GUI ................. yes
      Qt Widgets ............. yes
      Large File ............. yes
      QML debugging .......... yes
      Use system proxies ..... no
    
    Support enabled for:
      Accessibility .......... yes
      ALSA ................... no
      CUPS ................... no
      Evdev .................. yes
      FontConfig ............. yes
      FreeType ............... yes (system library)
      Glib ................... no
      GStreamer .............. no
      GTK theme .............. no
      HarfBuzz ............... yes (bundled copy)
      Iconv .................. yes
      ICU .................... no
      Image formats: 
        GIF .................. yes (plugin, using bundled copy)
        JPEG ................. yes (plugin, using system library)
        PNG .................. yes (in QtGui, using system library)
      libinput................ no
      Logging backends: 
        journald ............... no
        syslog   ............... no
      mtdev .................. no
      Networking: 
        getaddrinfo .......... yes
        getifaddrs ........... yes
        IPv6 ifname .......... yes
        libproxy.............. no
        OpenSSL .............. yes (loading libraries at run-time)
      NIS .................... yes
      OpenGL / OpenVG: 
        EGL .................. no
        OpenGL ............... desktop
        OpenVG ............... no
      PCRE ................... yes (bundled copy)
      pkg-config ............. yes 
      PulseAudio ............. no
      QPA backends: 
        DirectFB ............. no
        EGLFS ................ no
          EGLFS i.MX6 ........ no
          EGLFS i.MX6 Wayland. no
          EGLFS EGLDevice .... no
          EGLFS GBM .......... no
          EGLFS Mali ......... no
          EGLFS Raspberry Pi . no
          EGLFS X11 .......... no
        LinuxFB .............. yes
        Mir client............ no
        XCB .................. yes (bundled copy)
          EGL on X ........... no
          GLX ................ yes
          MIT-SHM ............ yes
          Xcb-Xlib ........... yes
          Xcursor ............ yes (loaded at runtime)
          Xfixes ............. yes (loaded at runtime)
          Xi ................. no
          Xi2 ................ yes
          Xinerama ........... yes (loaded at runtime)
          Xrandr ............. yes (loaded at runtime)
          Xrender ............ yes
          XKB ................ yes
          XShape ............. yes
          XSync .............. yes
          XVideo ............. yes
      Session management ..... yes
      SQL drivers: 
        DB2 .................. no
        InterBase ............ no
        MySQL ................ no
        OCI .................. no
        ODBC ................. yes (plugin)
        PostgreSQL ........... no
        SQLite 2 ............. no
        SQLite ............... yes (plugin, using bundled copy)
        TDS .................. no
      tslib .................. no
      udev ................... no
      xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
      xkbcommon-evdev......... no
      zlib ................... yes (bundled copy)
    

    I've googled a lot about this issue but I did not find any solution to it.
    Do you have any clues on how to fix this problem?

    Just to add more information, I'm linking Qt library dynamically. I created a directory containing all the necessary libraries (shared objects) and I'm setting the LD_LIBRARY_PATH to it before launching the application. I have a platforms directory at the same level of the executable with all platforms plugins.

    Thanks in advance for your help!

    1 Reply Last reply
    0
    • gfxxG Offline
      gfxxG Offline
      gfxx
      wrote on last edited by gfxx
      #2
        OpenGL / OpenVG: 
          EGL .................. no
          OpenGL ............... desktop
          OpenVG ............... no
        PCRE ................... yes (bundled copy)
      

      your install summary say that EGL is not istalleg ... as show you the error messages

      Search all dipendancy, all library install it on UBUNTU and remake the istallation using online tool for QT5.6

      Regards
      Giorgio

      bkt

      1 Reply Last reply
      0
      • CalogeroC Offline
        CalogeroC Offline
        Calogero
        wrote on last edited by
        #3

        Giorgio thanks for your reply.

        I thought GLX was enough for enabling OpenGL on Desktop.

        XCB .................. yes (bundled copy)
              EGL on X ........... no
              GLX ................ yes
        

        Anyway I tried to use EGL as opposed to GLX and I had the same issue. Here is the output of the configure in that case

        Running configuration tests (phase 1)...
        Done running configuration tests.
        Creating qmake...
        Done.
        Running configuration tests (phase 2)...
        Done running configuration tests.
        
           Configure summary
        
        Build type:    linux-g++-32 (i386, CPU features: none detected)
        
        Build options:
          Configuration .......... accessibility accessibility-atspi-bridge audio-backend avx c++11 clock-gettime clock-monotonic compile_examples concurrent dbus egl eglfs egl_x11 enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis opengl openssl pcre png posix_fallocate precompile_header qpa qpa reduce_exports reduce_relocations release rpath shared small-config sse2 sse3 sse4_1 sse4_2 ssse3 system-freetype system-jpeg system-png threadsafe-cloexec xcb xcb-plugin xcb-qt xcb-xlib xinput2 xkbcommon-qt xlib xrender zlib 
          Build parts ............ libs
          Mode ................... release
          Using sanitizer(s)...... none
          Using C++ standard ..... c++11
          Using gold linker....... no
          Using new DTAGS ........ yes
          Using PCH .............. yes
          Using LTCG ............. no
          Target compiler supports:
            SSE2/SSE3/SSSE3 ...... yes/yes/yes
            SSE4.1/SSE4.2 ........ yes/yes
            AVX/AVX2 ............. yes/no
        
        Qt modules and options:
          Qt D-Bus ............... yes (loading dbus-1 at runtime)
          Qt Concurrent .......... yes
          Qt GUI ................. yes
          Qt Widgets ............. yes
          Large File ............. yes
          QML debugging .......... yes
          Use system proxies ..... no
        
        Support enabled for:
          Accessibility .......... yes
          ALSA ................... no
          CUPS ................... no
          Evdev .................. yes
          FontConfig ............. yes
          FreeType ............... yes (system library)
          Glib ................... no
          GStreamer .............. no
          GTK theme .............. no
          HarfBuzz ............... yes (bundled copy)
          Iconv .................. yes
          ICU .................... no
          Image formats: 
            GIF .................. yes (plugin, using bundled copy)
            JPEG ................. yes (plugin, using system library)
            PNG .................. yes (in QtGui, using system library)
          libinput................ no
          Logging backends: 
            journald ............... no
            syslog   ............... no
          mtdev .................. no
          Networking: 
            getaddrinfo .......... yes
            getifaddrs ........... yes
            IPv6 ifname .......... yes
            libproxy.............. no
            OpenSSL .............. yes (loading libraries at run-time)
          NIS .................... yes
          OpenGL / OpenVG: 
            EGL .................. yes
            OpenGL ............... desktop
            OpenVG ............... no
          PCRE ................... yes (bundled copy)
          pkg-config ............. yes 
          PulseAudio ............. no
          QPA backends: 
            DirectFB ............. no
            EGLFS ................ yes
              EGLFS i.MX6 ........ no
              EGLFS i.MX6 Wayland. no
              EGLFS EGLDevice .... no
              EGLFS GBM .......... no
              EGLFS Mali ......... no
              EGLFS Raspberry Pi . no
              EGLFS X11 .......... yes
            LinuxFB .............. yes
            Mir client............ no
            XCB .................. yes (bundled copy)
              EGL on X ........... yes
              GLX ................ no
              MIT-SHM ............ yes
              Xcb-Xlib ........... yes
              Xcursor ............ yes (loaded at runtime)
              Xfixes ............. yes (loaded at runtime)
              Xi ................. no
              Xi2 ................ yes
              Xinerama ........... yes (loaded at runtime)
              Xrandr ............. yes (loaded at runtime)
              Xrender ............ yes
              XKB ................ yes
              XShape ............. yes
              XSync .............. yes
              XVideo ............. yes
          Session management ..... yes
          SQL drivers: 
            DB2 .................. no
            InterBase ............ no
            MySQL ................ no
            OCI .................. no
            ODBC ................. yes (plugin)
            PostgreSQL ........... no
            SQLite 2 ............. no
            SQLite ............... yes (plugin, using bundled copy)
            TDS .................. no
          tslib .................. no
          udev ................... no
          xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
          xkbcommon-evdev......... no
          zlib ................... yes (bundled copy)
        

        I'm building Qt 5.6 from scratch, I'm not using the online installer.

        1 Reply Last reply
        0
        • CalogeroC Offline
          CalogeroC Offline
          Calogero
          wrote on last edited by
          #4

          I just found that the problem was that the libqxcb-glx-integration plugin was not found. Putting xcbglintegrations plugins folder at the same level of the application fixed the issue.

          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