[Development] Building Qt 5 in release mode with debug symbols

Sergio Martins sergio.martins at kdab.com
Fri Oct 10 11:48:04 CEST 2014


On Friday, October 10, 2014 11:39:33 Milian Wolff wrote:
> Hello all,
> 
> once more I'm preparing a Qt 5 build for profiling purposes and wonder again
> why there is no way to combine -release and -debug in Qt's configure
> script. The only way to get a sane build for profiling Qt code itself that
> I know of is hacking the mkspec and ensuring that -g is added even in
> -release mode.
> 
> Is there any reason for that? Could we improve this situation somehow to
> make it simpler to get a Qt build with optimizations and debug symbols?
> 
> Am I missing the recommended way to get this done?

Hi,

-force-debug-info: Create symbol files for release builds.

Should work no ?


Regards,
-- 
SĂ©rgio Martins | sergio.martins at kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions




More information about the Development mailing list