[Interest] Cross-compiling Qt-4.8

Thiago Macieira thiago.macieira at intel.com
Wed Jul 11 22:32:36 CEST 2012


On quarta-feira, 11 de julho de 2012 20.55.38, Christian Gagneraud wrote:
> Hi all,
> 
> I'm trying to re-add Qt to OpenWRT (it had basic support for 4.7.0
> pre-release but have then been removed).
> 
> For the moment, I would like to focus on QtCore, QtDBus and QtNetwork.
> 
> Here is the spec file i'm using: http://pastebin.com/6p6tXg15
> 
> But so far, the build fails on an atomic related error:
> http://pastebin.com/LBLtAqiE
> 
> Could anyone help me to understand this error and fix it?

Error 1: it's missing a const or const_cast. Add it. Upgrading to 4.8 is also 
recommended since those issues might have been fixed there.

Error 2: you forgot to pass an -arch flag to configure to let it know what 
architecture you're compiling to. You probably want one of:
	-arch arm
	-arch armv6
	-arch mips

The armv6 option is not necessary in 4.8: it detects ARMv6 and v7 
automatically. And the entire -arch option is not necessary in Qt 5.0.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120711/f234866c/attachment.sig>


More information about the Interest mailing list