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. error with creating static lib of log4qt
Forum Updated to NodeBB v4.3 + New Features

error with creating static lib of log4qt

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 534 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.
  • X Offline
    X Offline
    xianerzaiwai
    wrote on 13 Mar 2015, 11:00 last edited by SGaist
    #1

    Background of my post:
    i'd like to use log4qt as usual static lib for logging/tracing in my c++ project which should be created in vs2010. On my pc i have only QT Creator 3.2.2 based on Qt5.3.2 installed. In order to create log4qt.lib, i have tried to use te following pro file in qtcreator which is simply copied in Internet. However during building, i'm always getting the error
    File Makefile.Debug doesn't exist.

    Now, my questions:

    1. what could be the cause for this error?
    2. do you have any working pro files to create a log4qt.lib?
    3. are there any better options to log/trace a qt project in vs2010?

    Thousand thanks for your feedback in advance

    log4qt.pro
    # Project file to build log4qt as dynamic library
    TEMPLATE = staticlib
    CONFIG += qt dll debug_and_release build_all log4qt-buildlib
    CONFIG(debug, debug|release):BUILD_MODE = debug
    else:BUILD_MODE = release
    TMP_DIR = $$PWD/tmp/$$BUILD_MODE
    OBJECTS_DIR = $$TMP_DIR/obj
    MOC_DIR = $$TMP_DIR/moc
    RCC_DIR = $$TMP_DIR/rcc
    UI_DIR = ui
    DESTDIR = $$PWD/lib/$$BUILD_MODE
    LOG4QT_LIBDIR = $$DESTDIR
    include(log4qt_common.pri)
    TARGET = $$LOG4QT_LIBNAME
    target.path = $$DESTDIR
    INSTALLS += target
    include(src/log4qt/log4qt.pri)
    

    log4qt_common.pri

    # Common file to be included in *.pro files to build/link against log4qt
    CONFIG += qt log4qt
    LOG4QT_VERSION = 5.3
    LOG4QT_LIBNAME = log4qt-$$LOG4QT_VERSION
    !log4qt-buildlib {
    LIBS += -L$$LOG4QT_LIBDIR -l$$LOG4QT_LIBNAME
    INCLUDEPATH += $$PWD/src
    }
    
    1 Reply Last reply
    0

    1/1

    13 Mar 2015, 11:00

    • Login

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