[Qt-interest] Cross compilation of QT embedded on ARM

Anil H dspinside at gmail.com
Wed Jun 3 14:10:51 CEST 2009


Hi,
I added some more flags as given below while configuring
--embedded=arm -qt-kbd-usb -qt-mouse-linuxtp
Alignment trap doesn't occur in the rebuilt library and application

Thanks and regards
Anil



On Tue, Jun 2, 2009 at 8:04 PM, Anil H <dspinside at gmail.com> wrote:

> Hi ,
>
> Thanks for the info.
> I was able to build the QT library and examples on arm using -platform
> option.
>
> ./configure  *-platform qws/linux-x86-g++* *-xplatform qws/linux-arm-g++*--prefix=/home/anil/qt_4_5_1/qt_install/ --static --shared  -qt-gif
> -qt-libpng -qt-libjpeg -qt-freetype -little-endian -release -no-qt3support
> -no-libtiff -no-libmng -no-nis  -no-cups  -no-iconv -no-pch -no-dbus
> -no-separate-debug-info -no-mmx -no-3dnow -no-sse -no-sse2 -armfpa
> -no-xmlpatterns -no-phonon -no-svg -no-webkit
>
> When I tried to run the example applications like analog clock on arm, It
> executed successfully. But most of the example applications like Image
> viewer gave alignment traps while execution when I moved the mouse on menu
> list which contained "File" "View" and "Help".
>
> ./imageviewer -qws
> Cannot open keyboard: No such file or directory
> Alignment trap: imageviewer (1236) PC=0x40317d60 Instr=0xe1dc50b1
> Address=0x0012
> eab1 FSR 0x013
> Bus error
>
> Why does the alignment trap occur when i move mouse over the menu ?
> How to avoid it ?
>
> Thanks and regards
> Anil
>
>
>
>
>
>
>
> On Mon, Jun 1, 2009 at 3:06 PM, Kurt Yang <jieshuzheng at gmail.com> wrote:
>
>> try the -platform option?
>>
>> On Mon, Jun 1, 2009 at 5:07 PM, Anil H <dspinside at gmail.com> wrote:
>> > Hi,
>> >
>> >
>> > I was cross-compiling Qt embedded 4.5.1 on  a linux PC.
>> >
>> > ./configure -embedded arm -xplatform qws/linux-arm-g++
>> >
>> >
>> >
>> > It compiled qmake and then tried to execute it.
>> >
>> > However since it was cross-compiled for a embedded target(arm) and
>> >
>> > tried to execute it on x86, it failed. How to compile qmake for native
>> > x86-Linux PC
>> >
>> > and rest of the library for target(arm)?
>> >
>> >
>> >
>> > Regards
>> >
>> > Anil
>> >
>> > _______________________________________________
>> > Qt-interest mailing list
>> > Qt-interest at trolltech.com
>> > http://lists.trolltech.com/mailman/listinfo/qt-interest
>> >
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090603/c5c9ce15/attachment.html 


More information about the Qt-interest-old mailing list