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. Deployment Issue: Qt5Core.dll and Qt5Cored.dll
Forum Updated to NodeBB v4.3 + New Features

Deployment Issue: Qt5Core.dll and Qt5Cored.dll

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 3.2k Views 2 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
    xtingray
    wrote on last edited by xtingray
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • X Offline
        X Offline
        xtingray
        wrote on last edited by
        #3

        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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • X Offline
            X Offline
            xtingray
            wrote on last edited by xtingray
            #5

            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
            0

            • Login

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