hi,all i want to install QT5.12.0 on imx6q , but i build source find some error ,if anyone can help,i'd appriciate!
-
qtbase/mkspecs/arm-linux-gnueabihf-g++/qmake.conf:
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
#include(../device/linux-imx6-g++/qmake.conf)EGLFS_DEVICE_INTEGRATION = eglfs_viv
#IMX6_CFLAGS_RELEASE = -O2 -std=c++11 $$IMX6_CFLAGS
#QMAKE_CFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
#QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
#QMAKE_CFLAGS_DEBUG += $$IMX6_CFLAGS
#QMAKE_CXXFLAGS_DEBUG += $$IMX6_CFLAGSQT_QPA_DEFAULT_PLATFORM = eglfs
QMAKE_LIBS += -lrt -ldl -lglib-2.0
QMAKE_INCDIR += /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/include
QMAKE_LIBDIR += /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/lib
QMAKE_LIBDIR += /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/libQMAKE_INCDIR_OPENGL_ES2 = /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/include
QMAKE_LIBDIR_OPENGL_ES2 = /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/libQMAKE_INCDIR_EGL = /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/include
QMAKE_LIBDIR_EGL = /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/libQMAKE_LIBS_OPENGL_ES1 += -lGLESv1_CM -lEGL -lGAL
QMAKE_LIBS_OPENGL_ES1CL += -lGLESv1_CL -lEGL -lGAL
QMAKE_LIBS_EGL += -lEGL -lGAL -lGLESv2
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGALmodifications to g++.conf
QMAKE_CC =/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
QMAKE_CXX =/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
QMAKE_LINK =/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB =/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++modifications to linux.conf
QMAKE_AR = /opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY = /opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-objcopy
QMAKE_NM = /opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-nm -P
QMAKE_STRIP = /opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip
load(qt_config)configure:
#!/bin/sh
../configure
-prefix /home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qt-arm
-extprefix /home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qt-qmake
-sysroot /opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/
-confirm-license
-opensource
-release
-make libs
-device-option CROSS_COMPILE=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
-xplatform arm-linux-gnueabihf-g++
-pch
-qt-libjpeg
-qt-libpng
-qt-zlib
-opengl es2
-skip wayland
-egl
-eglfs
-recheck-allerror 1:
/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ --sysroot=/opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/ -Wl,--no-undefined -Wl,--version-script,QtSql.version -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN -shared -Wl,-soname,libQt5Sql.so.5 -o libQt5Sql.so.5.12.0 .obj/qsqlquery.o .obj/qsqldatabase.o .obj/qsqlfield.o .obj/qsqlrecord.o .obj/qsqldriver.o .obj/qsqldriverplugin.o .obj/qsqlerror.o .obj/qsqlresult.o .obj/qsqlindex.o .obj/qsqlcachedresult.o .obj/qsqlquerymodel.o .obj/qsqltablemodel.o .obj/qsqlrelationaldelegate.o .obj/qsqlrelationaltablemodel.o .obj/moc_qsqldriver.o .obj/moc_qsqldriverplugin.o .obj/moc_qsqlquerymodel.o .obj/moc_qsqltablemodel.o .obj/moc_qsqlrelationaltablemodel.o -L/opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/lib -L/opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/lib -L/home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qtbase/lib -lQt5Core -lpthread -lrt -ldl -lglib-2.0
.obj/qsqldriver.o:qsqldriver.cpp:function QSqlDriver::formatValue(QSqlField const&, bool) const: error: undefined reference to 'QString::operator=(QLatin1String)'
.obj/qsqldriver.o:qsqldriver.cpp:function QSqlDriver::formatValue(QSqlField const&, bool) const: error: undefined reference to 'QString::operator=(QLatin1String)'
.obj/qsqlquerymodel.o:qsqlquerymodel.cpp:function QSqlQueryModelPrivate::~QSqlQueryModelPrivate(): error: undefined reference to 'QAbstractItemModelPrivate::~QAbstractItemModelPrivate()'
.obj/qsqlquerymodel.o:qsqlquerymodel.cpp:function QSqlQueryModel::QSqlQueryModel(QObject*): error: undefined reference to 'QAbstractItemModelPrivate::QAbstractItemModelPrivate()'
.obj/qsqltablemodel.o:qsqltablemodel.cpp:function QSqlTableModel::QSqlTableModel(QObject*, QSqlDatabase): error: undefined reference to 'QAbstractItemModelPrivate::QAbstractItemModelPrivate()'
.obj/qsqlrelationaltablemodel.o:qsqlrelationaltablemodel.cpp:function QSqlRelationalTableModel::QSqlRelationalTableModel(QObject*, QSqlDatabase): error: undefined reference to 'QAbstractItemModelPrivate::QAbstractItemModelPrivate()'
collect2: error: ld returned 1 exit status
Makefile:187: recipe for target '../../lib/libQt5Sql.so.5.12.0' failed
make[3]: *** [../../lib/libQt5Sql.so.5.12.0] Error 1
make[3]: Leaving directory '/home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qtbase/src/sql'
Makefile:301: recipe for target 'sub-sql-make_first' failed
make[2]: *** [sub-sql-make_first] Error 2Error 2:
/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ --sysroot=/opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/ -Wl,--no-undefined -Wl,--version-script,QtNetwork.version -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN -shared -Wl,-soname,libQt5Network.so.5 -o libQt5Network.so.5.12.0 .obj/qnetworkaccessauthenticationmanager.o .obj/qnetworkaccessmanager.o .obj/qnetworkaccesscache.o .obj/qnetworkaccessbackend.o .obj/qnetworkaccessdebugpipebackend.o .obj/qnetworkaccessfilebackend.o .obj/qnetworkaccesscachebackend.o .obj/qnetworkcookie.o .obj/qnetworkcookiejar.o .obj/qnetworkrequest.o .obj/qnetworkreply.o .obj/qnetworkreplyimpl.o .obj/qnetworkreplydataimpl.o .obj/qnetworkreplyfileimpl.o .obj/qabstractnetworkcache.o .obj/qnetworkfile.o .obj/qhsts.o .obj/qhstspolicy.o .obj/qftp.o .obj/qnetworkaccessftpbackend.o .obj/qnetworkdiskcache.o .obj/qhstsstore.o .obj/bitstreams.o .obj/huffman.o .obj/hpack.o .obj/hpacktable.o .obj/http2frames.o .obj/http2streams.o .obj/http2protocol.o .obj/qabstractprotocolhandler.o .obj/qhttp2protocolhandler.o .obj/qhttpmultipart.o .obj/qhttpnetworkconnection.o .obj/qhttpnetworkconnectionchannel.o .obj/qhttpnetworkheader.o .obj/qhttpnetworkreply.o .obj/qhttpnetworkrequest.o .obj/qhttpprotocolhandler.o .obj/qhttpthreaddelegate.o .obj/qnetworkreplyhttpimpl.o .obj/qspdyprotocolhandler.o .obj/qnetworksession.o .obj/qnetworkconfigmanager.o .obj/qnetworkconfiguration.o .obj/qnetworkconfigmanager_p.o .obj/qbearerengine.o .obj/qbearerplugin.o .obj/qsharednetworksession.o .obj/qauthenticator.o .obj/qhostaddress.o .obj/qhostinfo.o .obj/qnetworkdatagram.o .obj/qnetworkinterface.o .obj/qnetworkproxy.o .obj/qurlinfo.o .obj/qdnslookup.o .obj/qdnslookup_unix.o .obj/qhostinfo_unix.o .obj/qnetworkinterface_linux.o .obj/qnetworkproxy_generic.o .obj/qabstractsocketengine.o .obj/qabstractsocket.o .obj/qtcpsocket.o .obj/qudpsocket.o .obj/qtcpserver.o .obj/qsocks5socketengine.o .obj/qhttpsocketengine.o .obj/qnativesocketengine.o .obj/qnativesocketengine_unix.o .obj/qlocalsocket.o .obj/qlocalserver.o .obj/qlocalsocket_unix.o .obj/qlocalserver_unix.o .obj/qasn1element.o .obj/qssl.o .obj/qsslcertificate.o .obj/qsslcertificateextension.o .obj/qsslconfiguration.o .obj/qsslcipher.o .obj/qssldiffiehellmanparameters.o .obj/qsslellipticcurve.o .obj/qsslkey_p.o .obj/qsslerror.o .obj/qsslsocket.o .obj/qsslpresharedkeyauthenticator.o .obj/qdtls.o .obj/qsslsocket_openssl_symbols.o .obj/qssldiffiehellmanparameters_openssl.o .obj/qsslcertificate_openssl.o .obj/qsslellipticcurve_openssl.o .obj/qsslkey_openssl.o .obj/qsslsocket_openssl.o .obj/qsslcontext_openssl.o .obj/qdtls_openssl.o .obj/qsslsocket_opensslpre11.o .obj/qsslcontext_opensslpre11.o .obj/qpassworddigestor.o .obj/moc_qnetworkaccesscache_p.o .obj/moc_qnetworkaccessbackend_p.o .obj/moc_qnetworkaccessdebugpipebackend_p.o .obj/moc_qnetworkaccessfilebackend_p.o .obj/moc_qnetworkcookiejar.o .obj/moc_qnetworkreply.o .obj/moc_qabstractnetworkcache.o .obj/moc_qnetworkfile_p.o .obj/moc_qnetworkaccessftpbackend_p.o .obj/moc_qnetworkdiskcache.o .obj/moc_qhttp2protocolhandler_p.o .obj/moc_qhttpmultipart.o .obj/moc_qhttpnetworkreply_p.o .obj/moc_qhttpthreaddelegate_p.o .obj/moc_qnetworkreplyhttpimpl_p.o .obj/moc_qspdyprotocolhandler_p.o .obj/moc_qnetworkconfigmanager_p.o .obj/moc_qnetworksession_p.o .obj/moc_qbearerplugin_p.o .obj/moc_qhostinfo_p.o .obj/moc_qnetworkproxy.o .obj/moc_qdnslookup_p.o .obj/moc_qabstractsocketengine_p.o .obj/moc_qtcpsocket.o .obj/moc_qudpsocket.o .obj/moc_qsocks5socketengine_p.o .obj/moc_qhttpsocketengine_p.o .obj/moc_qnativesocketengine_p.o .obj/moc_qdtls.o -L/opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/lib -L/opt/EmbedSky/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/rootfs/usr/lib -L/home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qtbase/lib -lQt5Core -lpthread -lQt5Core -lpthread -lrt -ldl -lglib-2.0
.obj/qnetworkcookie.o:qnetworkcookie.cpp:function QNetworkCookiePrivate::parseSetCookieHeaderLine(QByteArray const&): error: undefined reference to 'QDateTime::QDateTime(QDateTime&&)'
.obj/qnetworkcookie.o:qnetworkcookie.cpp:function QNetworkCookiePrivate::parseSetCookieHeaderLine(QByteArray const&): error: undefined reference to 'QDateTime::fromSecsSinceEpoch(long long, Qt::TimeSpec, int)'
.obj/qnetworkcookiejar.o:qnetworkcookiejar.cpp:function QNetworkCookieJar::validateCookie(QNetworkCookie const&, QUrl const&) const: error: undefined reference to 'qIsEffectiveTLD(QStringRef const&)'
.obj/qnetworkcookiejar.o:qnetworkcookiejar.cpp:function QNetworkCookieJar::cookiesForUrl(QUrl const&) const: error: undefined reference to 'qIsEffectiveTLD(QStringRef const&)'
.obj/qnetworkrequest.o:qnetworkrequest.cpp:function QNetworkHeadersPrivate::findRawHeader(QByteArray const&) const: error: undefined reference to 'qstrnicmp(char const*, int, char const*, int)'
.obj/qnetworkrequest.o:qnetworkrequest.cpp:function QNetworkHeadersPrivate::parseAndSetHeader(QByteArray const&, QByteArray const&): error: undefined reference to 'qstrnicmp(char const*, int, char const*, int)'
.obj/qnetworkrequest.o:qnetworkrequest.cpp:function QNetworkHeadersPrivate::parseAndSetHeader(QByteArray const&, QByteArray const&): error: undefined reference to 'qstrnicmp(char const*, int, char const*, int)'
.obj/qnetworkrequest.o:qnetworkrequest.cpp:function QNetworkHeadersPrivate::parseAndSetHeader(QByteArray const&, QByteArray const&): error: undefined reference to 'qstrnicmp(char const*, int, char const*, int)'
.obj/qnetworkreply.o:qnetworkreply.cpp:vtable for QNetworkReplyPrivate: error: undefined reference to 'QIODevicePrivate::skip(long long)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::_q_bufferOutgoingData(): error: undefined reference to 'QRingBuffer::chop(long long)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::_q_bufferOutgoingData(): error: undefined reference to 'QRingBuffer::reserve(long long)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::_q_bufferOutgoingData(): error: undefined reference to 'QRingBuffer::chop(long long)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::_q_bufferOutgoingData(): error: undefined reference to 'QRingBuffer::chop(long long)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::_q_copyReadyRead(): error: undefined reference to 'QRingBuffer::reserve(long long)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::_q_copyReadyRead(): error: undefined reference to 'QRingBuffer::chop(long long)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::appendDownstreamData(QByteDataBuffer&): error: undefined reference to 'QRingBuffer::append(QByteArray const&)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:function QNetworkReplyImplPrivate::setup(QNetworkAccessManager::Operation, QNetworkRequest const&, QIODevice*): error: undefined reference to 'QRingBuffer::append(QByteArray const&)'
.obj/qnetworkreplyimpl.o:qnetworkreplyimpl.cpp:vtable for QNetworkReplyImplPrivate: error: undefined reference to 'QIODevicePrivate::skip(long long)'
.obj/qnetworkreplydataimpl.o:qnetworkreplydataimpl.cpp:vtable for QNetworkReplyDataImplPrivate: error: undefined reference to 'QIODevicePrivate::skip(long long)'
.obj/qnetworkreplyfileimpl.o:qnetworkreplyfileimpl.cpp:vtable for QNetworkReplyFileImplPrivate: error: undefined reference to 'QIODevicePrivate::skip(long long)'
.obj/qabstractnetworkcache.o:qabstractnetworkcache.cpp:function QDataStream& QtPrivate::readArrayBasedContainer<QList<QPair<QByteArray, QByteArray> > >(QDataStream&, QList<QPair<QByteArray, QByteArray> >&): error: undefined reference to 'QIODevice::isTransactionStarted() const'
.obj/qftp.o:qftp.cpp:function QFtpDTP::parseDir(QByteArray const&, QString const&, QUrlInfo*) [clone .part.22]: error: undefined reference to 'QString::resize(int, QChar)'
.obj/qftp.o:qftp.cpp:function QFtpPI::startNextCmd() [clone .part.40]: error: undefined reference to 'QString::operator=(QLatin1String)'
.obj/qftp.o:qftp.cpp:function QFtpPI::startNextCmd() [clone .part.40]: error: undefined reference to 'QString::operator=(QLatin1String)'
.obj/qftp.o:qftp.cpp:function QFtpPI::startNextCmd() [clone .part.40]: error: undefined reference to 'QString::operator=(QLatin1String)'
.obj/qftp.o:qftp.cpp:function QFtpPrivate::_q_startNextCommand(): error: undefined reference to 'QString::operator=(QLatin1String)'
.obj/qftp.o:qftp.cpp:function QFtpPI::readyRead() [clone .part.48]: error: undefined reference to 'QString::resize(int, QChar)'
.obj/qftp.o:qftp.cpp:function QFtpPI::readyRead() [clone .part.48]: error: undefined reference to 'QString::resize(int, QChar)'
.obj/qftp.o:qftp.cpp:function QFtpPI::readyRead() [clone .part.48]: error: undefined reference to 'QString::resize(int, QChar)'
.obj/qnetworkdiskcache.o:qnetworkdiskcache.cpp:function QNetworkDiskCache::expire(): error: undefined reference to 'QFileInfo::fileTime(QFileDevice::FileTime) const'
.obj/qnetworkdiskcache.o:qnetworkdiskcache.cpp:function QNetworkDiskCache::expire(): error: undefined reference to 'QFileInfo::fileTime(QFileDevice::FileTime) const'
.obj/qnetworkdiskcache.o:qnetworkdiskcache.cpp:function QNetworkDiskCachePrivate::storeItem(QCacheItem*): error: undefined reference to 'QTemporaryFile::rename(QString const&)'
.obj/qhttpmultipart.o:qhttpmultipart.cpp:function QHttpMultiPartPrivate::QHttpMultiPartPrivate(): error: undefined reference to 'QRandomGenerator64::global()'
.obj/qhttpmultipart.o:qhttpmultipart.cpp:function QHttpMultiPartPrivate::QHttpMultiPartPrivate(): error: undefined reference to 'QRandomGenerator::fillRange(void*, void*)'
.obj/qhttpnetworkconnectionchannel.o:qhttpnetworkconnectionchannel.cpp:function QHttpNetworkConnectionChannel::q_encrypted(): error: undefined reference to 'QMetaObject::invokeMethodImpl(QObject*, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, void*)'
.obj/qhttpnetworkconnectionchannel.o:qhttpnetworkconnectionchannel.cpp:function QHttpNetworkConnectionChannel::sendRequestDelayed(): error: undefined reference to 'QMetaObject::invokeMethodImpl(QObject*, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, void*)'
.obj/qhttpnetworkreply.o:qhttpnetworkreply.cpp:function QHttpNetworkReply::~QHttpNetworkReply(): error: undefined reference to 'z_inflateEnd'
.obj/qhttpnetworkreply.o:qhttpnetworkreply.cpp:function QHttpNetworkReplyPrivate::clearHttpLayerInformation(): error: undefined reference to 'z_inflateEnd'
.obj/qhttpnetworkreply.o:qhttpnetworkreply.cpp:function QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer*, QByteDataBuffer*): error: undefined reference to 'z_inflate'
.obj/qhttpnetworkreply.o:qhttpnetworkreply.cpp:function QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer*, QByteDataBuffer*): error: undefined reference to 'z_inflateEnd'
.obj/qhttpnetworkreply.o:qhttpnetworkreply.cpp:function QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer*, QByteDataBuffer*): error: undefined reference to 'z_inflateInit2'
.obj/qhttpnetworkreply.o:qhttpnetworkreply.cpp:function QHttpNetworkReplyPrivate::initializeInflateStream(): error: undefined reference to 'z_inflateInit2'
.obj/qnetworkreplyhttpimpl.o:qnetworkreplyhttpimpl.cpp:function isSessionNeeded(QUrl const&): error: undefined reference to 'QSysInfo::machineHostName()'
.obj/qnetworkreplyhttpimpl.o:qnetworkreplyhttpimpl.cpp:function QNetworkReplyHttpImplPrivate::q_bufferOutgoingData(): error: undefined reference to 'QRingBuffer::reserve(long long)'
.obj/qnetworkreplyhttpimpl.o:qnetworkreplyhttpimpl.cpp:function QNetworkReplyHttpImplPrivate::q_cacheLoadReadyRead(): error: undefined reference to 'QRingBuffer::append(QByteArray const&)'
.obj/qnetworkreplyhttpimpl.o:qnetworkreplyhttpimpl.cpp:function QNetworkReplyHttpImplPrivate::replyDownloadData(QByteArray): error: undefined reference to 'QRingBuffer::append(QByteArray const&)'
.obj/qnetworkreplyhttpimpl.o:qnetworkreplyhttpimpl.cpp:function QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed(QHttpNetworkRequest&): error: undefined reference to 'QDateTime::toSecsSinceEpoch() const'
.obj/qnetworkreplyhttpimpl.o:qnetworkreplyhttpimpl.cpp:function QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed(QHttpNetworkRequest&): error: undefined reference to 'QDateTime::toSecsSinceEpoch() const'
.obj/qspdyprotocolhandler.o:qspdyprotocolhandler.cpp:function QSpdyProtocolHandler::QSpdyProtocolHandler(QHttpNetworkConnectionChannel*): error: undefined reference to 'z_inflateInit'
.obj/qspdyprotocolhandler.o:qspdyprotocolhandler.cpp:function QSpdyProtocolHandler::QSpdyProtocolHandler(QHttpNetworkConnectionChannel*): error: undefined reference to 'z_deflateInit'
.obj/qspdyprotocolhandler.o:qspdyprotocolhandler.cpp:function QSpdyProtocolHandler::uncompressHeader(QByteArray const&, QByteArray*): error: undefined reference to 'z_inflate'
.obj/qspdyprotocolhandler.o:qspdyprotocolhandler.cpp:function QSpdyProtocolHandler::uncompressHeader(QByteArray const&, QByteArray*): error: undefined reference to 'z_inflateSetDictionary'
.obj/qspdyprotocolhandler.o:qspdyprotocolhandler.cpp:function QSpdyProtocolHandler::~QSpdyProtocolHandler(): error: undefined reference to 'z_deflateEnd'
.obj/qspdyprotocolhandler.o:qspdyprotocolhandler.cpp:function QSpdyProtocolHandler::~QSpdyProtocolHandler(): error: undefined reference to 'z_deflateEnd'
.obj/qspdyprotocolhandler.o:qspdyprotocolhandler.cpp:function QSpdyProtocolHandler::composeHeader(QHttpNetworkRequest const&): error: undefined reference to 'z_deflate'
.obj/qnetworkconfigmanager_p.o:qnetworkconfigmanager_p.cpp:function QNetworkConfigurationManagerPrivate::initialize(): error: undefined reference to 'QDaemonThread::QDaemonThread(QObject*)'
.obj/qauthenticator.o:qauthenticator.cpp:function QAuthenticatorPrivate::QAuthenticatorPrivate(): error: undefined reference to 'QRandomGenerator64::system()'
.obj/qauthenticator.o:qauthenticator.cpp:function QAuthenticatorPrivate::QAuthenticatorPrivate(): error: undefined reference to 'QRandomGenerator::_fillRange(void*, void*)'
.obj/qauthenticator.o:qauthenticator.cpp:function QAuthenticatorPrivate::calculateResponse(QByteArray const&, QByteArray const&): error: undefined reference to 'QDateTime::currentSecsSinceEpoch()'
.obj/qhostinfo.o:qhostinfo.cpp:function QHostInfo::localHostName(): error: undefined reference to 'QSysInfo::machineHostName()'
.obj/qhostinfo.o:qhostinfo.cpp:function QHostInfoRunnable::~QHostInfoRunnable(): error: undefined reference to 'QRunnable::~QRunnable()'
.obj/qhostinfo.o:qhostinfo.cpp:function QHostInfoRunnable::~QHostInfoRunnable(): error: undefined reference to 'QRunnable::~QRunnable()'
.obj/qhostinfo.o:qhostinfo.cpp:function QHostInfoRunnable::~QHostInfoRunnable(): error: undefined reference to 'QRunnable::~QRunnable()'
.obj/qhostinfo.o:qhostinfo.cpp:typeinfo for QHostInfoRunnable: error: undefined reference to 'typeinfo for QRunnable'
.obj/qdnslookup.o:qdnslookup.cpp:function QDnsLookupRunnable::run(): error: undefined reference to 'QRandomGenerator64::global()'
.obj/qdnslookup.o:qdnslookup.cpp:function QDnsLookupRunnable::run(): error: undefined reference to 'QRandomGenerator::_fillRange(void*, void*)'
.obj/qdnslookup.o:qdnslookup.cpp:function QDnsLookupRunnable::run(): error: undefined reference to 'QRandomGenerator64::global()'
.obj/qdnslookup.o:qdnslookup.cpp:function QDnsLookupRunnable::run(): error: undefined reference to 'QRandomGenerator::_fillRange(void*, void*)'
.obj/qnetworkinterface_linux.o:qnetworkinterface_linux.cpp:function QNetworkInterfaceManager::scan(): error: undefined reference to 'QDeadlineTimer::QDeadlineTimer(long long, Qt::TimerType)'
.obj/qnetworkinterface_linux.o:qnetworkinterface_linux.cpp:function QNetworkInterfaceManager::scan(): error: undefined reference to 'QDeadlineTimer::QDeadlineTimer(long long, Qt::TimerType)'
.obj/qnetworkinterface_linux.o:qnetworkinterface_linux.cpp:function QNetworkInterfaceManager::scan(): error: undefined reference to 'QDeadlineTimer::QDeadlineTimer(long long, Qt::TimerType)'
.obj/qnetworkinterface_linux.o:qnetworkinterface_linux.cpp:function QNetworkInterfaceManager::scan(): error: undefined reference to 'QDeadlineTimer::QDeadlineTimer(long long, Qt::TimerType)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::flush(): error: undefined reference to 'QIODevicePrivate::allWriteBuffersEmpty() const'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::disconnectFromHost(): error: undefined reference to 'QIODevicePrivate::allWriteBuffersEmpty() const'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevicePrivate::setReadChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevicePrivate::setWriteChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevicePrivate::setWriteChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevicePrivate::setReadChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevicePrivate::setWriteChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevicePrivate::setReadChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::readFromSocket(): error: undefined reference to 'QRingBuffer::reserve(long long)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::writeData(char const*, long long): error: undefined reference to 'QRingBuffer::append(char const*, long long)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocket::writeData(char const*, long long): error: undefined reference to 'QRingBuffer::append(char const*, long long)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::fetchConnectionParameters(): error: undefined reference to 'QIODevicePrivate::setWriteChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::fetchConnectionParameters(): error: undefined reference to 'QIODevicePrivate::setReadChannelCount(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::writeToSocket(): error: undefined reference to 'QRingBuffer::free(long long)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::emitReadyRead(int): error: undefined reference to 'QIODevice::channelReadyRead(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::emitReadyRead(int): error: undefined reference to 'QIODevice::channelReadyRead(int)'
.obj/qabstractsocket.o:qabstractsocket.cpp:function QAbstractSocketPrivate::emitBytesWritten(long long, int): error: undefined reference to 'QIODevice::channelBytesWritten(int, long long)'
.obj/qsocks5socketengine.o:qsocks5socketengine.cpp:function QSocks5SocketEnginePrivate::_q_emitPendingReadNotification(): error: undefined reference to 'QRingBuffer::clear()'
.obj/qsocks5socketengine.o:qsocks5socketengine.cpp:function QSocks5SocketEnginePrivate::_q_controlSocketError(QAbstractSocket::SocketError): error: undefined reference to 'QRingBuffer::clear()'
.obj/qsocks5socketengine.o:qsocks5socketengine.cpp:function QSocks5SocketEngine::read(char*, long long): error: undefined reference to 'QRingBuffer::read(char*, long long)'
.obj/qhttpsocketengine.o:qhttpsocketengine.cpp:function QHttpSocketEngine::slotSocketReadNotification(): error: undefined reference to 'QIODevice::skip(long long)'
.obj/qnativesocketengine_unix.o:qnativesocketengine_unix.cpp:function QNativeSocketEnginePrivate::nativeSelect(int, bool, bool, bool*, bool*) const: error: undefined reference to 'qt_safe_poll(pollfd*, unsigned long, timespec const*)'
.obj/qlocalsocket_unix.o:qlocalsocket_unix.cpp:function QLocalSocket::waitForConnected(int): error: undefined reference to 'qt_safe_poll(pollfd*, unsigned long, timespec const*)'
.obj/qlocalsocket_unix.o:qlocalsocket_unix.cpp:function QLocalSocketPrivate::skip(long long): error: undefined reference to 'QIODevice::skip(long long)'
.obj/qlocalserver_unix.o:qlocalserver_unix.cpp:function QLocalServerPrivate::waitForNewConnection(int, bool*): error: undefined reference to 'qt_safe_poll(pollfd*, unsigned long, timespec const*)'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocket::writeData(char const*, long long): error: undefined reference to 'QRingBuffer::append(char const*, long long)'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::peek(char*, long long): error: undefined reference to 'QRingBuffer::peek(char*, long long, long long) const'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::peek(long long): error: undefined reference to 'QRingBuffer::peek(char*, long long, long long) const'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::_q_connectedSlot(): error: undefined reference to 'QIODevice::readChannelCount() const'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::_q_connectedSlot(): error: undefined reference to 'QIODevice::writeChannelCount() const'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::init(): error: undefined reference to 'QRingBuffer::clear()'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::init(): error: undefined reference to 'QRingBuffer::clear()'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevice::readChannelCount() const'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlagsQIODevice::OpenModeFlag): error: undefined reference to 'QIODevice::writeChannelCount() const'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocket::qt_static_metacall(QObject*, QMetaObject::Call, int, void**): error: undefined reference to 'QIODevice::channelBytesWritten(int, long long)'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocket::qt_static_metacall(QObject*, QMetaObject::Call, int, void**): error: undefined reference to 'QIODevice::channelReadyRead(int)'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::skip(long long): error: undefined reference to 'QIODevice::skip(long long)'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::_q_channelReadyReadSlot(int): error: undefined reference to 'QIODevice::channelReadyRead(int)'
.obj/qsslsocket.o:qsslsocket.cpp:function QSslSocketPrivate::_q_channelBytesWrittenSlot(int, long long): error: undefined reference to 'QIODevice::channelBytesWritten(int, long long)'
.obj/qsslsocket_openssl_symbols.o:qsslsocket_openssl_symbols.cpp:function q_getTimeFromASN1(asn1_string_st const*): error: undefined reference to 'QDateTime::QDateTime(QDateTime&&)'
.obj/qsslsocket_openssl.o:qsslsocket_openssl.cpp:function QSslSocketBackendPrivate::transmit(): error: undefined reference to 'QIODevice::skip(long long)'
.obj/qsslsocket_openssl.o:qsslsocket_openssl.cpp:function QSslSocketBackendPrivate::transmit(): error: undefined reference to 'QRingBuffer::free(long long)'
.obj/qsslsocket_openssl.o:qsslsocket_openssl.cpp:function QSslSocketBackendPrivate::transmit(): error: undefined reference to 'QIODevice::channelBytesWritten(int, long long)'
.obj/qdtls_openssl.o:qdtls_openssl.cpp:function dtlsopenssl::msgFunctionFailed(char const*): error: undefined reference to 'QString::arg(QLatin1String, int, QChar) const'
.obj/qpassworddigestor.o:qpassworddigestor.cpp:function QPasswordDigestor::deriveKeyPbkdf1(QCryptographicHash::Algorithm, QByteArray const&, QByteArray const&, int, unsigned long long): error: undefined reference to 'QCryptographicHash::hashLength(QCryptographicHash::Algorithm)'
.obj/qpassworddigestor.o:qpassworddigestor.cpp:function QPasswordDigestor::deriveKeyPbkdf1(QCryptographicHash::Algorithm, QByteArray const&, QByteArray const&, int, unsigned long long): error: undefined reference to 'QCryptographicHash::hashLength(QCryptographicHash::Algorithm)'
.obj/qpassworddigestor.o:qpassworddigestor.cpp:function QPasswordDigestor::deriveKeyPbkdf1(QCryptographicHash::Algorithm, QByteArray const&, QByteArray const&, int, unsigned long long): error: undefined reference to 'QCryptographicHash::staticMetaObject'
.obj/qpassworddigestor.o:qpassworddigestor.cpp:function QPasswordDigestor::deriveKeyPbkdf2(QCryptographicHash::Algorithm, QByteArray const&, QByteArray const&, int, unsigned long long): error: undefined reference to 'QCryptographicHash::hashLength(QCryptographicHash::Algorithm)'
.obj/qpassworddigestor.o:qpassworddigestor.cpp:function QPasswordDigestor::deriveKeyPbkdf2(QCryptographicHash::Algorithm, QByteArray const&, QByteArray const&, int, unsigned long long): error: undefined reference to 'QCryptographicHash::staticMetaObject'
.obj/moc_qdnslookup_p.o:moc_qdnslookup_p.cpp:function non-virtual thunk to QDnsLookupRunnable::~QDnsLookupRunnable(): error: undefined reference to 'QRunnable::~QRunnable()'
.obj/moc_qdnslookup_p.o:moc_qdnslookup_p.cpp:typeinfo for QDnsLookupRunnable: error: undefined reference to 'typeinfo for QRunnable'
collect2: error: ld returned 1 exit status
Makefile:588: recipe for target '../../lib/libQt5Network.so.5.12.0' failed
make[3]: *** [../../lib/libQt5Network.so.5.12.0] Error 1
make[3]: Leaving directory '/home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qtbase/src/network'
Makefile:276: recipe for target 'sub-network-make_first' failed
make[2]: *** [sub-network-make_first] Error 2
make[2]: Leaving directory '/home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qtbase/src'
Makefile:48: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/sy/Downloads/qt-everywhere-src-5.12.0/qt-build/qtbase'
Makefile:82: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2 -
Looks like you are using 2 different versions of linaro compiler, they may be incompatible.
What you are getting are linker errors - Qt libraries either cannot be found or are not compatible.
-
@sysy said in hi,all i want to install QT5.12.0 on imx6q , but i build source find some error ,if anyone can help,i'd appriciate!:
rootfs/usr/lib
hi,thanks for you answer
i just used once compiler path I just test the platform support package under the compile path 。i do not kown way . can you gave me any help , thanks for you so much