Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt5.15 compilation for Raspberry Pi 4
Forum Updated to NodeBB v4.3 + New Features

Qt5.15 compilation for Raspberry Pi 4

Scheduled Pinned Locked Moved Solved QtonPi
13 Posts 3 Posters 3.3k 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.
  • T Offline
    T Offline
    Tom_PK
    wrote on last edited by
    #3

    Thank you for reply!
    Actually I've updated my gcc compiler (version 8.4) and downloaded newer version of aarch64 from: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads: this one: gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf.tar.xz , and also tried with compiler: aarch64-linux-gnu-g++-8 installed via Synaptic.
    I'm getting an error:

    g++ -o "../bin/qmake" main.o meta.o option.o project.o property.o ioutils.o proitems.o qmakebuiltins.o qmakeevaluator.o qmakeglobals.o qmakeparser.o qmakevfs.o pbuilder_pbx.o makefile.o makefiledeps.o metamakefile.o projectgenerator.o unixmake2.o unixmake.o mingw_make.o msbuild_objectmodel.o msvc_nmake.o msvc_objectmodel.o msvc_vcproj.o msvc_vcxproj.o winmakefile.o xmloutput.o qutfcodec.o qendian.o qglobal.o qlogging.o qmalloc.o qnumeric.o qoperatingsystemversion.o qrandom.o qabstractfileengine.o qbuffer.o qdatastream.o qdebug.o qdir.o qdiriterator.o qfile.o qfiledevice.o qfileinfo.o qfilesystemengine.o qfilesystementry.o qfsfileengine.o qfsfileengine_iterator.o qiodevice.o qsettings.o qtemporaryfile.o qtextstream.o qcborstreamwriter.o qcborvalue.o qjsoncbor.o qjsonarray.o qjsondocument.o qjsonobject.o qjsonparser.o qjsonvalue.o qmetatype.o qsystemerror.o qvariant.o quuid.o qarraydata.o qbitarray.o qbytearray.o qbytearraylist.o qbytearraymatcher.o qcalendar.o qgregoriancalendar.o qromancalendar.o qcryptographichash.o qdatetime.o qhash.o qlist.o qlocale.o qlocale_tools.o qmap.o qregexp.o qringbuffer.o qstringbuilder.o qstring.o qstringlist.o qversionnumber.o qvsnprintf.o qxmlstream.o qxmlutils.o qcore_unix.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o  qlibraryinfo.o   -Wl,--gc-sections
    /home/tomek/Pulpit/qt-arm/qt-everywhere-src-5.15.0-rc/qtbase/configure: 856: /home/tomek/Pulpit/qt-arm/qt-everywhere-src-5.15.0-rc/qtbase/configure: /home/tomek/Pulpit/qt-arm/qt-build/qtbase/bin/qmake: Exec format error
    

    Does It seem like objects are not compiled by properd compiler?

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

      Did you restart the process from a clean state ?

      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
      • T Offline
        T Offline
        Tom_PK
        wrote on last edited by
        #5

        Do you mean if I remove all files from previous configuration process? Yes, I did

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

          How did you do that ?

          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
          • T Offline
            T Offline
            Tom_PK
            wrote on last edited by
            #7

            I've just used rm -I -r * command in build directory. It looks like I cannot run qmake built by configure file with arm compiler, because it is compiled for arm.
            I didn't have files from RP in sysroot path before but after adding it, nothing has changed. There is the same error: "Exec format error".

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

              So you did not delete the hidden files. That's why I recommend nuking the folder completely.

              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
              1
              • T Offline
                T Offline
                Tom_PK
                wrote on last edited by
                #9

                Again the same error (" Exec format error ") :/

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

                  I just saw that you are using an RC, did you try with a recent released version ?

                  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
                  1
                  • T Offline
                    T Offline
                    Tom_PK
                    wrote on last edited by
                    #11

                    Sorry, I don't know what RC is.

                    jsulmJ 1 Reply Last reply
                    0
                    • T Tom_PK

                      Sorry, I don't know what RC is.

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

                      @Tom_PK RC: Release Candidate. Means: it is not official release.

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

                      1 Reply Last reply
                      1
                      • T Offline
                        T Offline
                        Tom_PK
                        wrote on last edited by
                        #13

                        Ok guys, thank you for your help, it works.
                        I've downloaded Qt via github from https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_source_code and it is ok.

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved