[Qt-embedded-interest] QT/x11 for ARM

Donald Carr donald.carr at nokia.com
Thu Oct 29 17:33:44 CET 2009


Good morning,

On Thu, Oct 29, 2009 at 11:12:36AM +0100, ext Анастасия Жирнова wrote:
> I'm trying to compile qt/x11 for ARM.
> I use ./configure -embedded arm xplatform qws/linux-arm-g++ -nomake examples -nomake demos -nomake tutorials -prefix /usr/local/Trolltech_X11.
> The configuration is succeeded, but the build fails with an error:
> ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: In copy constructor  QFutureInterfaceBase::QFutureInterfaceBase(const QFutureInterfaceBase&)':
> ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:116: error: impossible constraint in  asm'
> make[1]: *** [.obj/release-shared/qfutureinterface.o] Ошибка 1
> make[1]: Выход из каталога `/home/nastya/nastya/WORK/qt-x11-opensource-src-4.4.3/src/corelib'

The problem here is that you are cross compiling Qt/X11 with the -embedded
flag which tries to force the use of QWS, leading to a QWS/X11 build
chimera. You should be using the -arch flag rather than the -embedded flag
in these circumstances.

> Do you have any suggestions?? Is it possible to cross-compile qt/x11-opensource for ARM architecture&??

Yes.

> P.S. I'm using cross-instruments for arm from Openembedded (angstrom-linux-gnueabi-gcc etc.)
 
> My apps compiled with qt-embedded work fine on ARM9-target but only with framebuffer. GUI QT apps have a conflict with x11-server (if I use a filesystem with x-server from Angstrom openembedded)

I blogged specifically about this topic on Qt labs, and it covers the blow
by blow cross compilation of Qt/X11 for an Angstrom target. (I was
deploying to a Beagle board.)

http://labs.trolltech.com/blogs/2009/09/10/cross-compiling-qtx11/

Yours sincerely,
Donald Carr



More information about the Qt-embedded-interest mailing list