[Qt-interest] How to cross compiled for Qt-embedded-arm target?

Arun arun_kumar at denso-diam.com
Fri Jan 16 18:36:18 CET 2009


Abdelrazak Younes <younes.abdel <at> gmail.com> writes:

> 
> Hello,
> 
> I am trying to cross compile Qt with Montavista-4.0.1, is there any 
> recipe or documentation on the net? My Google searches didn't get me 
> very far and Qt documentation does not talk about Qt-embedded. I am 
> using latest git from git://labs.trolltech.com/qt/snapshot/4.5, is that 
> the correct repository for Qt-embedded?
> 
> Thanks in advance for any help,
> Abdel
> 

Look at http://doc.trolltech.com/4.5/qt-embedded-crosscompiling.html

In general to cross-compile qt you need to have crosscompiler toolchain
on your system. Change the paths in mkspecs/qws/linux-arm-g++/qmake.conf 
to your crosscompiler toolchain path.

Provide the relevant options at configure.
Ex: ./configure -embedded arm-xscale -big-endian 
    -qvfb -depths 8,16,24,32

If you type ./configure --help you will get more info
to know what packages you need to install what to eliminate.

Also you can eliminate features by creating 
src/corelib/global/qconfig-local.h

Use qconfig-local at configure.
Ex: ./configure -embedded arm-xscale -big-endian 
    -qconfig local -qvfb -depths 8,16,24,32




More information about the Qt-interest-old mailing list