[Development] Load debug symbol from Qt library in lldb

Ben Lau xbenlau at gmail.com
Mon Dec 19 04:10:34 CET 2016


I am tracking a crash problem in Qt library on Mac. First of all, I build a
Qt 5.7.1 library from git with :

$ ./configure  -confirm-license -developer-build -opensource -nomake
examples -nomake tests

Then build an example program via the the qmake built

$ qmake CONFIG+=debug

Run it via lldb

$ lldb ./lodashdemo.app/Contents/MacOS/lodashdemo

$ run

(then crash)$ image list


[  7] D6239705-2373-32D9-A1E9-E290DBA7CBAD 0x0000000101081000


The QtQml is a shared library without debug symbol. The library that hold
debug symbol should be QtQml_debug located in the same folder
$ file

  Mach-O 64-bit dynamically linked shared library x86_64
Mach-O 64-bit dynamically linked shared library x86_64

My questions are :

1) can I turn qmake to link the QtQml_debug ?


2) can I build a QtQml library with debug symbol?

Thanks for any advise
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20161219/3271dca7/attachment.html>

More information about the Development mailing list