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. [SOLVED] Problems with debug and release configuration
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Problems with debug and release configuration

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.3k 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.
  • jensen82J Offline
    jensen82J Offline
    jensen82
    wrote on last edited by
    #1

    Hi!

    I have a problem with config for debug and release output. I have a .pro-File that creates a DLL-File. I want to sorts of it: debug and release. The debug dll and lib should have a "d" at the end to determine that it's a debug-config. The dll should be copied to another directory (Example: C:\Programme\MyProject\mydll.dll or C:\Programme\MyProject\mydlld.dll ) but the lib-file should be in the project directory.

    This is what i'v done so far:

    @QT -= gui
    TEMPLATE = lib
    DESTDIR = lib

    CONFIG += dll

    debug {
    TARGET = AppLibd
    }

    release {
    TARGET = AppLib
    }

    DEFINES += APPLIB_LIBRARY

    SOURCES += applibrary.cpp
    applicationpaths.cpp
    settings.cpp

    HEADERS += applibrary.h
    AppLib_global.h
    applicationpaths.h
    settings.h
    definitions.h

    DLLDESTDIR = $${EXECUTABLEPATH}
    @

    This config doesn't work. It always creates the dll AppLib.DLL in C:\Programme\myApp but not a .a-file in subdir "lib" in the current project directory.

    What's wrong with it?

    Thank you very much!!!!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scylla
      wrote on last edited by
      #2

      Try i.e "Debug" instead of "debug".

      1 Reply Last reply
      0
      • jensen82J Offline
        jensen82J Offline
        jensen82
        wrote on last edited by
        #3

        Does not work. Thanks anyway

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Scylla
          wrote on last edited by
          #4

          For me it works when I use "Debug" instead of "debug" or "Release" instead of "release".

          1 Reply Last reply
          0
          • jensen82J Offline
            jensen82J Offline
            jensen82
            wrote on last edited by
            #5

            Sorry! You're right. The rebuild did not work correctyl. After uninstalling/reinstalling mingw and QtCreator it works. Thank you very much!!!

            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