Compilling qt-everywhere fails

Started by zdenekrejci, February 25, 2018, 07:41:23 PM

Previous topic - Next topic

zdenekrejci

Hi to all. I am trying to get working cross platform programming for A13 ARM from olimex.
I have searched already here but did not find a way to make it work.

I have installed Qt Creator 3.5.1 and also installed cross compillers arm-linux-gnueabi and arm-linux-gnueabihf.
Then i did try one million times to compile qt-everywhere-opensource ,,,

qt-embedded-linux-opensource-src-4.5.3.tar.gz
qt-everywhere-opensource-src-4.6.2.tar.gz
qt-everywhere-opensource-src-4.7.3.tar.gz
qt-everywhere-opensource-src-4.7.4.tar.gz
qt-everywhere-opensource-src-5.7.0.tar.gz
qt-everywhere-opensource-src-5.8.0.tar.gz

with ./configure -embedded arm -prefix /usr/local/qt -little-endian -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -xplatform qws/linux-arm-g++ -nomake tools -nomake examples -no-webkit -opensource -confirm-license

but always get output from make command

.....
arm-linux-gnueabihf-g++ -mcpu=cortex-a8 -mtune=cortex-a8 -O0 -mfpu=neon -lrt -c -fno-exceptions -D_REENTRANT -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/moc_qnamespace.o .moc/release-shared-emb-arm/moc_qnamespace.cpp
arm-linux-gnueabihf-g++ -mcpu=cortex-a8 -mtune=cortex-a8 -O0 -mfpu=neon -lrt -c -fno-exceptions -D_REENTRANT -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/moc_qthread.o .moc/release-shared-emb-arm/moc_qthread.cpp
/tmp/ccMg97nX.s: Assembler messages:
/tmp/ccMg97nX.s:18059: Error: selected processor does not support `swp r3,r2,[r1]' in Thumb mode
Makefile:17777: recipe for target '.obj/release-shared-emb-arm/qobject.o' failed
make[1]: *** [.obj/release-shared-emb-arm/qobject.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/root/qt-everywhere-opensource-src-4.6.2/src/corelib'


and also was trying to changing and combining commands but no luck. Iam not linux professional but just trying by manuals and tutorials.

can someone help? please  :)

Melange

Quote/tmp/ccMg97nX.s:18059: Error: selected processor does not support `swp r3,r2,[r1]' in Thumb mode

This means that your selected soc architecture (-mcpu=cortex-a8) is not supported, you'll need to try a more recent version of Qt.

I recommend you try Qt 5.9.4, I used it recently with success in this cross-build script for the Raspberry Pi:

https://github.com/chschnell/build-qt5-rpi

But note that it's for the Pi, I do not believe it works for the A13 without serious modifications. Also there might be a RAM problem with Qt, the A13 has only 512M.