Thanks Richard (and Thanks Winfried for your private mail)! Yes, it works this way. Even, if it is bit tricky to start our application directly from XCode (due to some special scripts, env vars and other things). That's why I used 'attach' in the past. But this has nothing to do with Qt and is off-topic here. At least, I am able to debug now :-)
However I wonder why this qFatal message happens. I get the same error when I move the Qt Frameworks/Libs to another location and adapt the dylib pathes via install_name_tool. The move and the path adaption is done by a script and as I already mentioned this works fine with Carbon Qts. Maybe it's my fault. I am still not sure. I have to investigate a bit more but if there is principal problem which you are aware of, please let me know. Kind regards Martin Richard schrieb: > - In Xcode, under "Executables"-tree item, right-click on your exe, and > then on "Get info". > - In the dialog that pops up, select "use debug suffix when loading > frameworks" > > -Richard > > > > > On Jan 28, 2009, at 12:35 PM, Martin Knelleken wrote: > >> Hi all, >> >> In former Qt versions (and in the Carbon Qt 4.5) I do the >> following to see the source code in the XCode debugger. >> >> - build a debug binary >> - change the dylib path to the QtGui of the binary using >> install_name_tool -change <pathTo>/QtGui <pathTo>/QtGui_debug myApp >> - start the binary and attach the Xcode debugger to it. >> Works fine. >> >> Now, with the Cocoa Qt after changing the dylib path I get a >> qFatal out of QWidgetPrivate::init() >> "QWidget: Cannot create a QWidget when no GUI is being used" >> >> You can reproduce this by changing the dylib path to QtGui_debug >> in the examples/opengl/hellogl application binary. >> I get this error even if I additionally change the pathes of >> QtOpenGl and QtCore to their debug versions. >> >> Of course, I build Qt with the -debug-and-release option (default >> on Macs) >> >> >> What I am doing wrong? Do I miss something? >> >> >> Kind regards >> >> Martin >> _______________________________________________ >> Qt4-preview-feedback mailing list >> [email protected] >> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
