Install debug version of Qt on Mac OSX

I need to go through the Qt code to help solve the problem in my C ++ application. I downloaded qt-mac-opensource-src-4.5.2.tar from here and followed the installation instructions that came with this:

  • unpacked the file in / tmp.
  • enter. / configure -debug.
  • printed.
  • type sudo make install.
  • edited the PATH environment variable as indicated.
  • set the environment variable DYLD_IMAGE_SUFFIXto _debug.

This is a Qt application and my Qt is starting up, but I still cannot enter the Qt code.

I am using Xcode 3.1.3 and trying to change the executable information to "use the debug suffix when loading frameworks". This caused a lot of warnings like:

warning: could not find the object file "/private/tmp/qt-mac-opensource-src-4.5.2/src/corelib/.obj/debug-shared/qmalloc.o" - there is no debug information available for "global / qmalloc.cpp ".

warning: could not find the object file "/private/tmp/qt-mac-opensource-src-4.5.2/src/corelib/.obj/debug-shared/qnumeric.o" - there is no debug information available for "global / qnumeric.cpp ".

as well as many non qt related warnings.

I turned off the Macbook Pro in one night, and I can only assume that it clears the tmp directory, since the decompressed file no longer exists.

, , Qt , , , , , , . , 3 4 .

, debug libs?

, , .

.

+3
3

Qt .

:

  • Qt "make install" dSYM _debug. . :

    4. cd /usr/local/Trolltech/Qt-4.5.2/lib
    4b. /usr/bin/dsymutil -o QtGui.framework/QtGui_debug.dSYM QtGui.framework/Versions/4/QtGui_debug
    4c. Qt.

  • tmp . :

    7- /tmp/qt-mac-opensource-src-4.5.2 ~/Qt.

, Xcode.

+3

http://doc.trolltech.com/4.5/debug.html , MacOSX Xcode... , make debug, qmake!

+2

On OS X 10.6 and 10.6.1, setting DYLD_IMAGE_SUFFIXup _debug will cause problems . We hope that this will be fixed in a future OS X 10.6 update.

+2
source

Source: https://habr.com/ru/post/1712759/


All Articles