[Qt-interest] cant get any output from dumpObjectInfo and dumpObjectTree

franki franki at franki.eu.org
Thu Nov 26 16:33:38 CET 2009


Hi,

I've tried to dump some info by dumpObjectInfo or dumpObjectTree but I 
couldn't. I know that qt  should be compiled then with debugging, or special 
libs should be used, so I installed: libqt4-dbg on my debian.
In project file there is:
TEMPLATE = app
TARGET =
DEPENDPATH += . forms
INCLUDEPATH += .
QT += sql
DEFINES += DEBUG
CONFIG += debug_and_release

 CONFIG(debug, debug|release) {
     TARGET = debug_binary
	QMAKE_LFLAGS_DEBUG += -g3
 } else {
     TARGET = release_binary
 }

and make then:
make all
creates two binaries
debug_binary is ten times in size than release_binary
but still on console there isn't any output from dumpObjectInfo
in code there are severali lines like:
this->dumpObjectInfo()
this->dumpObjectTree()

but still when I check ldd both binaries (debug and release) link to the same 
libraries:
libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb7ed9000)
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb75da000)
libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb73ad000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7394000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb72a6000)

I've tried to play with QMAKE_LFLAGS_DEBUG in project file, but with no luck.
Please advise me.

Greetings
Marek



More information about the Qt-interest-old mailing list