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-xcb failure
Forum Updated to NodeBB v4.3 + New Features

-qt-xcb failure

Scheduled Pinned Locked Moved Unsolved General and Desktop
37 Posts 3 Posters 8.8k 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.
  • T The most recent future

    .configure :

    .......
    -qt-xcb


    XLib auto-detection... ()
    /usr/local/arm/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o xlib.o xlib.cpp
    xlib.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory
    #include <X11/Xlib.h>
    ^
    compilation terminated.
    make: *** [xlib.o] Error 1
    XLib disabled.
    xcb auto-detection... ()
    /usr/local/arm/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o xcb.o xcb.cpp
    xcb.cpp:42:21: fatal error: xcb/xcb.h: No such file or directory
    #include <xcb/xcb.h>
    ^
    compilation terminated.
    make: *** [xcb.o] Error 1
    xcb disabled.
    The test for linking against libxcb failed!
    You might need to install dependency packages for libxcb.
    See src/plugins/platforms/xcb/README.

    who can help me ?

    jsulmJ Online
    jsulmJ Online
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @The-most-recent-future You need to install X11 dev packages for your target

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    T 2 Replies Last reply
    0
    • T Offline
      T Offline
      The most recent future
      wrote on last edited by
      #3

      x11 ? thanks, I try it

      1 Reply Last reply
      0
      • jsulmJ jsulm

        @The-most-recent-future You need to install X11 dev packages for your target

        T Offline
        T Offline
        The most recent future
        wrote on last edited by
        #4

        @jsulm
        sudo apt-get install libX11-dev libXext-dev libXtst-dev libXrender-dev libxmu-dev libxmuu-dev

        unsolved !, unsolved .
        not worked !

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @The-most-recent-future You need to install X11 dev packages for your target

          T Offline
          T Offline
          The most recent future
          wrote on last edited by
          #5

          @jsulm
          how install x11 in ubuntu 14 ??

          jsulmJ 1 Reply Last reply
          0
          • T The most recent future

            @jsulm
            how install x11 in ubuntu 14 ??

            jsulmJ Online
            jsulmJ Online
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @The-most-recent-future You need those header files in the sysroot for your target device, not your host PC.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            T 1 Reply Last reply
            0
            • jsulmJ jsulm

              @The-most-recent-future You need those header files in the sysroot for your target device, not your host PC.

              T Offline
              T Offline
              The most recent future
              wrote on last edited by
              #7

              @jsulm
              thanks , but I do not know those,
              could you help find some URL LINK ?
              谢谢!

              jsulmJ 1 Reply Last reply
              0
              • T The most recent future

                @jsulm
                thanks , but I do not know those,
                could you help find some URL LINK ?
                谢谢!

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @The-most-recent-future How do you cross compile? Do you have a sysroot?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                T 2 Replies Last reply
                0
                • jsulmJ jsulm

                  @The-most-recent-future How do you cross compile? Do you have a sysroot?

                  T Offline
                  T Offline
                  The most recent future
                  wrote on last edited by
                  #9

                  @jsulm
                  not sysroot, I do not known what is sysroot, wuwuwuwu.......... crying (),
                  my cross compile :
                  /usr/local/arm/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/xxxxxxxx-xx-x-xx

                  jsulmJ 1 Reply Last reply
                  0
                  • T The most recent future

                    @jsulm
                    not sysroot, I do not known what is sysroot, wuwuwuwu.......... crying (),
                    my cross compile :
                    /usr/local/arm/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/xxxxxxxx-xx-x-xx

                    jsulmJ Online
                    jsulmJ Online
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @The-most-recent-future You need a sysroot if you want to cross compile.
                    A sysroot is basically the file system of your target device. It is needed to find the header files and libraries for the target.
                    You should read https://wiki.qt.io/RaspberryPi_Beginners_Guide

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    T 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @The-most-recent-future You need a sysroot if you want to cross compile.
                      A sysroot is basically the file system of your target device. It is needed to find the header files and libraries for the target.
                      You should read https://wiki.qt.io/RaspberryPi_Beginners_Guide

                      T Offline
                      T Offline
                      The most recent future
                      wrote on last edited by
                      #11

                      @jsulm
                      thanks , a very nice topic !
                      but ,

                      Look complicated
                      now,

                      I just want to install X11, so that the errors of -qt-xcb disappear

                      1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @The-most-recent-future How do you cross compile? Do you have a sysroot?

                        T Offline
                        T Offline
                        The most recent future
                        wrote on last edited by
                        #12

                        @jsulm
                        Requires libxcb >= 1.5.

                        PACKAGE DEPENDENCIES

                        Required packages:
                        libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm1 libxcb-icccm1-dev libxcb-sync0 libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev

                        On Ubuntu 11.10 icccm1 is replaced by icccm4 and xcb-render-util is not available:
                        libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev
                        The packages for xcb-render-util can be installed manually from http://packages.ubuntu.com/natty/libxcb-render-util0 and http://packages.ubuntu.com/natty/libxcb-render-util0-dev

                        On Ubuntu 12.04 icccm1 is replaced by icccm4 and xcb-render-util can be installed automatically:
                        libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-dev

                        I have all these libraries installed, why also wrong. ???

                        jsulmJ 2 Replies Last reply
                        0
                        • T The most recent future

                          @jsulm
                          Requires libxcb >= 1.5.

                          PACKAGE DEPENDENCIES

                          Required packages:
                          libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm1 libxcb-icccm1-dev libxcb-sync0 libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev

                          On Ubuntu 11.10 icccm1 is replaced by icccm4 and xcb-render-util is not available:
                          libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev
                          The packages for xcb-render-util can be installed manually from http://packages.ubuntu.com/natty/libxcb-render-util0 and http://packages.ubuntu.com/natty/libxcb-render-util0-dev

                          On Ubuntu 12.04 icccm1 is replaced by icccm4 and xcb-render-util can be installed automatically:
                          libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-dev

                          I have all these libraries installed, why also wrong. ???

                          jsulmJ Online
                          jsulmJ Online
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          @The-most-recent-future AGAIN: you are cross compiling! That means: you need that X11 stuff for your TARGET DEVICE not your development PC! It doesn't matter what you installed on your PC. What you install on your PC cannot be used on your target device (logical isn't it?). That's why I said you should read that link. You need to learn how cross compilation works if you want to cross compile, else you will not succeed.
                          One of the basic techniques for cross compilation is the sysroot, which contains all needed header files and libraries for the target device.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          2
                          • T The most recent future

                            @jsulm
                            Requires libxcb >= 1.5.

                            PACKAGE DEPENDENCIES

                            Required packages:
                            libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm1 libxcb-icccm1-dev libxcb-sync0 libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev

                            On Ubuntu 11.10 icccm1 is replaced by icccm4 and xcb-render-util is not available:
                            libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev
                            The packages for xcb-render-util can be installed manually from http://packages.ubuntu.com/natty/libxcb-render-util0 and http://packages.ubuntu.com/natty/libxcb-render-util0-dev

                            On Ubuntu 12.04 icccm1 is replaced by icccm4 and xcb-render-util can be installed automatically:
                            libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-dev

                            I have all these libraries installed, why also wrong. ???

                            jsulmJ Online
                            jsulmJ Online
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            @The-most-recent-future What is your target device?

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            T 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @The-most-recent-future What is your target device?

                              T Offline
                              T Offline
                              The most recent future
                              wrote on last edited by
                              #15

                              @jsulm

                              , touchscreen . a touchscreen , arm board. samsung soc.

                              jsulmJ 1 Reply Last reply
                              0
                              • T The most recent future

                                @jsulm

                                , touchscreen . a touchscreen , arm board. samsung soc.

                                jsulmJ Online
                                jsulmJ Online
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                @The-most-recent-future You need to get a sysroot for it. How, depends on the provider of your device.

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                                  Hi,

                                  As alternative, you can use Qt's bundled xcb. Pass the -qt-xcb parameter to your configure call.

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

                                  T 2 Replies Last reply
                                  0
                                  • jsulmJ jsulm

                                    @The-most-recent-future You need to get a sysroot for it. How, depends on the provider of your device.

                                    T Offline
                                    T Offline
                                    The most recent future
                                    wrote on last edited by
                                    #18

                                    @jsulm
                                    thanks !

                                    QT document is say install xcb, xcb is the same for x 11 ?

                                    1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      Hi,

                                      As alternative, you can use Qt's bundled xcb. Pass the -qt-xcb parameter to your configure call.

                                      T Offline
                                      T Offline
                                      The most recent future
                                      wrote on last edited by
                                      #19

                                      @SGaist

                                      owowwo ! ~~how to do ? how to do?~~

                                      1 Reply Last reply
                                      0
                                      • SGaistS SGaist

                                        Hi,

                                        As alternative, you can use Qt's bundled xcb. Pass the -qt-xcb parameter to your configure call.

                                        T Offline
                                        T Offline
                                        The most recent future
                                        wrote on last edited by
                                        #20

                                        @SGaist
                                        how to do ? please help me , thanks

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

                                          Did you pass the option like I suggested ?

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

                                          T 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