Bug 67390

Summary: -DNO_DEBUG despite debug configuration
Product: [Applications] kdevelop Reporter: Sven Schmidt <sschmidt>
Component: Build tools: QMakeAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 3.0.0b1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sven Schmidt 2003-11-06 11:21:24 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    SuSE RPMs
Compiler:          gcc (GCC) 3.3 20030226 (prerelease) (SuSE Linux) 
OS:          Linux

Hi!

Despite I chosed the debug configuration in the QMake-Manager, -DNO_DEBUG occurs in the compiler flags.


Sven Schmidt
Comment 1 Jens Dagerbo 2003-11-06 12:48:46 UTC
Somewhat hesistant after my last confused venture into qmake land, I'd say he's right.

This is what I get in debug and release config:

Debug:
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_NO_DEBUG 

Release:
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED 

In other words, the same -D flags for both settings (just a different order). I can debug the project fine in KDevelop though, so I don't know if the flag matters much..

This was reproduced with a simple "qmake application" project from the KDevelop template.
Comment 2 Amilcar do Carmo Lucas 2003-11-06 13:28:00 UTC
Wich KDevelop version????????????????????????????????????????
WHY DO PEOPLE ALWAYS FORGET IT!!!!
Comment 3 Caleb Tennis 2003-11-06 14:12:43 UTC
Note that for a non-kdevelop project, the -DQT_NO_DEBUG does not show up on my machine.

It's either getting defined somewhere in the .pro file or perhaps getting picked up from the QMAKESPEC.
Comment 4 Alexander Dymo 2003-11-07 21:43:23 UTC
-DQT_NO_DEBUG is not related to debugging your applications. It disables some internal warnings inside Qt library.