Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt5Cored.dll is lost?
Forum Updated to NodeBB v4.3 + New Features

Qt5Cored.dll is lost?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 5 Posters 1.0k Views 3 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.
  • Stan HuangS Offline
    Stan HuangS Offline
    Stan Huang
    wrote on last edited by
    #1

    I built calqlatr under C:\Qt5\Examples\Qt-5.11.3\quick\demos successfully. I ran it well too using Qt Creator. But when I clicked the executable calqlatr.exe, I got message: unable to run this program, because your computer lost QtCored.dll. Please re-install it to fix this issue."

    What's wrong with it? I remember I installed it very smoothly. Do I need to spend several hours to re-install it? Or, any other simple way which I can fixed it easier.

    ODБOïO 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to deploy the executable. See https://doc.qt.io/qt-5/windows-deployment.html

      (Z(:^

      1 Reply Last reply
      1
      • Shrinidhi UpadhyayaS Offline
        Shrinidhi UpadhyayaS Offline
        Shrinidhi Upadhyaya
        wrote on last edited by
        #3

        Hi @Stan-Huang , basically you need to package the .exe with few dll's, so when you click the .exe it basically searches for the dll's which it needs, when it does not find it, it will give you such errors, So do the following to fix it:-

        There is a tool windeployqt that can help you in finding the necessary dll's,once you find them, then copy all Qt dlls required for your .exe in the same folder where your .exe is present.

        Shrinidhi Upadhyaya.
        Upvote the answer(s) that helped you to solve the issue.

        1 Reply Last reply
        0
        • Stan HuangS Stan Huang

          I built calqlatr under C:\Qt5\Examples\Qt-5.11.3\quick\demos successfully. I ran it well too using Qt Creator. But when I clicked the executable calqlatr.exe, I got message: unable to run this program, because your computer lost QtCored.dll. Please re-install it to fix this issue."

          What's wrong with it? I remember I installed it very smoothly. Do I need to spend several hours to re-install it? Or, any other simple way which I can fixed it easier.

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          Hi
          @Stan-Huang said in Qt5Cored.dll is lost?:

          QtCored.dll.

          this is debug version dll, you need to switch to release build also (soneone correct me if im wrong).

          sierdzioS 1 Reply Last reply
          0
          • ODБOïO ODБOï

            Hi
            @Stan-Huang said in Qt5Cored.dll is lost?:

            QtCored.dll.

            this is debug version dll, you need to switch to release build also (soneone correct me if im wrong).

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            @LeLev said in Qt5Cored.dll is lost?:

            Hi
            @Stan-Huang said in Qt5Cored.dll is lost?:

            QtCored.dll.

            this is debug version dll, you need to switch to release build also (soneone correct me if im wrong).

            Well you can deploy a debug build, it will work. But indeed, it is a much better idea to deploy release packages instead.

            (Z(:^

            1 Reply Last reply
            2
            • fcarneyF Offline
              fcarneyF Offline
              fcarney
              wrote on last edited by
              #6

              I have a deploy project (pri) for my app. We actually have a couple, one for Windows and one for Linux. We run these from the command line. windeployqt is really nice to use to grab all the dependencies including the QML files as needed. However, I caution running this on a debug build. It will suck in all the huge debug dlls that can be gigabytes in size. It will do it, but the deployable app will be huge.

              windeployqt is just one step in our deploy script as our script will actually call the installer builder as well. We use NSIS for that.

              C++ is a perfectly valid school of magic.

              1 Reply Last reply
              1

              • Login

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