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. Release Build Requires Debug dlls?

Release Build Requires Debug dlls?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 4.2k Views
  • 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.
  • J Offline
    J Offline
    JasonKretzer
    wrote on last edited by
    #1

    My project is Qt5.0.2. on Windows 7. No third party libs to link against, except quazip which is also built in release mode. I build in release mode. I execute the binary in the release build folder and it says that it requires debug dlls. I am not sure what I have done wrong in configuration. Here is what I have tried.

    Deleted the build folder, ran qmake, then build.
    Deleted the build folder, ran clean, ran qmake, then build.
    Ran clean, ran qmake, then build.

    Still with all 3, it requires the debug dll.

    Any help?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you sure you don't have a CONFIG += debug somewhere in your pro files ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JasonKretzer
        wrote on last edited by
        #3

        The only lines that contain the word CONFIG are:

        @
        win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../QuaZipBuild/quazip/release -lquazip

        else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../QuaZipBuild/quazip/debug/ -lquazip
        @

        [edit: did add code tags for properly showing the debug release part, koahnig]

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          [quote author="JasonKretzer" date="1374152450"]The only lines that contain the word CONFIG are:

          win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../QuaZipBuild/quazip/release -lquazip

          else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../QuaZipBuild/quazip/debug/ -lquazip[/quote]

          Those lines should look like this
          @
          win32:CONFIG(release, debug|release): LIBS += -lQt5Ftp
          else:win32:CONFIG(debug, debug|release): LIBS += -lQt5Ftpd
          @

          [edit, just saw that it was a posting problem. Corrected your post and introduced code tags]

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JasonKretzer
            wrote on last edited by
            #5

            My apologies, I am sure you are just using the Qt5Ftp/d as an example and other than adding the code tags, was there anything else wrong with those lines?

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              [quote author="JasonKretzer" date="1374167046"]My apologies, I am sure you are just using the Qt5Ftp/d as an example and other than adding the code tags, was there anything else wrong with those lines?
              [/quote]
              Yes, you are right. I used it only as an example. When I sent it off, I saw that the posting was incorrect due to a formatting problem.
              I could not pull it back. Sorry for causing confusion on your side.

              It looks ok for me what you have posted. The only explanation could be that the qcazip lib is in debug even so when stored in release folder.

              You might want to check with "dependency walker as shown in this wiki ":http://qt-project.org/wiki/Show_library_dependencies#aea23489ce3aa9b6406ebb28e0cda430 This should provide some idea where the debug dll is loaded.

              Vote the answer(s) that helped you to solve your issue(s)

              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