QDebug messages don'T appear in static library
-
Hi all,
I have been having an annoying issue for a while now. I'm developing a static library and a small test application for it in parallel. The problem is that the messages sent to QDebug within the lib won't print at all.
Here's the project file of the library:
@QT -= gui
QT += coreTARGET = Opticalc
TEMPLATE = lib
CONFIG += staticlibSOURCES +=
stroke.cpp
utils.cpp
symbol.cppHEADERS +=
oc_debug.h
oc_symbol.h
oc_stroke.h
oc_utils.h
unix:!symbian {
maemo5 {
target.path = /opt/usr/lib
} else {
target.path = /usr/lib
}
INSTALLS += target
}@and the app:
@QT += core guiTARGET = OpticalcTest
TEMPLATE = appSOURCES += main.cpp
mainwindow.cpp
simplecanvas.cppHEADERS += mainwindow.h
simplecanvas.hFORMS += mainwindow.ui
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../Opticalc-build-desktop/release/ -lOpticalc
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../Opticalc-build-desktop/debug/ -lOpticalc
else:symbian: LIBS += -lOpticalc
else:unix: LIBS += -L$$PWD/../Opticalc-build-desktop/ -lOpticalcINCLUDEPATH += $$PWD/../Opticalc
DEPENDPATH += $$PWD/../Opticalcwin32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../Opticalc-build-desktop/release/Opticalc.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../Opticalc-build-desktop/debug/Opticalc.lib
else:unix:!symbian: PRE_TARGETDEPS += $$PWD/../Opticalc-build-desktop/libOpticalc.a
@I'm working with Qt 4.7.3, QtCreator 2.2.1 under 64-bit Linux.
-
QT_NO_DEBUG_OUTPUT accidentally set somewhere?
Output redirection? -
No, none of them...