Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Deployment Issue: Qt5Core.dll and Qt5Cored.dll

    Installation and Deployment
    2
    5
    2570
    Loading More Posts
    • 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
      xtingray last edited by xtingray

      Right now I am working on the deployment of a Qt application from a Windows (x64) system. My main .pro file includes:

      CONFIG += release
      

      The compilation process is pretty clean, but when I try to run the .exe file from its installation path I got an error message asking for QtCore.dll and QtCored.dll libraries. If I copy both files the application runs without any issue.

      My question is: why it is asking for the QtCored.dll library if my building settings don't include the "debug" option? Is there a way I can detect or avoid that dependency? As far as I understand, I should only need the QtCore.dll file, right?

      Thank you for any hint! :)


      Qt Developer

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        do you have any dependencies ? e.g. plugin, external lib ?

        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 Reply Quote 0
        • X
          xtingray last edited by

          Yes. My application depends on Quazip and Libav. I compiled Quazip by myself and looking for the quazip.pro file I found this:

          CONFIG += qt warn_on
          

          About the Libav library, I am using the binaries available from the official website.


          Qt Developer

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Then check that the Quazip lib you link to is also in release mode.

            You can use Dependency Walker to check what dependencies you have with your executable and DLLs.

            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 Reply Quote 0
            • X
              xtingray last edited by xtingray

              Got it! I installed the "Dependency Walker" [1] application to inspect my binaries, starting by my .exe file. No reference to Qt5Cored.dll, but when I opened the quazip.dll file, it is listed!
              I recompiled Quazip, using this qmake line:

              qmake -config release "LIBS+=C:\extralibs\zlib1.dll" "PREFIX=C:\Quazip"
              

              And now, the problem is solved! Thank your for the dependencies hint! :)

              [1] : http://www.dependencywalker.com/


              Qt Developer

              1 Reply Last reply Reply Quote 0
              • First post
                Last post