Unsolved Building error while cross compiling Qt 5.9.6 for embedded platform
-
Hi,
I am cross-compiling Qt 5.9.6 for embedded platform. I have provided confiigure options as below:
../qt-everywhere-opensource-src-5.9.6/configure -prefix $LINUX_PLATFORM_OPENSOURCE_BUILD_TARGET_DIR/qt5.9 -xplatform linux-arm-gnueabi-g++ -release -opensource -confirm-license -shared -accessibility -strip -verbose -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-mips_dsp -no-mips_dspr2 -no-mtdev -no-journald -no-harfbuzz -no-glib -no-optimized-qmake -no-cups -no-icu -no-pch -no-dbus -no-xcb -no-kms -no-system-proxies -recheck-all -system-libpng -system-libjpeg -no-openssl -qt-pcre -iconv -evdev -qml-debug -system-zlib -eglfs -linuxfb -eglfs -qpa eglfs -opengl es2 -no-feature-network -no-feature-sql -no-feature-xml -pkg-config -qml-debug -no-feature-opengles31 -I $KD/SDK/output/openlibs/target/openlibs/include -L /$KD/SDK/output/openlibs/target/openlibs/lib -make libs -make tools -no-feature-gui -nomake tests -D QT_QML_NO_DEBUGGER
It is successful.
But it is failing on compilation with some missing Qt related definitions. Below is the logs:
arm-none-linux-gnueabi-g++ -Wl,--no-undefined -Wl,--version-script,QtTest.version -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-rpath,/home/dsp/dvf2200/SDK/output/openlibs/build/openlibs/lib -Wl,-z,origin -Wl,-rpath,$ORIGIN -shared -Wl,-soname,libQt5Test.so.5 -o libQt5Test.so.5.9.6 .obj/qtestcase.o .obj/qtestlog.o .obj/qtesttable.o .obj/qtestdata.o .obj/qtestresult.o .obj/qasciikey.o .obj/qplaintestlogger.o .obj/qxmltestlogger.o .obj/qsignaldumper.o .obj/qabstracttestlogger.o .obj/qbenchmark.o .obj/qbenchmarkmeasurement.o .obj/qbenchmarkvalgrind.o .obj/qbenchmarkevent.o .obj/qbenchmarkperfevents.o .obj/qbenchmarkmetric.o .obj/qcsvbenchmarklogger.o .obj/qteamcitylogger.o .obj/qtestelement.o .obj/qtestelementattribute.o .obj/qtestmouse.o .obj/qtestxunitstreamer.o .obj/qxunittestlogger.o .obj/qtestblacklist.o .obj/moc_qtesteventloop.o -L/home/dsp/dvf2200/SDK/output/openlibs/build/openlibs/lib -L/home/dsp/dvf2200/SDK/output/openlibs/target/openlibs/lib -L/home/dsp/dvf2200/SDK/qt/build_5.9/qtbase/lib -lQt5Core -lpthread
.obj/qtestblacklist.o:qtestblacklist.cpp:function QTestPrivate::parseBlackList(): error: undefined reference to 'QByteArray::simplified_helper(QByteArray const&)'
.obj/qtestblacklist.o:qtestblacklist.cpp:function QTestPrivate::parseBlackList(): error: undefined reference to 'QSysInfo::productType()'
.obj/qtestblacklist.o:qtestblacklist.cpp:function QTestPrivate::parseBlackList(): error: undefined reference to 'QString::toLower_helper(QString&)'
.obj/qtestblacklist.o:qtestblacklist.cpp:function QTestPrivate::parseBlackList(): error: undefined reference to 'QSysInfo::productVersion()'
.obj/qtestblacklist.o:qtestblacklist.cpp:function QTestPrivate::parseBlackList(): error: undefined reference to 'QString::toLower_helper(QString&)'
.obj/qtestcase.o:qtestcase.cpp:function stackTrace(): error: undefined reference to 'qEnvironmentVariableIntValue(char const*, bool*)'
.obj/qtestcase.o:qtestcase.cpp:function QTest::qFindTestData(QString const&, char const*, int, char const*): error: undefined reference to 'QString::toLower_helper(QString&)'
.obj/qtestcase.o:qtestcase.cpp:function QTest::TestMethods::invokeTestOnData(int) const: error: undefined reference to 'QString::operator=(QLatin1String)'
.obj/qtestcase.o:qtestcase.cpp:function QTest::TestMethods::invokeTest(int, char const, QTest::WatchDog) const: error: undefined reference to 'qEnvironmentVariableIntValue(char const*, bool*)'
.obj/qtestcase.o:qtestcase.cpp:function _GLOBAL__sub_I_qtestcase.cpp: error: undefined reference to 'qEnvironmentVariableIntValue(char const*, bool*)'
.obj/qtestlog.o:qtestlog.cpp:function QTest::messageHandler(QtMsgType, QMessageLogContext const&, QString const&): error: undefined reference to 'qFormatLogMessage(QtMsgType, QMessageLogContext const&, QString const&)'
.obj/qteamcitylogger.o:qteamcitylogger.cpp:function QTeamCityLogger::tcEscapedString(QString const&) const: error: undefined reference to 'QString::simplified_helper(QString&)'Can you please review and advise?
Thanks,
KuGo