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. Error configuring cross compilation

Error configuring cross compilation

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 665 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.
  • I Offline
    I Offline
    IknowQT
    wrote on last edited by
    #1

    Info: creating stash file /opt/qt5pi/qt5build/.qmake.stash

    This is the Qt Open Source Edition.

    You have already accepted the terms of the Open Source license.

    Running configuration tests...
    Checking for machine tuple...

    /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -dumpmachine
    arm-linux-gnueabihf
    test config.qtbase.tests.machineTuple succeeded
    Checking for valid makespec...
    cd /opt/qt5pi/qt5build/config.tests/verifyspec && /opt/qt5pi/qt5build/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/opt/qt5pi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/opt/qt5pi/sysroot" "QMAKE_LFLAGS += --sysroot=/opt/qt5pi/sysroot" -early "CONFIG += cross_compile" /opt/qt5pi/qt-everywhere-src-5.15.2/qtbase/config.tests/verifyspec
    cd /opt/qt5pi/qt5build/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make
    /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a72 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/opt/qt5pi/sysroot -O2 -w -fPIC -I/opt/qt5pi/qt-everywhere-src-5.15.2/qtbase/config.tests/verifyspec -I. -I/opt/qt5pi/qt-everywhere-src-5.15.2/qtbase/mkspecs/devices/linux-rasp-pi4-v3d-g++ -o verifyspec.o /opt/qt5pi/qt-everywhere-src-5.15.2/qtbase/config.tests/verifyspec/verifyspec.cpp
    /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/opt/qt5pi/sysroot -Wl,-O1 -Wl,-rpath-link,/opt/qt5pi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/opt/qt5pi/sysroot/lib/arm-linux-gnueabihf -o verifyspec verifyspec.o
    /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: 그런 파일이나 디렉터리가 없습니다
    /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: 그런 파일이나 디렉터리가 없습니다
    /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lm
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:68: verifyspec] 오류 1
    Note: Also available for Linux: linux-clang linux-icc

    ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

    An error occurred while configuring cross-compilation.
    I think I've done everything I can. Can anyone tell me about this part?

    ../qt-everywhere-src-5.15.2/configure -opengl es2 -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=/opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /opt/qt5pi/sysroot -prefix /usr/local/qt5pi -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtdatavis3d -nomake examples -make libs -pkg-config -no-use-gold-linker -v

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      cannot find: crt1.o [...] crti.o [...] -lm

      These are basic libraries of the compiler. Not sure how to fix this, I haven't seen such error myself. Perhaps installing gcc-dev on your target board and synchronizing sysroot will do the trick, but I doubt it.

      Some insights: https://stackoverflow.com/questions/6329887/compiling-problems-cannot-find-crt1-o

      (Z(:^

      I 1 Reply Last reply
      0
      • sierdzioS sierdzio

        cannot find: crt1.o [...] crti.o [...] -lm

        These are basic libraries of the compiler. Not sure how to fix this, I haven't seen such error myself. Perhaps installing gcc-dev on your target board and synchronizing sysroot will do the trick, but I doubt it.

        Some insights: https://stackoverflow.com/questions/6329887/compiling-problems-cannot-find-crt1-o

        I Offline
        I Offline
        IknowQT
        wrote on last edited by
        #3

        @sierdzio

        Does installing gcc-dev on the target board mean installing it on the raspberry board?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Yes, exactly.

          (Z(:^

          I 1 Reply Last reply
          0
          • sierdzioS sierdzio

            Yes, exactly.

            I Offline
            I Offline
            IknowQT
            wrote on last edited by IknowQT
            #5

            @sierdzio

            deb http://deb.debian.org/debian buster main contrib non-free
            deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
            deb http://deb.debian.org/debian buster-updates main contrib non-free
            #Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
            deb-src http://deb.debian.org/debian buster main contrib non-free
            deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-$
            deb-src http://deb.debian.org/debian buster-updates main contrib non-free

            It's a list of sources in Raspbian, am I doing something wrong here?
            I installed Raspbian, here it is in Debian

            jsulmJ 1 Reply Last reply
            0
            • I IknowQT

              @sierdzio

              deb http://deb.debian.org/debian buster main contrib non-free
              deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
              deb http://deb.debian.org/debian buster-updates main contrib non-free
              #Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
              deb-src http://deb.debian.org/debian buster main contrib non-free
              deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-$
              deb-src http://deb.debian.org/debian buster-updates main contrib non-free

              It's a list of sources in Raspbian, am I doing something wrong here?
              I installed Raspbian, here it is in Debian

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

              @IknowQT said in Error configuring cross compilation:

              am I doing something wrong here?

              You are not doing what was suggested...

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

              I 1 Reply Last reply
              0
              • jsulmJ jsulm

                @IknowQT said in Error configuring cross compilation:

                am I doing something wrong here?

                You are not doing what was suggested...

                I Offline
                I Offline
                IknowQT
                wrote on last edited by
                #7

                @jsulm

                I'm comparing the tutorials I've seen and followed, but I was wondering if the contents of the sourcelist were different.

                jsulmJ Pablo J. RoginaP 2 Replies Last reply
                0
                • I IknowQT

                  @jsulm

                  I'm comparing the tutorials I've seen and followed, but I was wondering if the contents of the sourcelist were different.

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

                  @IknowQT Did you do what @sierdzio suggested?

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

                  1 Reply Last reply
                  0
                  • I IknowQT

                    @jsulm

                    I'm comparing the tutorials I've seen and followed, but I was wondering if the contents of the sourcelist were different.

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #9

                    @IknowQT you keep posting and posting on the same topic.
                    Please stop opening new threads....

                    https://forum.qt.io/topic/131426/qt-cross-compile-build
                    https://forum.qt.io/topic/131394/raspberry-cross-compiler-setting-cannot-run-target-compiler
                    https://forum.qt.io/topic/131382/build-qt-to-cross-compile-for-arm-tutorial

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    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