[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 17:41:51 CEST 2010


Hi,

My application is organized like this:

src -> TEMPLATE = subdirs
|_ core
|_ inputoutput
|_ reporter -> I'm using Cocoa Framework, here. I added CONFIG +=
no_keywords, here.
|_ ...

Although, the CONFIG line is in reporter.pro file it's also applied to the
other subdir's. When I said it's propagated I wanted to say it's also
applied to other subdir's.

I hope I clarified it.

Roger


On Fri, Jul 30, 2010 at 2:52 PM, Roger Bramon Feixas
<rogerbramon at gmail.com>wrote:

> 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/e39a2ed1/attachment.html 


More information about the Qt-interest-old mailing list