qt 5. probleme xcb QT_QPA_DEFAULT_PLATFORM



  • I want to compile Qt for beaglebone with XCB plugins
    I activate the parameter

    QT_QPA_DEFAULT_PLATFORM = xcb
    

    but the configure command does not recognize, and also
    the error persists

    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 .................. no
    

    my configuration command :

    ../qt-everywhere-opensource-src-5.6.0/configure -v -opensource -confirm-license -prefix /usr/local/Qt-5.6.0/ -no-largefile -no-accessibility -qt-zlib -no-gif -qt-libpng -qt-libjpeg -no-nis -no-cups -xplatform linux-linaro-gnueabihf-g++ -device linux-beaglebone-g++ -device-option CROSS_COMPILE=/usr/local/linaro/bin/arm-linux-gnueabihf- -nomake examples -no-qml-debug  -no-use-gold-linker -qt-xcb
    

    my error with -qt-xcb (or xcb or any xcb) :

    recipe for target 'xcb' failed
    make: *** [xcb] Error 1
    xcb disabled.

    thx for help


  • Lifetime Qt Champion

    Hi,

    Take a closer look at the log, what exact error do you get with the xcb tests ?



  • @SGaist
    hello SGaist

    
    xcb auto-detection... ()
    /usr/local/linaro/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard -mfloat-abi=hard -O2 -O3 -std=gnu++0x -Wall -W -fPIC  -I/home/logawin/recup_ubuntu/qt-everywhere-opensource-src-5.6.0/qtbase/config.tests/qpa/xcb -I. -I/home/logawin/recup_ubuntu/qt-everywhere-opensource-src-5.6.0/qtbase/mkspecs/devices/linux-beaglebone-g++ -o xcb.o /home/logawin/recup_ubuntu/qt-everywhere-opensource-src-5.6.0/qtbase/config.tests/qpa/xcb/xcb.cpp
    Makefile:412 : la recette pour la cible « xcb.o » a échouée
    xcb disabled.
    

    and the compilation error

    s/qpa/xcb/xcb.cpp:34:21: fatal error: xcb/xcb.h: No such file or directory
     #include <xcb/xcb.h>
    
    

    thx


  • Lifetime Qt Champion

    So you don't have the xcb development package installed on your system.



  • @SGaist

    I installed all xcb packages

    dpkg -l |grep xcb
    ii  libx11-xcb-dev:amd64                       2:1.6.3-1ubuntu2                             amd64        Xlib/XCB interface library (development headers)
    ii  libx11-xcb1:amd64                          2:1.6.3-1ubuntu2                             amd64        Xlib/XCB interface library
    ii  libxcb-composite0:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, composite extension
    ii  libxcb-composite0-dbg:amd64                1.11.1-1ubuntu1                              amd64        X C Binding, composite extension, debugging symbols
    ii  libxcb-composite0-dev:amd64                1.11.1-1ubuntu1                              amd64        X C Binding, composite extension, development files
    ii  libxcb-cursor-dev:amd64                    0.1.1-3ubuntu1                               amd64        utility libraries for X C Binding -- cursor, development files
    ii  libxcb-cursor0:amd64                       0.1.1-3ubuntu1                               amd64        utility libraries for X C Binding -- cursor
    ii  libxcb-damage0:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, damage extension
    ii  libxcb-damage0-dbg:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, damage extension, debugging symbols
    ii  libxcb-damage0-dev:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, damage extension, development files
    ii  libxcb-doc                                 1.11.1-1ubuntu1                              all          X C Binding, development documentation
    ii  libxcb-dpms0:amd64                         1.11.1-1ubuntu1                              amd64        X C Binding, dpms extension
    ii  libxcb-dpms0-dbg:amd64                     1.11.1-1ubuntu1                              amd64        X C Binding, dpms extension, debugging symbols
    ii  libxcb-dpms0-dev:amd64                     1.11.1-1ubuntu1                              amd64        X C Binding, dpms extension, development files
    ii  libxcb-dri2-0:amd64                        1.11.1-1ubuntu1                              amd64        X C Binding, dri2 extension
    ii  libxcb-dri2-0-dbg:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, dri2 extension, debugging symbols
    ii  libxcb-dri2-0-dev:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, dri2 extension, development files
    ii  libxcb-dri3-0:amd64                        1.11.1-1ubuntu1                              amd64        X C Binding, dri3 extension
    ii  libxcb-dri3-0-dbg:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, dri3 extension, debugging symbols
    ii  libxcb-dri3-dev:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, dri3 extension, development files
    ii  libxcb-ewmh-dev:amd64                      0.4.1-1ubuntu1                               amd64        utility libraries for X C Binding -- ewmh, development files
    ii  libxcb-ewmh2:amd64                         0.4.1-1ubuntu1                               amd64        utility libraries for X C Binding -- ewmh
    ii  libxcb-glx0:amd64                          1.11.1-1ubuntu1                              amd64        X C Binding, glx extension
    ii  libxcb-glx0-dbg:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, glx extension, debugging symbols
    ii  libxcb-glx0-dev:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, glx extension, development files
    ii  libxcb-icccm4:amd64                        0.4.1-1ubuntu1                               amd64        utility libraries for X C Binding -- icccm
    ii  libxcb-icccm4-dev:amd64                    0.4.1-1ubuntu1                               amd64        utility libraries for X C Binding -- icccm, development files
    ii  libxcb-image0:amd64                        0.4.0-1build1                                amd64        utility libraries for X C Binding -- image
    ii  libxcb-image0-dev:amd64                    0.4.0-1build1                                amd64        utility libraries for X C Binding -- image, development files
    ii  libxcb-keysyms1:amd64                      0.4.0-1                                      amd64        utility libraries for X C Binding -- keysyms
    ii  libxcb-keysyms1-dev:amd64                  0.4.0-1                                      amd64        utility libraries for X C Binding -- keysyms, development files
    ii  libxcb-present-dev:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, present extension, development files
    ii  libxcb-present0:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, present extension
    ii  libxcb-present0-dbg:amd64                  1.11.1-1ubuntu1                              amd64        X C Binding, present extension, debugging symbols
    ii  libxcb-randr0:amd64                        1.11.1-1ubuntu1                              amd64        X C Binding, randr extension
    ii  libxcb-randr0-dbg:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, randr extension, debugging symbols
    ii  libxcb-randr0-dev:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, randr extension, development files
    ii  libxcb-record0:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, record extension
    ii  libxcb-record0-dbg:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, record extension, debugging symbols
    ii  libxcb-record0-dev:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, record extension, development files
    ii  libxcb-render-util0:amd64                  0.3.9-1                                      amd64        utility libraries for X C Binding -- render-util
    ii  libxcb-render-util0-dev:amd64              0.3.9-1                                      amd64        utility libraries for X C Binding -- render-util
    ii  libxcb-render0:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, render extension
    ii  libxcb-render0-dbg:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, render extension, debugging symbols
    ii  libxcb-render0-dev:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, render extension, development files
    ii  libxcb-res0:amd64                          1.11.1-1ubuntu1                              amd64        X C Binding, res extension
    ii  libxcb-res0-dbg:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, res extension, debugging symbols
    ii  libxcb-res0-dev:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, res extension, development files
    ii  libxcb-screensaver0:amd64                  1.11.1-1ubuntu1                              amd64        X C Binding, screensaver extension
    ii  libxcb-screensaver0-dbg:amd64              1.11.1-1ubuntu1                              amd64        X C Binding, screensaver extension, debugging symbols
    ii  libxcb-screensaver0-dev:amd64              1.11.1-1ubuntu1                              amd64        X C Binding, screensaver extension, development files
    ii  libxcb-shape0:amd64                        1.11.1-1ubuntu1                              amd64        X C Binding, shape extension
    ii  libxcb-shape0-dbg:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, shape extension, debugging symbols
    ii  libxcb-shape0-dev:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, shape extension, development files
    ii  libxcb-shm0:amd64                          1.11.1-1ubuntu1                              amd64        X C Binding, shm extension
    ii  libxcb-shm0-dbg:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, shm extension, debugging symbols
    ii  libxcb-shm0-dev:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, shm extension, development files
    ii  libxcb-sync-dev:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, sync extension, development files
    ii  libxcb-sync1:amd64                         1.11.1-1ubuntu1                              amd64        X C Binding, sync extension
    ii  libxcb-sync1-dbg:amd64                     1.11.1-1ubuntu1                              amd64        X C Binding, sync extension, debugging symbols
    ii  libxcb-util-dev:amd64                      0.4.0-0ubuntu3                               amd64        utility libraries for X C Binding -- atom, aux and event
    ii  libxcb-util0-dev:amd64                     0.4.0-0ubuntu3                               amd64        dummy transitional package for utility libraries for X C Binding -- atom, aux and event
    ii  libxcb-util1:amd64                         0.4.0-0ubuntu3                               amd64        utility libraries for X C Binding -- atom, aux and event
    ii  libxcb-xevie0:amd64                        1.11.1-1ubuntu1                              amd64        X C Binding, xevie extension
    ii  libxcb-xevie0-dbg:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, xevie extension, debugging symbols
    ii  libxcb-xevie0-dev:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, xevie extension, development files
    ii  libxcb-xf86dri0:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, xf86dri extension
    ii  libxcb-xf86dri0-dbg:amd64                  1.11.1-1ubuntu1                              amd64        X C Binding, xf86dri extension, debugging symbols
    ii  libxcb-xf86dri0-dev:amd64                  1.11.1-1ubuntu1                              amd64        X C Binding, xf86dri extension, development files
    ii  libxcb-xfixes0:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, xfixes extension
    ii  libxcb-xfixes0-dbg:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, xfixes extension, debugging symbols
    ii  libxcb-xfixes0-dev:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, xfixes extension, development files
    ii  libxcb-xinerama0:amd64                     1.11.1-1ubuntu1                              amd64        X C Binding, xinerama extension
    ii  libxcb-xinerama0-dbg:amd64                 1.11.1-1ubuntu1                              amd64        X C Binding, xinerama extension, debugging symbols
    ii  libxcb-xinerama0-dev:amd64                 1.11.1-1ubuntu1                              amd64        X C Binding, xinerama extension, development files
    ii  libxcb-xkb-dev:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, XKEYBOARD extension, development files
    ii  libxcb-xkb1:amd64                          1.11.1-1ubuntu1                              amd64        X C Binding, XKEYBOARD extension
    ii  libxcb-xkb1-dbg:amd64                      1.11.1-1ubuntu1                              amd64        X C Binding, XKEYBOARD extension, debugging symbols
    ii  libxcb-xprint0:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, xprint extension
    ii  libxcb-xprint0-dbg:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, xprint extension, debugging symbols
    ii  libxcb-xprint0-dev:amd64                   1.11.1-1ubuntu1                              amd64        X C Binding, xprint extension, development files
    ii  libxcb-xtest0:amd64                        1.11.1-1ubuntu1                              amd64        X C Binding, xtest extension
    ii  libxcb-xtest0-dbg:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, xtest extension, debugging symbols
    ii  libxcb-xtest0-dev:amd64                    1.11.1-1ubuntu1                              amd64        X C Binding, xtest extension, development files
    ii  libxcb-xv0:amd64                           1.11.1-1ubuntu1                              amd64        X C Binding, xv extension
    ii  libxcb-xv0-dbg:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, xv extension, debugging symbols
    ii  libxcb-xv0-dev:amd64                       1.11.1-1ubuntu1                              amd64        X C Binding, xv extension, development files
    ii  libxcb-xvmc0:amd64                         1.11.1-1ubuntu1                              amd64        X C Binding, xvmc extension
    ii  libxcb-xvmc0-dbg:amd64                     1.11.1-1ubuntu1                              amd64        X C Binding, xvmc extension, debugging symbols
    ii  libxcb-xvmc0-dev:amd64                     1.11.1-1ubuntu1                              amd64        X C Binding, xvmc extension, development files
    ii  libxcb1:amd64                              1.11.1-1ubuntu1                              amd64        X C Binding
    ii  libxcb1-dbg:amd64                          1.11.1-1ubuntu1                              amd64        X C Binding, debugging symbols
    ii  libxcb1-dev:amd64                          1.11.1-1ubuntu1                              amd64        X C Binding, development files
    ii  xcb                                        2.4-4.3                                      amd64        Pigeon holes for your cut and paste selections
    ii  xcb-proto                                  
    

    when i use ,
    -qpa xcb

    no problem, but xcb still not active
    XCB .................. no


  • Lifetime Qt Champion

    That's for your desktop machine, you need the dev packages for your target.



  • @SGaist

    How do I do ?
    apt-get source ?


  • Moderators

    @MANU_TN You should have a sysroot for your target device. This sysroot has to contain everything you need to cross compile software for the target device. What is your target device?



  • @jsulm

    i compile for beaglebone


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.