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. Cross compile Qt with -xcb failed
QtWS25 Last Chance

Cross compile Qt with -xcb failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 488 Views
  • 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.
  • Q Offline
    Q Offline
    quan-wei-jun
    wrote on last edited by
    #1

    Note: Also available for Linux: linux-clang linux-icc

    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

    Note: The following modules are not being compiled in this configuration:
    3dcore
    3drender
    webenginecore
    webengine
    webenginewidgets
    pdf
    pdfwidgets

    WARNING: Cross compiling without sysroot. Disabling pkg-config

    WARNING: A pkg-config support is required to build QtWebEngine.

    WARNING: A pkg-config support is required to build QtPdf.

    WARNING: QtWebEngine will not be built.

    WARNING: QtPdf will not be built.

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into '/usr/local/Qt-5.15.2-arm'.

    jsulmJ 1 Reply Last reply
    0
    • Q quan-wei-jun

      Note: Also available for Linux: linux-clang linux-icc

      Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

      Note: The following modules are not being compiled in this configuration:
      3dcore
      3drender
      webenginecore
      webengine
      webenginewidgets
      pdf
      pdfwidgets

      WARNING: Cross compiling without sysroot. Disabling pkg-config

      WARNING: A pkg-config support is required to build QtWebEngine.

      WARNING: A pkg-config support is required to build QtPdf.

      WARNING: QtWebEngine will not be built.

      WARNING: QtPdf will not be built.

      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/usr/local/Qt-5.15.2-arm'.

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

      @quan-wei-jun Please provide proper description of your problem and build log so that others can see what actually failed!
      I don't see anything "failing" in what you posed...

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

      Q 1 Reply Last reply
      0
      • jsulmJ jsulm

        @quan-wei-jun Please provide proper description of your problem and build log so that others can see what actually failed!
        I don't see anything "failing" in what you posed...

        Q Offline
        Q Offline
        quan-wei-jun
        wrote on last edited by
        #3

        @jsulm My QT source code (5.15.2) is configured as follows: ./configure -prefix /usr/local/Qt-5.15.2-arm -release -opensource -nomake examples -nomake tests -no-opengl -skip qtlocation -skip qtconnectivity -xplatform linux-aarch64-gnu-g++ -recheck-all.

        The cross-compiler I'm using is gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu, and I have modified qtbase/mkspecs/linux-aarch64-gnu-g++/qmake.conf to set the compiler path to the absolute path of the cross-compiler.

        I require the following modules:

        webenginecore
        webengine
        webenginewidgets
        QtWebEngine
        QtPd

        jsulmJ 1 Reply Last reply
        0
        • Q quan-wei-jun

          @jsulm My QT source code (5.15.2) is configured as follows: ./configure -prefix /usr/local/Qt-5.15.2-arm -release -opensource -nomake examples -nomake tests -no-opengl -skip qtlocation -skip qtconnectivity -xplatform linux-aarch64-gnu-g++ -recheck-all.

          The cross-compiler I'm using is gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu, and I have modified qtbase/mkspecs/linux-aarch64-gnu-g++/qmake.conf to set the compiler path to the absolute path of the cross-compiler.

          I require the following modules:

          webenginecore
          webengine
          webenginewidgets
          QtWebEngine
          QtPd

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @quan-wei-jun If those modules were disabled then check the config.log file (in your build folder) to see why...
          For some of the modules you can already see why they are disabled from the warnings.
          It also is strange that you're cross compiling without a sysroot.

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

          Q 1 Reply Last reply
          0
          • jsulmJ jsulm

            @quan-wei-jun If those modules were disabled then check the config.log file (in your build folder) to see why...
            For some of the modules you can already see why they are disabled from the warnings.
            It also is strange that you're cross compiling without a sysroot.

            Q Offline
            Q Offline
            quan-wei-jun
            wrote on last edited by
            #5

            @jsulm said in Cross compile Qt with -xcb failed:

            It also is strange that you're cross compiling without a sysroot.
            What does this mean?

            jsulmJ 1 Reply Last reply
            0
            • Q quan-wei-jun

              @jsulm said in Cross compile Qt with -xcb failed:

              It also is strange that you're cross compiling without a sysroot.
              What does this mean?

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

              @quan-wei-jun Usually you do cross compilation using a sysroot.
              Take a look at https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

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

              Q 1 Reply Last reply
              0
              • jsulmJ jsulm

                @quan-wei-jun Usually you do cross compilation using a sysroot.
                Take a look at https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

                Q Offline
                Q Offline
                quan-wei-jun
                wrote on last edited by
                #7

                @jsulm I have encountered another error: checking for machine tuple Yes

                Cannot compile a minimum program The toolchain or QMakeSpec is broken

                Config. log: command line: - prefix/usr/local/Qt-5.15.2-arm - release - open source - make examples - make tests - no opengl - skip qtlocation - xplatform Linux arch64 gnu g++- check all

                Executing config test machineTuple

                +/home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/arch64 none elf g++- dumpmachine

                Aarch64 none elf

                Test config.qtbase.tests.machineTuple succeeded

                Executing config test verifyspec

                +Cd/home/work/Qt_ Source/qt everywhere src-5.15.2/config.test/verifyspec&&/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/bin/qmake "CONFIG -=qt debug_and-release app_bundle lib_bundle" "CONFIG+=shared warn off console single arch" - early "CONFIG+=cross_compile"/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/config.tests/verifyspec

                +Cd/home/work/Qt_ Source/qt everywhere src-5.15.2/config.test/verifyspec&&MAKEFLAGS=/usr/bin/make clean&&MAKEFLAGS=/usr/bin/make

                Rm - f verifyspec. o

                Rm - f *~core *. core

                /home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/arch64 none elf g++- c pipe O2 std=gnu++11 w fPIC - I/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/config.test/verifyspec I- I/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/mkspecs/Linux arch64 gnu g++- o verifyspec. o/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/config.test/verifyspec/verifyspec.cpp

                /home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/arch64 none elf g++- Wl, - O1- o verifyspec verifyspec. o

                /home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin// Lib/gcc/arch64 none elf/10.31/../../../../../../arch64 none elf/bin/ld:/lib/arch64 Linux gnu/libc. so. 6: version ` GLIBC_ 2.27 'not found (required by/home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/../lib/gcc/arch64 none elf/10.31/../../../../../arch64 none elf/bin/ld)

                Collect2: error: ld returned 1 exit status

                Makefile: 68: recipe for target 'verifyspec' failed

                Make: * * * [verifyspec] Error 1

                Can you help me? Thank you very much

                JoeCFDJ 1 Reply Last reply
                0
                • Q quan-wei-jun

                  @jsulm I have encountered another error: checking for machine tuple Yes

                  Cannot compile a minimum program The toolchain or QMakeSpec is broken

                  Config. log: command line: - prefix/usr/local/Qt-5.15.2-arm - release - open source - make examples - make tests - no opengl - skip qtlocation - xplatform Linux arch64 gnu g++- check all

                  Executing config test machineTuple

                  +/home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/arch64 none elf g++- dumpmachine

                  Aarch64 none elf

                  Test config.qtbase.tests.machineTuple succeeded

                  Executing config test verifyspec

                  +Cd/home/work/Qt_ Source/qt everywhere src-5.15.2/config.test/verifyspec&&/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/bin/qmake "CONFIG -=qt debug_and-release app_bundle lib_bundle" "CONFIG+=shared warn off console single arch" - early "CONFIG+=cross_compile"/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/config.tests/verifyspec

                  +Cd/home/work/Qt_ Source/qt everywhere src-5.15.2/config.test/verifyspec&&MAKEFLAGS=/usr/bin/make clean&&MAKEFLAGS=/usr/bin/make

                  Rm - f verifyspec. o

                  Rm - f *~core *. core

                  /home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/arch64 none elf g++- c pipe O2 std=gnu++11 w fPIC - I/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/config.test/verifyspec I- I/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/mkspecs/Linux arch64 gnu g++- o verifyspec. o/home/work/Qt_ Source/qt everywhere src-5.15.2/qtbase/config.test/verifyspec/verifyspec.cpp

                  /home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/arch64 none elf g++- Wl, - O1- o verifyspec verifyspec. o

                  /home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin// Lib/gcc/arch64 none elf/10.31/../../../../../../arch64 none elf/bin/ld:/lib/arch64 Linux gnu/libc. so. 6: version ` GLIBC_ 2.27 'not found (required by/home/gcc arm-10.3-2021.07 aarch64 arch64 none elf/bin/../lib/gcc/arch64 none elf/10.31/../../../../../arch64 none elf/bin/ld)

                  Collect2: error: ld returned 1 exit status

                  Makefile: 68: recipe for target 'verifyspec' failed

                  Make: * * * [verifyspec] Error 1

                  Can you help me? Thank you very much

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #8

                  @quan-wei-jun type command to check your glibc version
                  ldd --version
                  You need GLIBC_2.27 to build. If it is not installed, install it.

                  Q 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @quan-wei-jun type command to check your glibc version
                    ldd --version
                    You need GLIBC_2.27 to build. If it is not installed, install it.

                    Q Offline
                    Q Offline
                    quan-wei-jun
                    wrote on last edited by
                    #9

                    @JoeCFD said in Cross compile Qt with -xcb failed:

                    GLIBC_2.27

                    I dare not upgrade to GLIBC_ 2.27, my glibcs is 2.23, and I am afraid it may be incompatible. Do you suggest upgrading

                    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