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

Sean Harmer sean.harmer at kdab.com
Sat Oct 11 10:34:40 CEST 2014


On 10/10/2014 10:49, Milian Wolff wrote:
> On Friday 10 October 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?
> Ugh, apparently I'm out of the loop here. While looking at the mkspecs, I
> noticed the (to me) new *_RELEASE_WITH_DEBUGINFO qmake variables. That lead me
> in turn to try out the (still mac-only) -debug-and-release once more which
> prints the somewhat cryptic message that its not required anymore thanks to
> separate debug information. Reading the output of configure -help then finally
> gave me -force-debug-info, so I'm now trying this out.
>
> ./configure ... -release -force-debug-info
>
> Is that the recommended way to get this done?

Yes :)

> Thanks, sorry for the noise (probably)

Don't worry, there are no stupid questions.

Sean

-- 
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
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