[Interest] Unable to build with CONFIG+=debug due to missing libraries
Koehne Kai
Kai.Koehne at theqtcompany.com
Mon Mar 2 11:38:37 CET 2015
> -----Original Message-----
> From: interest-bounces+kai.koehne=theqtcompany.com at qt-project.org
> [...]
> Anyway, as you noticed already patching the CXX flags is the way to go
> (maybe you could patch the mkspecs to set only -g for the debug option, but
> its been a really long time since I looked closer at qmake buildsystems). Or
> consider getting involved in qmake development and see if you can improve
> its logic to give developers more freedom about this.
If you just want debug symbols, you can do
qmake -r CONFIG+=force_debug_info
in your program. This will still be a release build in terms of compiler flags, MSVC runtime, .... but you'll get e.g. nice stack frames when segfaulting etc.
(If you want to have also debug symbols for Qt, you need to use -force-debug-info configure argument. This will automatically set force_debug_info when compiling Qt modules.)
Kai
More information about the Interest
mailing list