[Development] Qt5 Beta cross compiling problem

Thiago Macieira thiago.macieira at intel.com
Fri Sep 28 13:30:34 CEST 2012


On sexta-feira, 28 de setembro de 2012 11.16.42, Thomas Senyk wrote:
> > No, it shouldn't. It should be linux-g++-imx6. There are several sections
> > of the .pro files that test for "<os>-<compiler>-*", e.g. in simd.prf:
> > 
> > *-g++*|linux-icc*|*-clang*|*-qcc* {
> 
> A good to know! Thanks.
> 
> But this is not followed strictly :)

I can't find any "linux-g++*" in our source code, which is the most likely one 
to cause problems (cross-compilation to embedded devices). That means you've 
just got away with it, for the time being. It might break at any time.

> Most of the wince mkspecs have there architecture between <os> and
> <compiler> (where all other have it at the end (e.g. linux-g++-64
> 
> And similar to that, all(!) device spec's are like:
> linux-[arch-]<board/chip>-g++

Those are new things and, clearly, all wrong.

It's linux-g++-<complement>. I reserve the right to unintentionally break any 
mkspec not following that rule. Therefore, please rename them all at the 
earliest opportunity.

That said, one of Ossi's recent changes was to have the compiler name in a 
different variable, so we avoid this problem completely. Depending on the 
mkspec was fragile.

-- 
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/development/attachments/20120928/a13615a2/attachment.sig>


More information about the Development mailing list