[Interest] Qt 5 RC 2 problems under OS X

john.clements at axograph.com john.clements at axograph.com
Mon Dec 17 04:20:33 CET 2012


On 2012-12-15 09:54, Thiago Macieira wrote:
> On sábado, 15 de dezembro de 2012 04.51.52, 
> john.clements at axograph.com wrote:
>> Is anyone working with Mac OS X / XCode? I'd like to contribute to 
>> the
>> Qt 5 project but can't work out how to configure and build 
>> qt-everywhere
>> under OS X so that the debugger can step into qt source and search 
>> for
>> the bugs I've encountered (see below). The default ./configuration 
>> does
>> not permit the XCode debugger to step into qt source after building 
>> qt
>> from scratch with default configuration (frameworks).
>
> Note that the default configuration is to build debug-and-release. 
> That means
> you need to set DYLD_IMAGE_SUFFIX to "_debug" so that the dynamic 
> linker will
> load the debug libraries.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

Thanks that helped, but did not immediately fix the problem.
First I tried setting DYLD_IMAGE_SUFFIX=_debug in .profile, but XCode 
ignores this.

I discovered that in Xcode 4.5 you can select Product -> Edit Scheme,
click the Arguments tab and add 'Environment Variables'
I added DYLD_IMAGE_SUFFIX=_debug.

But that still didn't work. The final step was to click the Info tab in 
the Edit Scheme
dialog, and change the Debugger to GDB.

I can now step into Qt code, and it has already helped me fix a subtle 
bug in my code!

Thanks for your help.

John.




More information about the Interest mailing list