[Qt-creator] Error running the application "Failed to startprogram. Path or permissions wrong?"

Eike Ziller eike.ziller at nokia.com
Tue Feb 10 09:11:20 CET 2009


On Feb 9, 2009, at 4:57 PM, ext Gilles Valette wrote:

> Message de Eike Ziller eike.ziller at nokia.com:
>
>> Hm, I don't find any scopes "debug", "Debug", "release" or "Release"
>> in qmake's documentation.
>> The documentation talks about CONFIG+=release (and CONFIG+=debug),  
>> but
>> that does *not* define a scope that could be used like
>> "release:TARGET=something" (neither lowercase nor uppercase).
>
> Hi,
> If I look at the "Checking for More than One Condition" part in the  
> qmake
> Tutorial, I
> find "This requires using two nested scopes; just create one scope,  
> then
> create the other
> inside it. Put the settings to be processed inside the last scope,  
> like
> this:
> win32 {
>     debug {
>         CONFIG += console
>     }
> }"
>
> Thus I think that here debug is considered as a scope. Am I wrong ?

Hu, interesting. So it actually does define a scope. Thanks for being  
persistent. Interesting that it's not really documented, but actually  
I'm not surprised :).

Playing around with it though, I notice that both the 'debug' and  
'release' scopes are valid for me,
but no 'Debug' or 'Release' scope:

TEMPLATE=app
debug {
     warning("debug")
}
release {
     warning("release")
}
Debug {
     warning("Debug")
}
Release {
     warning("Release")
}

'debug' and 'release' are both defined in $QTDIR/mkspecs/default/ 
qmake.conf and $QTDIR/mkspecs/qconfig.pri (these two files are  
automatically included by qmake for your projects).

The CONFIG(debug, debug|release) "function" finds out which of 'debug'  
and 'release' appears *last* in the list of entries in CONFIG.

-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.ziller at nokia.com







More information about the Qt-creator-old mailing list