Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Attempting to build QT from source for I.MX 8 Nano Debian.



  • My build steps are below they are failing at the make portion with the following error.

    /home/agarza/working/qt-everywhere-src-5.14.2/qtbase/bin/rcc -name mimetypes mimetypes/mimetypes.qrc -o .rcc/qrc_mimetypes.cpp
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -include .pch/Qt5Core -pipe -march=armv8-a -mtune=cortex-a72.cortex-a53 -DLINUX=1 -DEGL_API_FB=1 --sysroot=/home/agarza/working/sysroot -O3 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. -Iglobal -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/harfbuzz/src -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.14.2 -I../../include/QtCore/5.14.2/QtCore -I.moc -I.tracegen -I../3rdparty/pcre2/src -I../../mkspecs/devices/linux-imx8-g++ -o .obj/qrc_mimetypes.o .rcc/qrc_mimetypes.cpp
    /home/agarza/working/qt-everywhere-src-5.14.2/qtbase/bin/moc -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 --include /home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib/.moc/moc_predefs.h -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/mkspecs/devices/linux-imx8-g++ -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib/global -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/md5 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/md4 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/sha3 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/harfbuzz/src -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/forkfd -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/tinycbor/src -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2/QtCore -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1 -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/backward -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/6.3.1/include -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/6.3.1/include-fixed -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -I/home/agarza/working/sysroot/usr/include/aarch64-linux-gnu -I/home/agarza/working/sysroot/usr/include time/qcalendar.h -o .moc/moc_qcalendar.cpp
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -include .pch/Qt5Core -pipe -march=armv8-a -mtune=cortex-a72.cortex-a53 -DLINUX=1 -DEGL_API_FB=1 --sysroot=/home/agarza/working/sysroot -O3 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. -Iglobal -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/harfbuzz/src -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.14.2 -I../../include/QtCore/5.14.2/QtCore -I.moc -I.tracegen -I../3rdparty/pcre2/src -I../../mkspecs/devices/linux-imx8-g++ -o .obj/moc_qcalendar.o .moc/moc_qcalendar.cpp
    /home/agarza/working/qt-everywhere-src-5.14.2/qtbase/bin/moc -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 --include /home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib/.moc/moc_predefs.h -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/mkspecs/devices/linux-imx8-g++ -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib/global -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/md5 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/md4 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/sha3 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/harfbuzz/src -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/forkfd -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/tinycbor/src -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2/QtCore -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1 -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/backward -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/6.3.1/include -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/6.3.1/include-fixed -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -I/home/agarza/working/sysroot/usr/include/aarch64-linux-gnu -I/home/agarza/working/sysroot/usr/include kernel/qobjectdefs.h -o .moc/moc_qobjectdefs.cpp
    kernel/qobjectdefs.h:0: Note: No relevant classes found. No output generated.
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -include .pch/Qt5Core -pipe -march=armv8-a -mtune=cortex-a72.cortex-a53 -DLINUX=1 -DEGL_API_FB=1 --sysroot=/home/agarza/working/sysroot -O3 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. -Iglobal -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/harfbuzz/src -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.14.2 -I../../include/QtCore/5.14.2/QtCore -I.moc -I.tracegen -I../3rdparty/pcre2/src -I../../mkspecs/devices/linux-imx8-g++ -o .obj/moc_qobjectdefs.o .moc/moc_qobjectdefs.cpp
    /home/agarza/working/qt-everywhere-src-5.14.2/qtbase/bin/moc -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 --include /home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib/.moc/moc_predefs.h -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/mkspecs/devices/linux-imx8-g++ -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib/global -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/md5 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/md4 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/sha3 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/harfbuzz/src -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/forkfd -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/3rdparty/tinycbor/src -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2 -I/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/include/QtCore/5.14.2/QtCore -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1 -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/aarch64-linux-gnu -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/6.3.1/backward -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/6.3.1/include -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/6.3.1/include-fixed -I/home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -I/home/agarza/working/sysroot/usr/include/aarch64-linux-gnu -I/home/agarza/working/sysroot/usr/include mimetypes/qmimetype.h -o .moc/moc_qmimetype.cpp
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -include .pch/Qt5Core -pipe -march=armv8-a -mtune=cortex-a72.cortex-a53 -DLINUX=1 -DEGL_API_FB=1 --sysroot=/home/agarza/working/sysroot -O3 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. -Iglobal -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/harfbuzz/src -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.14.2 -I../../include/QtCore/5.14.2/QtCore -I.moc -I.tracegen -I../3rdparty/pcre2/src -I../../mkspecs/devices/linux-imx8-g++ -o .obj/moc_qmimetype.o .moc/moc_qmimetype.cpp
    rm -f libQt5Core.so.5.14.2 libQt5Core.so libQt5Core.so.5 libQt5Core.so.5.14
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ --sysroot=/home/agarza/working/sysroot -Wl,--no-undefined -Wl,--version-script,QtCore.version -Wl,-O1 -Wl,--enable-new-dtags -shared -Wl,-soname,libQt5Core.so.5 -o libQt5Core.so.5.14.2 .obj/minimum-linux.o .obj/qstring_compat.o .obj/qabstractanimation.o .obj/qvariantanimation.o .obj/qpropertyanimation.o .obj/qanimationgroup.o .obj/qsequentialanimationgroup.o .obj/qparallelanimationgroup.o .obj/qpauseanimation.o .obj/qendian.o .obj/qglobal.o .obj/qlibraryinfo.o .obj/qmalloc.o .obj/qnumeric.o .obj/qfloat16.o .obj/qoperatingsystemversion.o .obj/qlogging.o .obj/qrandom.o .obj/qhooks.o .obj/qversiontagging.o .obj/qrunnable.o .obj/qthread.o .obj/qthread_unix.o .obj/qatomic.o .obj/qmutex.o .obj/qreadwritelock.o .obj/qsemaphore.o .obj/qthreadpool.o .obj/qthreadstorage.o .obj/qwaitcondition_unix.o .obj/qexception.o .obj/qfutureinterface.o .obj/qfuturewatcher.o .obj/qresultstore.o .obj/qarraydata.o .obj/qbitarray.o .obj/qcryptographichash.o .obj/qfreelist.o .obj/qhash.o .obj/qline.o .obj/qlinkedlist.o .obj/qlist.o .obj/qpoint.o .obj/qmap.o .obj/qmargins.o .obj/qmessageauthenticationcode.o .obj/qcontiguouscache.o .obj/qrect.o .obj/qrefcount.o .obj/qringbuffer.o .obj/qshareddata.o .obj/qsharedpointer.o .obj/qsimd.o .obj/qsize.o .obj/qversionnumber.o .obj/qcommandlineoption.o .obj/qcommandlineparser.o .obj/qeasingcurve.o .obj/qtimeline.o .obj/qbytearray.o .obj/qbytearraylist.o .obj/qbytearraymatcher.o .obj/qcollator.o .obj/qlocale.o .obj/qlocale_tools.o .obj/qregexp.o .obj/qstring.o .obj/qstringbuilder.o .obj/qstringlist.o .obj/qstringview.o .obj/qtextboundaryfinder.o .obj/qunicodetools.o .obj/qvsnprintf.o .obj/qlocale_unix.o .obj/qcollator_posix.o .obj/qregularexpression.o .obj/harfbuzz-buffer.o .obj/harfbuzz-gdef.o .obj/harfbuzz-gsub.o .obj/harfbuzz-gpos.o .obj/harfbuzz-impl.o .obj/harfbuzz-open.o .obj/harfbuzz-stream.o .obj/harfbuzz-shaper-all.o .obj/qharfbuzz.o .obj/qdatetime.o .obj/qcalendar.o .obj/qgregoriancalendar.o .obj/qjuliancalendar.o .obj/qmilankoviccalendar.o .obj/qromancalendar.o .obj/qhijricalendar.o .obj/qislamiccivilcalendar.o .obj/qjalalicalendar.o .obj/qtimezone.o .obj/qtimezoneprivate.o .obj/qtimezoneprivate_tz.o .obj/qdatetimeparser.o .obj/qabstractfileengine.o .obj/qbuffer.o .obj/qdataurl.o .obj/qtldurl.o .obj/qdebug.o .obj/qdir.o .obj/qdiriterator.o .obj/qfile.o .obj/qfiledevice.o .obj/qfileinfo.o .obj/qipaddress.o .obj/qiodevice.o .obj/qlockfile.o .obj/qnoncontiguousbytedevice.o .obj/qstorageinfo.o .obj/qtemporarydir.o .obj/qtemporaryfile.o .obj/qresource.o .obj/qresource_iterator.o .obj/qsavefile.o .obj/qstandardpaths.o .obj/qurl.o .obj/qurlidna.o .obj/qurlquery.o .obj/qurlrecode.o .obj/qfsfileengine.o .obj/qfsfileengine_iterator.o .obj/qfilesystementry.o .obj/qfilesystemengine.o .obj/qfileselector.o .obj/qloggingcategory.o .obj/qloggingregistry.o .obj/qfilesystemwatcher.o .obj/qfilesystemwatcher_polling.o .obj/qfilesystemwatcher_inotify.o .obj/qprocess.o .obj/qprocess_unix.o .obj/qsettings.o .obj/qfsfileengine_unix.o .obj/qfilesystemengine_unix.o .obj/qlockfile_unix.o .obj/qfilesystemiterator_unix.o .obj/forkfd_qt.o .obj/qstandardpaths_unix.o .obj/qstorageinfo_unix.o .obj/qabstractitemmodel.o .obj/qitemselectionmodel.o .obj/qabstractproxymodel.o .obj/qconcatenatetablesproxymodel.o .obj/qidentityproxymodel.o .obj/qsortfilterproxymodel.o .obj/qtransposeproxymodel.o .obj/qstringlistmodel.o .obj/qfactoryinterface.o .obj/qpluginloader.o .obj/qfactoryloader.o .obj/quuid.o .obj/qabstracteventdispatcher.o .obj/qabstractnativeeventfilter.o .obj/qbasictimer.o .obj/qdeadlinetimer.o .obj/qelapsedtimer.o .obj/qeventloop.o .obj/qcoreapplication.o .obj/qcoreevent.o .obj/qmetaobject.o .obj/qmetatype.o .obj/qmetaobjectbuilder.o .obj/qmimedata.o .obj/qobject.o .obj/qobjectcleanuphandler.o .obj/qsignalmapper.o .obj/qsocketnotifier.o .obj/qtimer.o .obj/qtranslator.o .obj/qvariant.o .obj/qcoreglobaldata.o .obj/qsharedmemory.o .obj/qsystemsemaphore.o .obj/qpointer.o .obj/qmath.o .obj/qsystemerror.o .obj/qtestsupport_core.o .obj/qcore_unix.o .obj/qeventdispatcher_unix.o .obj/qtimerinfo_unix.o .obj/qelapsedtimer_unix.o .obj/qsharedmemory_posix.o .obj/qsharedmemory_systemv.o .obj/qsharedmemory_unix.o .obj/qsystemsemaphore_posix.o .obj/qsystemsemaphore_systemv.o .obj/qsystemsemaphore_unix.o .obj/qutfcodec.o .obj/qlatincodec.o .obj/qsimplecodec.o .obj/qtextcodec.o .obj/qisciicodec.o .obj/qtsciicodec.o .obj/qgb18030codec.o .obj/qjpunicode.o .obj/qeucjpcodec.o .obj/qjiscodec.o .obj/qsjiscodec.o .obj/qeuckrcodec.o .obj/qbig5codec.o .obj/qiconvcodec.o .obj/qcborstream.o .obj/qcbordiagnostic.o .obj/qcborvalue.o .obj/qdatastream.o .obj/qjson.o .obj/qjsoncbor.o .obj/qjsondocument.o .obj/qjsonobject.o .obj/qjsonarray.o .obj/qjsonvalue.o .obj/qjsonwriter.o .obj/qjsonparser.o .obj/qtextstream.o .obj/qxmlstream.o .obj/qxmlutils.o .obj/qstatemachine.o .obj/qabstractstate.o .obj/qstate.o .obj/qfinalstate.o .obj/qhistorystate.o .obj/qabstracttransition.o .obj/qsignaltransition.o .obj/qeventtransition.o .obj/qmimedatabase.o .obj/qmimetype.o .obj/qmimemagicrulematcher.o .obj/qmimetypeparser.o .obj/qmimemagicrule.o .obj/qmimeglobpattern.o .obj/qmimeprovider.o .obj/qrc_mimetypes.o .obj/moc_qcalendar.o .obj/moc_qobjectdefs.o .obj/moc_qmimetype.o  -lpthread -lm -lz -ldouble-conversion -L/home/agarza/working/sysroot/usr/lib/aarch64-linux-gnu -lpcre2-16   
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: /home/agarza/working/sysroot/usr/lib/aarch64-linux-gnu/libpthread.a(pthread_create.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `__stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: /home/agarza/working/sysroot/usr/lib/aarch64-linux-gnu/libpthread.a(pthread_create.o)(.text+0x4dc): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17'
    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
    Makefile:1202: recipe for target '../../lib/libQt5Core.so.5.14.2' failed
    make[3]: *** [../../lib/libQt5Core.so.5.14.2] Error 1
    make[3]: Leaving directory '/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src/corelib'
    Makefile:226: recipe for target 'sub-corelib-make_first' failed
    make[2]: *** [sub-corelib-make_first] Error 2
    make[2]: Leaving directory '/home/agarza/working/qt-everywhere-src-5.14.2/qtbase/src'
    Makefile:50: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/agarza/working/qt-everywhere-src-5.14.2/qtbase'
    Makefile:85: recipe for target 'module-qtbase-make_first' failed
    make: *** [module-qtbase-make_first] Error 2
    agarza@agarza-VirtualBox:~/working/qt-everywhere-src-5.14.2$ 
    
    QT Build Steps.
    1. ON the NANO Board 
         a. apt-get install sudo
         b. modify the hostname in both places to get rid of errors when using the sudo command.
         c. sudo apt-get update
         d. sudo apt-get upgrade
         e. sudo apt-get build-dep qt4-x11
         f. sudo apt-get build-dep libqt5gui5
         g. sudo apt-get install libudev-dev libinput-dev libts-dev libxcb-xinerama0-dev libxcb-xinerama0
         
    2. On the UBUNTU PC
         a. create a working directory mkdir working.
         b. cd to working.
         c. Use file manager to copy full toolchain directory from debian build process to working directory.
    3. On the NANO board.
         a. mkdir usr/local/qt5imx
         b. sudo chown root:root /usr/local/qt5imx
    4. On The Ubuntu PC
         a. mkdir sysroot sysroot/usr sysroot/opt
         b. rsync -avz root@192.168.1.110:/lib sysroot
         c. rsync -avz root@192.168.1.110:/usr/include sysroot/usr
         d. rsync -avz root@192.168.1.110:/usr/lib sysroot/usr
         e. rsync -avz root@192.168.1.110:/usr/lib/aarch64-linux-gnu/vivante  sysroot/opt
         f. wget https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py
         g. chmod +x sysroot-relativelinks.py ./sysroot-relativelinks.py sysroot
         h. wget http://download.qt.io/official_releases/qt/5.14/5.14.2/single/ qt-everywhere-src-5.14.2.tar.xz
         i. tar xvf  qt-everywhere-src-5.14.2.tar.xz
         j. cd  qt-everywhere-src-5.14.2
         k. ./configure -release -device linux-imx8-g++ -device-option CROSS_COMPILE=~/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot ~/working/sysroot -opensource -confirm-license -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5imx -extprefix ~/working/qt5imx -hostprefix ~/working/qt5imx -v -no-opengl
         l. make
    

Log in to reply