Qt5.15 compilation for Raspberry Pi 4
-
Hi and welcome to devnet,
AFAIK when there are such messages, it usually means that your version of GCC is too old.
-
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?
-
Did you restart the process from a clean state ?
-
How did you do that ?
-
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". -
So you did not delete the hidden files. That's why I recommend nuking the folder completely.
-
I just saw that you are using an RC, did you try with a recent released version ?
-
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.