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. When I configure Qt 5.6, it shows that xcb failed! Why?
Forum Updated to NodeBB v4.3 + New Features

When I configure Qt 5.6, it shows that xcb failed! Why?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
31 Posts 3 Posters 15.9k Views 2 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.
  • small_birdS small_bird

    @SGaist Someone told me : "You don't have X11 development packages installed for the arm target, then. Stuff in /usr/include/X11 is for the host, not for the target." However, I wonder how to install the packages for the arm target !

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

    @small_bird In another thread I told you that you need a sysroot to cross compile. The content of /usr on your host PC is completely unrelated to your target device. What is your device? What Linux distribution is running on it (I assume you're using Linux)? You really should read about cross-compiling.

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

    small_birdS 1 Reply Last reply
    0
    • jsulmJ jsulm

      @small_bird In another thread I told you that you need a sysroot to cross compile. The content of /usr on your host PC is completely unrelated to your target device. What is your device? What Linux distribution is running on it (I assume you're using Linux)? You really should read about cross-compiling.

      small_birdS Offline
      small_birdS Offline
      small_bird
      wrote on last edited by small_bird
      #22

      @jsulm My device is arm-cortexA8. The linux distribution is based on linux3.2, not a offical distribution. I know what you mean, then where can I get the headers and libraries for the device.

      jsulmJ 1 Reply Last reply
      0
      • small_birdS small_bird

        @jsulm My device is arm-cortexA8. The linux distribution is based on linux3.2, not a offical distribution. I know what you mean, then where can I get the headers and libraries for the device.

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

        @small_bird So, on your device Ubuntu is running, right?
        In that case start it log on on it (remotely over SSH or directly if you can connect a monitor and keyboard) and use apt-get to install all needed packages.

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

        small_birdS 1 Reply Last reply
        0
        • jsulmJ jsulm

          @small_bird So, on your device Ubuntu is running, right?
          In that case start it log on on it (remotely over SSH or directly if you can connect a monitor and keyboard) and use apt-get to install all needed packages.

          small_birdS Offline
          small_birdS Offline
          small_bird
          wrote on last edited by
          #24

          @jsulm I am sorry that I have corrected the answer. According to the offical description, the distribution installed on PC is the same as that on the arm board. So after I use cross-compiler to compile the qt5.6 source code, the libraries it generates should be avaliable for the arm board. Why should I install the packages on the board ?

          jsulmJ 1 Reply Last reply
          0
          • small_birdS small_bird

            @jsulm I am sorry that I have corrected the answer. According to the offical description, the distribution installed on PC is the same as that on the arm board. So after I use cross-compiler to compile the qt5.6 source code, the libraries it generates should be avaliable for the arm board. Why should I install the packages on the board ?

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

            @small_bird Could you please read about cross-compiling?
            I already provided a link in one of your threads.
            What you need is a sysroot containing libraries AND include files for your target architecture.
            Lets say you cross-compile your app which depends on a library. In your code you include header files needed to use that library. Now the question is where are the library and its header files? You cannot use what is installed on your host PC as it is for a different architecture (your PC is most probably x86_64, right?). So, you need a sysroot containing that lib and header files. One way to get that sysroot is to mount the file system from your target device in your PC. If you're using Raspberry Pi (you still didn't say what your device actually is, arm-cortexA8 is not a device it is a CPU architecture) you can just put the SD card into your PC and mount it - then you have a sysroot.

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

            small_birdS 3 Replies Last reply
            0
            • jsulmJ jsulm

              @small_bird Could you please read about cross-compiling?
              I already provided a link in one of your threads.
              What you need is a sysroot containing libraries AND include files for your target architecture.
              Lets say you cross-compile your app which depends on a library. In your code you include header files needed to use that library. Now the question is where are the library and its header files? You cannot use what is installed on your host PC as it is for a different architecture (your PC is most probably x86_64, right?). So, you need a sysroot containing that lib and header files. One way to get that sysroot is to mount the file system from your target device in your PC. If you're using Raspberry Pi (you still didn't say what your device actually is, arm-cortexA8 is not a device it is a CPU architecture) you can just put the SD card into your PC and mount it - then you have a sysroot.

              small_birdS Offline
              small_birdS Offline
              small_bird
              wrote on last edited by
              #26

              @jsulm Thanks a lot for your patient reply ! My device is OK335XD, you might not hear that.

              1 Reply Last reply
              0
              • jsulmJ jsulm

                @small_bird Could you please read about cross-compiling?
                I already provided a link in one of your threads.
                What you need is a sysroot containing libraries AND include files for your target architecture.
                Lets say you cross-compile your app which depends on a library. In your code you include header files needed to use that library. Now the question is where are the library and its header files? You cannot use what is installed on your host PC as it is for a different architecture (your PC is most probably x86_64, right?). So, you need a sysroot containing that lib and header files. One way to get that sysroot is to mount the file system from your target device in your PC. If you're using Raspberry Pi (you still didn't say what your device actually is, arm-cortexA8 is not a device it is a CPU architecture) you can just put the SD card into your PC and mount it - then you have a sysroot.

                small_birdS Offline
                small_birdS Offline
                small_bird
                wrote on last edited by
                #27

                @jsulm Now I will follow your advice and have a try. Thanks once more !

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @small_bird Could you please read about cross-compiling?
                  I already provided a link in one of your threads.
                  What you need is a sysroot containing libraries AND include files for your target architecture.
                  Lets say you cross-compile your app which depends on a library. In your code you include header files needed to use that library. Now the question is where are the library and its header files? You cannot use what is installed on your host PC as it is for a different architecture (your PC is most probably x86_64, right?). So, you need a sysroot containing that lib and header files. One way to get that sysroot is to mount the file system from your target device in your PC. If you're using Raspberry Pi (you still didn't say what your device actually is, arm-cortexA8 is not a device it is a CPU architecture) you can just put the SD card into your PC and mount it - then you have a sysroot.

                  small_birdS Offline
                  small_birdS Offline
                  small_bird
                  wrote on last edited by
                  #28

                  @jsulm The linux installed on my board does not have apt-get command. It is the edition reduced.

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

                    Can you tell what exactly is running on that board ? It could be a yocto based image or something similar which could potentially simplify the situation.

                    Also, it seems that we are currently answering in parallel on this thread for exactly the same problem. So I propose to stop the other one and continue here.

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

                    small_birdS 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Can you tell what exactly is running on that board ? It could be a yocto based image or something similar which could potentially simplify the situation.

                      Also, it seems that we are currently answering in parallel on this thread for exactly the same problem. So I propose to stop the other one and continue here.

                      small_birdS Offline
                      small_birdS Offline
                      small_bird
                      wrote on last edited by
                      #30

                      @SGaist It is the linux edition designed by the FORLINX company based on linux3.2 core, not the distribution like ubuntu, etc.

                      1 Reply Last reply
                      0
                      • small_birdS Offline
                        small_birdS Offline
                        small_bird
                        wrote on last edited by
                        #31

                        Ok! I've solved the problem. My cross-compiler edition is wrong. Thank all the people above !

                        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