Before to open a case to Nokia... Thumb error.



  • Hi,

    I have a problem with the final make of the Qt library for embedded platforms actually unsolved and without documentation. I hope that someone can give me and advice.
    i have already posted this in the thread "Qt for embedded platforms on LPC3250 - Thumb mode error on make":Qt for embedded platforms on LPC3250 - Thumb mode error on make
    The following lines reports the description of the problem. If someone has ideas be welcome!

    Many thanks. Enrico

    ------------------ Thumb error: problem description

    Hi to all,

    After advices and good support from the community as in the following links history,

    "Installing Qt framework on embedded Linux":http://developer.qt.nokia.com/forums/viewthread/5523
    and
    "Qt on embedded platforms and “QT for embedded linux”":http://developer.qt.nokia.com/forums/viewthread/4340/

    Thanks to the precious advices of ZapB I setup correctly the working environment with the gnu-gcc toolchain working fine. To be sure, due to some minor changes like the compiler folder and come compiler names that does not match exactly with the original .../mkspecs/qws/linux-arm-gnueabi-g++ was recreated defining a customized copy with the name ubuntu-linux-arm-gnueabi-g++

    The hardware platform is an arm cpu that has already the linux on board working without problems. The toolchain used for the linux kernel and file system build was configured by myself using the Ltib toolchain and the cpu is LPC3250 from NXP. The hardware manufacturers told me that it works in little-endian mode.

    At this point I have launched the ./configure as follows:

    @./configure -prefix /home/enrico/qt-ea3250 -prefix-install -embedded armv7 -xplatform qws/linux-ubuntu-arm-gnueabi-g++ -qt-gfx-linuxfb -qt-gfx-vnc -no-largefile -no-accessibility -no-qt3support -no-sse2 -qt-libpng -qt-libjpeg -no-cups -no-libtiff -qt-zlib@

    The compilation goes ahead without any error and all seems working fine. Then, I launch make
    Make starts linking all the objects and after some minute I obtain the following dramatic message:

    @{standard input}: Assembler messages:
    {standard input}:2467: Error: selected processor does not support Thumb mode swp r6,r4,[r3]' make[1]: *** [.obj/release-shared-emb-arm/qobject.o] Error 1 make[1]: Leaving directory/home/enrico/qt-everywhere-opensource-src-4.7.3/src/corelib'@

    The strangeness is that the Thumb mode as I know is a normal feature of Arm processors not a special characteristic of this CPU.

    At this point the make process stop and I have not any idea of what should be done.





  • ZapB You are great!!!

    (now I read the link :) )



  • I checked the links above and regardles the last (where the solution seems not to simple to manage) I read that it is a pbolem of Qt: Known issue. Thumb builds on Linux have never been supported.

    Do you think that recompliling the libraries on windows 7 or mac (doubt on Mac because it is linux too) maybe a workaround to this problem or the problem is when Qt compiles on every host Versus a linux build for armV7 ?

    As I have a complete scenario I go ahead to solve this problem.

    Thank you



  • I would start off by trying to build the latest Qt 4.8 from gitorious and see if you can apply any of the mentioned patches to get it to work. That should get you close if not quite all of the way there. Good luck.



  • Why 4.8 ? I hava not yet tested this version, some advice to choice linux or windows ? I am using in any case an isolated virtual machine to be sure that the environment is correctly set and dedicated.



  • I say 4.8 because some of the issues (the configure checks to differentiate between arm5/6/7) appear to be fixed there already.

    As for Windows vs Linux. Try whatever you have setup at the moment I guess.



  • Ok.

    Thank you, hope to post good news asap :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.