[Qt-interest] How to avoid a bug related to keyword "slots" when Cocoa is used

Roger Bramon Feixas rogerbramon at gmail.com
Fri Jul 30 14:52:48 CEST 2010


Hi Thiago,

I added the CONFIG line to the project's .pro file not to the subdirs
project.

Thanks,

Roger

On Fri, Jul 30, 2010 at 2:46 PM, Thiago Macieira <thiago at kde.org> wrote:

> On Friday 30. July 2010 09.30.03 Roger Bramon Feixas wrote:
> > Hi,
> >
> > I'm building my application and I'm experiencing the same problem
> reported
> > here:
> >
> http://lists.trolltech.com/pipermail/qt-interest/2010-February/018576.html
> >
> > Th error is:
> > /System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
> > error: expected unqualified-id before ‘[’ token
> >
> > I'm only using the Cocoa framework in a subdir. Therefore, I tried to
> > add the line: CONFIG += no_keywords in the .pro file of this subdir only.
> > However, I'm getting a build error when I'm building with more than one
> > core because "no_keywords" is propagated to all subdirs. I took this
> > example to define the subdirs in the .pro file of the parent dir:
> >
> http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake#SUBDIRS_pro
> > jects
> >
> > Is there any way to avoid the propagation?
>
> qmake projects are either subdir or they build something. If you applied
> the
> no_keywords in a subdirs project, it's because you want it to apply to
> everything (actually, I didn't know it propagated).
>
> If you want it to apply to one specific project, add the CONFIG line to
> that
> project's .pro file.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> 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/20100730/c83c1738/attachment.html 


More information about the Qt-interest-old mailing list