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. Configuration tests failed to determine host architecture
Qt 6.11 is out! See what's new in the release blog

Configuration tests failed to determine host architecture

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 2 Posters 2.1k 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.
  • D Offline
    D Offline
    Dharmik.Mehta
    wrote on last edited by
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What kind of machine are you on ?
      What architecture is it ?
      What OS are you running ?

      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
      • D Offline
        D Offline
        Dharmik.Mehta
        wrote on last edited by
        #3

        I am working on Linux SUSE. Trying to compile it for our product that uses ARM.

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

          Are you compiling or cross-compiling ?

          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
          • D Offline
            D Offline
            Dharmik.Mehta
            wrote on last edited by
            #5

            What kind of machine are you on? Embedded system
            What architecture is it? Generic-arm-g++
            What OS are you running? POSIX
            Are you compiling or cross-compiling? Cross Compiling

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

              Would you mind giving a bit more information about that system ?

              You could talking about a Raspberry Pi as well as the next gen multicore machine for the server space.

              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
              • D Offline
                D Offline
                Dharmik.Mehta
                wrote on last edited by Dharmik.Mehta
                #7

                So I am trying to cross compile from my Linux Machine onto a device that is a Raspberry Pi based architecture.

                Host Architecture - x86_64
                Target Architecture - aarch64

                We are using Qt 5.6 and with the same setup, the configurations tests are successful. However, I am trying to upgrade to QT 5.15.0 and I am coming across this error when I try to run the configure script.

                Checking for machine tuple... yes
                Checking for valid makespec... yes
                Checking for alloca() in alloca.h... yes
                Checking for target architecture... x86_64
                Checking for host architecture... Project ERROR: Could not determine host architecture. See config.log for details.

                I am not sure why it shows target architecture as x86_64 when x86_64 is actually the host architecture. Could it be possible that it got swapped?

                As I mentioned, the exact same command with the same host and target devices is successfully with Qt 5.6. Do you know what changed between 5.6 and 5.15 that could have affected this?

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

                  What options are you passing to configure ?

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

                  D 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What options are you passing to configure ?

                    D Offline
                    D Offline
                    Dharmik.Mehta
                    wrote on last edited by
                    #9

                    @SGaist
                    5.15.0/qt-everywhere-src-5.15.0/qtbase/configure -top-level -prefix /mnt/drivers -device-option PLATFORM_DIR=5.15.0/platform -static -no-use-gold-linker -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-mips_dsp -no-mips_dspr2 -no-linuxfb -no-xcb -system-sqlite -no-sql-db2 -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-sql-ibase -no-kms -no-reduce-relocations -no-cups -no-iconv -no-dbus -no-glib -no-widgets -opengl es2 -nomake tools -nomake examples -nomake tests -skip qtactiveqt -skip qtandroidextras -skip qtconnectivity -skip qtdoc -skip qtlocation -skip qtmacextras -skip qtscript -skip qtsensors -skip qtserialport -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -openssl -no-gtk -skip qtmultimedia -no-feature-clipboard -no-feature-concurrent -no-feature-cssparser -no-feature-draganddrop -no-feature-effects -no-feature-sessionmanager -no-feature-sharedmemory -no-feature-systemsemaphore -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-xmlstreamwriter -no-feature-dom -no-feature-filesystemwatcher -no-feature-process -no-feature-buttongroup -no-feature-calendarwidget -no-feature-combobox -no-feature-contextmenu -no-feature-datetimeedit -no-feature-dial -no-feature-dockwidget -no-feature-fontcombobox -no-feature-graphicseffect -no-feature-graphicsview -no-feature-groupbox -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-lineedit -no-feature-listwidget -no-feature-mainwindow -no-feature-mdiarea -no-feature-menu -no-feature-printpreviewwidget -no-feature-progressbar -no-feature-resizehandler -no-feature-rubberband -no-feature-scrollarea -no-feature-scrollbar -no-feature-sizegrip -no-feature-slider -no-feature-spinbox -no-feature-splashscreen -no-feature-splitter -no-feature-stackedwidget -no-feature-statusbar -no-feature-statustip -no-feature-syntaxhighlighter -no-feature-tabbar -no-feature-tablewidget -no-feature-tabwidget -no-feature-textbrowser -no-feature-textedit -no-feature-toolbar -no-feature-toolbox -no-feature-toolbutton -no-feature-tooltip -no-feature-treewidget -no-feature-whatsthis -no-feature-colordialog -no-feature-errormessage -no-feature-filedialog -no-feature-fontdialog -no-feature-inputdialog -no-feature-messagebox -no-feature-printdialog -no-feature-printpreviewdialog -no-feature-progressdialog -no-feature-wizard -no-feature-columnview -no-feature-datawidgetmapper -no-feature-dirmodel -no-feature-identityproxymodel -no-feature-itemviews -no-feature-listview -no-feature-proxymodel -no-feature-sortfilterproxymodel -no-feature-standarditemmodel -no-feature-stringlistmodel -no-feature-tableview -no-feature-treeview -no-feature-style-stylesheet -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_xpm -DQT_NO_SVGGENERATOR -no-feature-cups -no-feature-pdf -no-feature-picture -no-feature-printer -no-feature-big_codecs -no-feature-codecs -no-feature-iconv -no-feature-bearermanagement -no-feature-ftp -no-feature-udpsocket -no-feature-completer -no-feature-desktopservices -no-feature-fscompleter -no-feature-gestures -no-feature-systemtrayicon -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-dbus -xplatform devices/linux-arm-broadcom-g++ -device-option COMPILE_OPTIMIZATION=-Os -device-option PLATFORM_OPENGL_LIBS=-lFakeOpenGL -no-egl -skip qtgraphicaleffects -directfb -qpa directfb -commercial -confirm-license

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

                      Can you try a standard configure run with the defaults ?

                      Out of curiosity, with all the skip options you are adding, are you building anything else than qtbase ?

                      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
                      • D Offline
                        D Offline
                        Dharmik.Mehta
                        wrote on last edited by
                        #11

                        @SGaist said in Configuration tests failed to determine host architecture:

                        Can you try a standard configure run with the defaults ?

                        When I run configure on my host machine without cross compiling, the tests are successful.

                        No, I am planning on building just the qtbase.

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          Dharmik.Mehta
                          wrote on last edited by
                          #12

                          So we have a patch to change the QMAKE_CFLAGS_OPTIMIZE and QMAKE_CFLAGS_OPTIMIZE_FULL flags based on the product we are building it for.
                          I am passing in a value using 'device-option' to the configure script in qtbase. However, for some reason, that value is not getting passed to qtbase/mkspecs/common/gcc-base.conf

                          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