.nokia.com/wiki/Building_Qt_for_Embedded_Linux
I’ve successfully done the host build but am now having problems with the target build.
What I have done so far:
Cross-compiled libts with arm-linux-gnueabi-gcc and modified qmake.conf for the linux-arm-gnueabi-g++ mkspec to add the paths to the include and lib directories for this libts build. The following configure command:
./configure -xplatform qws/linux-arm-gnueabi-g++ -embedded arm \ -qt-gfx-linuxfb -qt-gfx-vnc \ -no-largefile -exceptions -no-accessibility -no-qt3support -no-sse2 -qt-zlib -no-gif -no-libtiff \ -qt-libpng -no-libmng -qt-libjpeg -no-openssl -no-nis -no-cups -depths 16 \ -qt-kbd-linuxinput -nomake demos -nomake examples \ -qt-mouse-linuxinput -qt-mouse-tslib \ -confirm-license -silent I execute make and it fails part way through:
arm-linux-gnueabi-g++ -c -include .pch/release-shared-emb-arm/QtCore -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_eva l -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-arm-gnueabi-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 -Iglobal -I.moc/release-shared-emb-arm -I/home/anh/tslib-arm/include -o .obj/release-shared-emb-arm/qsocketnotifier.o kernel/qsocketnotifier.cpp {standard input}: Assembler messages: {standard input}:1710: Error: selected processor does not support Thumb mode `swp r6,r4,[r3]'
a little further down
make[1]: *** [.obj/release-shared-emb-arm/qobject.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/anh/qt-everywhere-commercial-src-4.7.3/src/corelib' make: *** [sub-corelib-make_default-ordered] Error 2
How can I resolve this I feel as though this bug is relevant to my problem: http://bugreports.qt.nokia.com/browse/QTBUG-15911 page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs, but I don’t understand enough to be sure or know if I can use a workaround. Any help would be appreciated!
Thanks
4 replies July 21, 2011 koahnig Mad Scientist 1151 posts
link Welcome to this forum
You probably need to check the source code file “kernel/qsocketnotifier.cpp” for some preprocessor if around the point error. This might give some hints, what is going wrong. July 22, 2011 anht Lab Rat 3 posts link Thanks koahnig.
I had a look at this file and I didn’t see anything that seemed useful to me.
I think my problem relates to the identified issue here: https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/490371 https://bugreports.qt.nokia.com//browse/QTBUG-16402 and also https://bugs.launchpad.net/ubuntu/+source/gcc-4.4-armel-cross/+bug/683832
I tried the -marm workaround suggested in that last link by adding the following lines to make qmake.conf
QMAKE_CFLAGS = -marm QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
which now makes it fail with the following errors:
image/qimage_neon.cpp: In function ‘void qt_convert_rgb888_to_rgb32_neon(quint32*, const uchar*, int)’: image/qimage_neon.cpp:47:18: error: ‘uint8x8_t’ does not n |