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 += core

    TARGET = Opticalc
    TEMPLATE = lib
    CONFIG += staticlib

    SOURCES +=
    stroke.cpp
    utils.cpp
    symbol.cpp

    HEADERS +=
    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 gui

    TARGET = OpticalcTest
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp
    simplecanvas.cpp

    HEADERS += mainwindow.h
    simplecanvas.h

    FORMS += 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/ -lOpticalc

    INCLUDEPATH += $$PWD/../Opticalc
    DEPENDPATH += $$PWD/../Opticalc

    win32: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...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.