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. X11/Xlib.h: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

X11/Xlib.h: No such file or directory

Scheduled Pinned Locked Moved Unsolved General and Desktop
34 Posts 3 Posters 26.2k 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.
  • SGaistS SGaist

    You didn't provide the libraries.

    When cross-compiling, the compiler and linkers need to be able to access both the headers and corresponding libraries for the device or at least the architecture your are building for. These are usually provided in the sysroot of your device along with specific stuff to access e.g. the GPU so that you are building against the same set of libraries you'll be using for your device.

    Since you don't want to use the sysroot of your device, then you have to add everything by hand for your cross-toolchain to find.

    M Offline
    M Offline
    marvic_39
    wrote on last edited by marvic_39
    #16

    @SGaist

    I understood about that, but

    For beagalbone ( Without sysroot ), build created and linked all libraries automaticall, i have not added any headers or libraries manully. This toolchain(Angstrom) having all the headers and correct paths.

    Same thing should go with Odroid?
    I am using this tool chain gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux to build Qt on Odroid. And this toolchains does not have few headers related xcb and others. Manually i added some. Libraries not located after searching.

    Any specific tool chains to build for Odroid XU4 .

    If build is without xcb, what all the features will be missing?

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

      Because Angstrom is not just a toolchain, it's a distribution. gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux is only a toolchain.

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

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Because Angstrom is not just a toolchain, it's a distribution. gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux is only a toolchain.

        M Offline
        M Offline
        marvic_39
        wrote on last edited by
        #18

        @SGaist

        I could not find xlib libraries in the system, even after installing all the dependencies.

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

          How did you install the dependencies ?

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

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            How did you install the dependencies ?

            M Offline
            M Offline
            marvic_39
            wrote on last edited by
            #20

            @SGaist

            sudo apt-get install libx11-dev libavahi-gobject-dev libSM-dev libfontconfig-dev
            libXext-dev libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev
            libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev

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

              These are for your host system not for your target.

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

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                These are for your host system not for your target.

                M Offline
                M Offline
                marvic_39
                wrote on last edited by
                #22

                @SGaist

                Well, during building (configure) Qt on host this error is raised.
                How target comes into picture?

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

                  Since you want to cross-compile Qt with X11 support you need to provide your cross-toolchain with both header and libraries for the architecture you are cross-compiling to.

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

                  M 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Since you want to cross-compile Qt with X11 support you need to provide your cross-toolchain with both header and libraries for the architecture you are cross-compiling to.

                    M Offline
                    M Offline
                    marvic_39
                    wrote on last edited by
                    #24

                    @SGaist

                    Ok, Where from i get libraries.

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

                      2 solutions are possible:

                      1. Cross-compile each dependency needed
                      2. Get the packages from the distribution of your board, extract them somewhere and add the paths to your configure line.

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

                      M 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        2 solutions are possible:

                        1. Cross-compile each dependency needed
                        2. Get the packages from the distribution of your board, extract them somewhere and add the paths to your configure line.
                        M Offline
                        M Offline
                        marvic_39
                        wrote on last edited by
                        #26

                        @SGaist

                        OK,

                        Regarding first option,
                        Headers and their linking headers are many, it's becoming difficult to get exact files and even difficult to compile.

                        Regarding second option.
                        I could not find the distribution for Odroid, If you can provide me some links to download it.

                        Thank you.

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

                          What linux flavor are you running on your Odroid ?

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

                          M 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            What linux flavor are you running on your Odroid ?

                            M Offline
                            M Offline
                            marvic_39
                            wrote on last edited by
                            #28

                            @SGaist

                            ubuntu-15.04-mate-odroid-xu3-20150710

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

                              So there you have it: it's an Ubuntu

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

                              M 1 Reply Last reply
                              0
                              • SGaistS SGaist

                                So there you have it: it's an Ubuntu

                                M Offline
                                M Offline
                                marvic_39
                                wrote on last edited by
                                #30

                                @SGaist

                                I checked this also gcc-4.7-linaro-rpi-gnueabihf.tbz still errors.
                                Can you provide a link.

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

                                  Again, this is just a toolchain.

                                  There's no one link. Since you don't want to use the sysroot option, either go to packages.ubuntu.com and download there the dependencies you need or use your device, install all dependencies there, then copy them to your host computer.

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

                                  M 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    Again, this is just a toolchain.

                                    There's no one link. Since you don't want to use the sysroot option, either go to packages.ubuntu.com and download there the dependencies you need or use your device, install all dependencies there, then copy them to your host computer.

                                    M Offline
                                    M Offline
                                    marvic_39
                                    wrote on last edited by
                                    #32

                                    @SGaist

                                    Yes, i gone through this ubuntu packages site, each header is dependends on other and its chain of it. Difficult to compile it

                                    That is the reason, i have asked you. is there any distribution (like angstrom) for Odroid?

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      marvic_39
                                      wrote on last edited by
                                      #33

                                      Already installed all the xcb dependcies.

                                      sudo apt-get install libx11-dev libavahi-gobject-dev libSM-dev libfontconfig-dev
                                      libXext-dev libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev
                                      libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev
                                      
                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #34

                                        You installed them on you host computer. Do it on the target

                                        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