Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDebug messages don'T appear in static library
Forum Updated to NodeBB v4.3 + New Features

QDebug messages don'T appear in static library

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lipk
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cpscotti
      wrote on last edited by
      #2

      QT_NO_DEBUG_OUTPUT accidentally set somewhere?
      Output redirection?

      cpscotti.com/blog/ - Used when I need to kill some time at work :D

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lipk
        wrote on last edited by
        #3

        No, none of them...

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved