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

Eike Ziller eike.ziller at nokia.com
Mon Feb 9 14:41:14 CET 2009


On Feb 8, 2009, at 3:31 PM, ext Gilles Valette wrote:

> Message de Paulo Jnkml <paulo.jnkml at gmail.com>:
>
>> If I use debug or release:
>> debug {
>> //this is ignored
>> TARGET = debug
>> }
>> release {
>> //ignored
>> TARGET = release
>> }
>>
>> Debug {
>> //works =)
>> TARGET = Debug
>> }
>>
>> Release {
>> //works =)
>> TARGET = Release
>> }
>>
>
> I confirm this weird behaviour ! I get correct target names with :
> Debug:NAME = debug
> Release:NAME = release
> TARGET = $$NAME
> and not with 'd'ebug and 'r'elease, even if in the qmake help I find
> debug / release and not Debug / Release.

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).

> I also get the correct target names if I use:
> CONFIG(debug, debug|release) {
> NAME = debug }
> else {
> NAME = release }
> TARGET = $$NAME

Yes,

CONFIG(debug, debug|release) {
TARGET = something_debug
} else {
TARGET = something_release
}

is what you're supposed to do, as far as I see from qmake's  
documentation
<http://doc.trolltech.com/4.4-snapshot/qmake-common-projects.html#building-and-installing-in-debug-and-release-modes 
 >


++ Eike

>> If I don't give the every target the same name as the project, it  
>> wont run...
>
> Same result for me (from QtCreator, the program is launched correctly
> from the command line). The OS is Windows XP.
>
> Regards.
>
> Gilles
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

-- 
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