Problems using Qt Creator for cross-compiling for ARM



  • Hello!

    I 'm having some problems to use the Qt Creator IDE to cross-compile my application for ARM.

    I've already successfully build and installed three different Qt versions:

    1. X11
    2. X11 with QVFB
    3. Embedded for ARM (./configure -embedded arm -xplatform qws/linux-mxc-no-3D-g++ -release -prefix /usr/local/Trolltech/Qt-target-version -qt-gfx-linuxfb -qt-kbd-tty -little-endian -host-little-endian)

    The spec file linux-mxc-no-3D-g++/qmake.conf has the following content:
    @include(../../common/g++.conf)
    include(../../common/linux.conf)
    include(../../common/qws.conf)
    QMAKE_CC = arm-none-linux-gnueabi-gcc
    QMAKE_CXX = arm-none-linux-gnueabi-g++
    QMAKE_LINK = arm-none-linux-gnueabi-g++
    QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
    QMAKE_AR = arm-none-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
    QMAKE_STRIP = arm-none-linux-gnueabi-strip
    load(qt_config)@

    The versions are located on my host machine in:
    /usr/local/Trolltech/Qt-4.7.4-i386-X11
    /usr/local/Trolltech/Qt-4.7.4-i386-QVFB
    /usr/local/Trolltech/Qt-target-version

    I started the Qt creator and added my version under Tools --> Options --> Qt4. The X11 and QVFB versions work perfectly, so I could compile and start the application using the virtual framebuffer or not.
    If I add the path to qmake of my embedded version (/usr/local/Trolltech/Qt-target-version/bin/qmake) a red warning sign is shown directly next to my added Qt version indication "no tool chain can produce code for this Qt version".
    So I setup the toolchain specified in linux-mxc-no-3D-g++/qmake.conf under Tools --> Options --> Tool Chains --> Add --> GCCE using /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-g++

    After that the red warning sign changed to a yellow warning sign.

    There is no further information on that warning. Can I irgnore that warning?

    If I execute the compiled application on the target it seems still to work, but I have to notice, that the appearance slightly differ between X11 and embedded version? For example the font size is different and the animations are not identical, even not identical of the same animations on the target board itself.

    Regards,
    Rooney


  • Moderators

    GCCE is a GCC-based compiler for Symbian. You should set up a normal Gcc-based tool chain.

    But since it does build everything should be fine: Apart from the mkspec (in some cases) and the output parsing the tool chain setting does not influence anything:-)

    That fonts differ can happen, they depend a lot on the dpi of the device (the real numbers and those used to calculate the font sizes, they often do not match), the available fonts, etc.

    It is hard to say whether the animations are OK or not based on the little information you provide.



  • Thanks for that.

    I changed the font size so it fits for my embedded device.

    The animation is still strange, maybe the used controller is to slow. But if I compile my application a warning "Project MESSAGE: Warning: unknown QT: animation" is shown in the compile output of the Qt creator. But it is the same with the X11 version, so this can't be the problem either.

    However, I will do some further research on that, it is not that critical.



  • which is recommend cross-compiler? mingw, buildroot or openembedded?


Log in to reply
 

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