Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. On arm linux, Qml/Qwidget with xcb cannot work
Forum Updated to NodeBB v4.3 + New Features

On arm linux, Qml/Qwidget with xcb cannot work

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 1.9k 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.
  • joggerJ Offline
    joggerJ Offline
    jogger
    wrote on last edited by
    #1

    Dear all,

    I compiled Qt5.5.1 open source for the platform of arm with embeded linux; and the qml demo works well when the QT_QPA_PLATFORM=eglfs; the qwidget demo works well when the QT_QPA_PLATFORM=linuxfb.
    However, once I change the value of QT_QPA_PLATFORM to 'xcb', qml and qwidget demo cannot work and failed with these errors:

    QXcbConnection: XCB error: 149 (Unknown), sequence: 165, resource id: 69, major code: 144 (Unknown), minor code: 20

    QXcbConnection: XCB error: 16 (BadLength), sequence: 187, resource id: 226, major code: 1 (CreateWindow), minor code: 0
    QXcbConnection: XCB error: 16 (BadLength), sequence: 191, resource id: 2097155, major code: 1 (CreateWindow), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 192, resource id: 2097156, major code: 2 (ChangeWindowAttributes), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 193, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 194, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 195, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 196, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 197, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 16 (BadLength), sequence: 198, resource id: 2097156, major code: 1 (CreateWindow), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 199, resource id: 2097157, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 200, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 203, resource id: 2097156, major code: 2 (ChangeWindowAttributes), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 204, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 205, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 206, resource id: 2097156, major code: 20 (GetProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 210, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 211, resource id: 2097156, major code: 19 (DeleteProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 216, resource id: 2097156, major code: 19 (DeleteProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 217, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 218, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 225, resource id: 2097156, major code: 2 (ChangeWindowAttributes), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 226, resource id: 2097156, major code: 2 (ChangeWindowAttributes), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 227, resource id: 2097156, major code: 20 (GetProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 228, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 229, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 230, resource id: 2097156, major code: 20 (GetProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 231, resource id: 2097156, major code: 18 (ChangeProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 232, resource id: 2097156, major code: 19 (DeleteProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 233, resource id: 2097156, major code: 8 (MapWindow), minor code: 0

    Could you help me?
    Thank you.

    1 Reply Last reply
    0
    • joggerJ Offline
      joggerJ Offline
      jogger
      wrote on last edited by
      #2

      the Qt configure result:

      Build options:
      Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend clock-gettime clock-monotonic compile_examples concurrent dbus egl egl_x11 eglfs enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gstreamer-0.10 gtk2 gtkstyle harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis opengl opengles2 openssl png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config system-freetype system-png system-zlib xcb xcb-glx xcb-plugin xcb-render xcb-sm xcb-xlib xinput2 xkbcommon-qt xlib xrender
      Build parts ............ libs tools
      Mode ................... release
      Using sanitizer(s)...... none
      Using C++11 ............ no
      Using gold linker....... no
      Using new DTAGS ........ yes
      Using PCH .............. yes
      Target compiler supports:
      Neon ................. 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 ................... yes
      CUPS ................... no
      Evdev .................. yes
      FontConfig ............. yes
      FreeType ............... yes (system library)
      Glib ................... yes
      GStreamer .............. yes (0.10)
      GTK theme .............. yes
      HarfBuzz ............... yes (bundled copy)
      Iconv .................. yes
      ICU .................... no
      Image formats:
      GIF .................. yes (plugin, using bundled copy)
      JPEG ................. yes (plugin, using bundled copy)
      PNG .................. yes (in QtGui, using system library)
      journald ............... no
      libinput................ 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 ............... yes (OpenGL ES 2.0+)
      OpenVG ............... no
      PCRE ................... system
      pkg-config ............. yes
      PulseAudio ............. no
      QPA backends:
      DirectFB ............. no
      EGLFS ................ yes
      EGLFS i.MX6....... . no
      EGLFS KMS .......... no
      EGLFS Mali ......... no
      EGLFS Raspberry Pi . no
      EGLFS X11 .......... yes
      LinuxFB .............. yes
      XCB .................. yes (system library)
      EGL on X ........... yes
      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 ................. no
      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 (system library)

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

        Hi and welcome to devnet,

        Are you using the same version of the XCB libraries when building Qt and running your application ?

        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