Re: qmake and debug output
Hmm... but debug output is disabled in release build... Could you show your complete project file?
1 Attachment(s)
Re: qmake and debug output
if I don't explicitly define it, I see the -DQT_NO_DEBUG directive, but not the QT_NO_DEBUG_OUTPUT one. problem with the explicit definition is that it also applies for debug build then (though I tried to make it conditional).
I'm using Qt 4.1.0 open source edition with mingw32
Re: qmake and debug output
on top of your project file, try add these lines:
CONFIG -= release
CONFIG += debug
.....
Re: qmake and debug output
okay, this helps... but this would mean I need 2 project files, one for release and one for debug, right? defeats a bit the existance of conditional statements imo..? ;)
I have recently upgraded from qt 4.1.0 to 4.1.4 and still have the same problem, weird..
I'm on windows
Re: qmake and debug output
Quote:
Originally Posted by
mattie
okay, this helps... but this would mean I need 2 project files, one for release and one for debug, right?
Wrong. You can always pass "CONFIG+=debug" (or other) as a commandline parameter to qmake, you don't need to change the project file.
Re: qmake and debug output
Quote:
Originally Posted by
wysota
Wrong. You can always pass "CONFIG+=debug" (or other) as a commandline parameter to qmake, you don't need to change the project file.
Wrong way...
use qmake's "-config" switch instead if you really want to do it that way...
If you want to use debug_and_release then here is the way to go :
Code:
CONFIG(debug, debug|release) {
#debug specific code here
} else {
#release specific code here
}
And everything will be allright... :)
Re: qmake and debug output
thanks, this did the trick
though I still have the feeling this is probably default behavior in a standard install, so it makes me wonder whether something is wrong with my qt install. But anyhow, it's really a joy now to make release AND debug builds with proper output =)