Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved] Application wants debug-dlls (QtCored4.dll etc) although built with CONFIG+=release
Forum Updated to NodeBB v4.3 + New Features

[solved] Application wants debug-dlls (QtCored4.dll etc) although built with CONFIG+=release

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 3 Posters 5.8k 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.
  • H Offline
    H Offline
    Hedge
    wrote on last edited by
    #1

    I'm trying to deploy a Qt-Application.

    The qmake-line looks like this:
    @qmake.exe D:\MyProject\Project.pro -r -spec win32-g++ "CONFIG+=release"@

    When I put the application on another PC it won't start because it lacks QtCored4.dll and so on.
    All the non-debug .dlls (QtCore4.dll etc.) are present in the application folder.

    What am I doing wrong?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gedd
      wrote on last edited by
      #2

      Hello,

      First try to post you Project.pro file i think your answer is in.

      Here is bit of documentation for CONFIG

      CONFIG
      Option
      release: The project is to be built in release mode. This is ignored if debug is also specified.
      ...
      Check debug is not specified in your .pro file

      Gedd

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hedge
        wrote on last edited by
        #3

        This is the .pro-file:

        @# Add more folders to ship with the application, here
        folder_01.source = qml/MyProject
        folder_01.target = qml
        DEPLOYMENTFOLDERS = folder_01

        Additional import path used to resolve QML modules in Creator's code model

        QML_IMPORT_PATH = plugins

        Set the icon on Windows

        RC_FILE = icon.rc

        CONFIG += crypto
        CONFIG += kqoauth

        INCLUDEPATH += libs/kqoauth/include libs/kqoauth/src
        LIBS += -Llibs/kqoauth/lib -lkqoauthd0

        SOURCES += main.cpp logbrowserdialog.cpp logbrowser.cpp icecastserver.cpp
        qmlcppmediator.cpp
        twitter.cpp

        HEADERS += logbrowserdialog.hpp logbrowser.hpp
        icecastserver.hpp
        qmlcppmediator.hpp
        twitter.hpp

        QT += core gui network

        TARGET = Project
        TEMPLATE = app

        Please do not modify the following two lines. Required for deployment.

        include(qmlapplicationviewer/qmlapplicationviewer.pri)
        qtcAddDeployment()

        Compile Resources in Binary

        RESOURCES +=
        resources.qrc@

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          Never been on Windows, but.... already tried a full clean build? It sometimes happened to me that the executable just won't get cleaned & rebuilt... quite some time wasted, really :).

          --

          1 Reply Last reply
          0
          • H Offline
            H Offline
            Hedge
            wrote on last edited by
            #5

            Yeah I did a clean and the filesize of the application is significantly smaller now (411KB instead of 2,4MB with the debug-build).

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Peppy
              wrote on last edited by
              #6

              Do you have any other DLLs which are built with this project?

              1 Reply Last reply
              0
              • H Offline
                H Offline
                Hedge
                wrote on last edited by
                #7

                Dude, you know what you are? Pure genius!

                That was the solution.
                One of the non-Qt-libraries I built myself was in debug-mode.

                It works now without requesting the debug-dlls.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Peppy
                  wrote on last edited by
                  #8

                  Thanks...that was just a little hint...

                  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