[Qt-creator] Conditional define not working? Debug:DEFINES+=DEBUG

fungos fungos at gmail.com
Sat May 2 02:00:37 CEST 2009


Sorry about the delay. I tested it and yes, .pro files aren't "portable" :)

debug|release only works on linux.
Debug|Release only works on windows.

Where do I fill a bug report on qmake?

On Thu, Apr 30, 2009 at 6:03 PM, fungos <fungos at gmail.com> wrote:
> Glad to help,
> I hope someone take a look at this issue, this is very frustrating
> when we are learning. :S
>
> ps: I will test on Kubuntu 9.04.
>
> On Thu, Apr 30, 2009 at 4:57 PM, Ed Sutton <ESutton at fescorp.com> wrote:
>>  Thank you very much for solving my problem!
>>
>>> In another post I wrote about this issue. This can be a qmake bug, I
>>> really don't know. But in Windows (only tried there) it will not work
>>> if it is "debug" or "release". It will work *only* with "Debug" and
>>> "Release". I will test it in Linux as soon as possible.
>>
>> Including this in the PRO file works: "debug:DEFINES+=DEBUG".
>>
>> This does not: "Debug:DEFINES+=DEBUG"
>>
>> I am using Red Hat Enterprise Linux 5.2.  But I was pretty sure that "Debug:" had worked for me on another RHEL machine - curious.
>>
>> Thanks again for you time.
>>
>> -Ed
>>
>>> >> Debug:DEFINES+=DEBUG
>>> >>
>>> >> Is the above the correct syntax to conditionally define "DEBUG" when
>>> >> compiling a QT Creator Debug project?
>>> >
>>> > I think the canonical way is to use
>>> >
>>> >   CONFIG(debug, debug|release)
>>> >
>>> > as "condition".
>>> >
>>> > Andre'
>>> > _______________________________________________
>>> > Qt-creator mailing list
>>> > Qt-creator at trolltech.com
>>> > http://lists.trolltech.com/mailman/listinfo/qt-creator
>>> >
>>>
>>> --
>>> Animal Liberation Front
>>> http://www.animal-liberation.com/
>>>
>>> _______________________________________________
>>> Qt-creator mailing list
>>> Qt-creator at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
>
>
> --
> Animal Liberation Front
> http://www.animal-liberation.com/
>



-- 
Animal Liberation Front
http://www.animal-liberation.com/




More information about the Qt-creator-old mailing list