Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. The code execution cannot proceed because Qt6Core.dll was not found. Reinstalling the program may fix this problem.

The code execution cannot proceed because Qt6Core.dll was not found. Reinstalling the program may fix this problem.

Scheduled Pinned Locked Moved Unsolved Qt 6
7 Posts 5 Posters 45.8k 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.
  • N Offline
    N Offline
    NatK
    wrote on last edited by
    #1

    How the does an installer from 2021 still not install things properly for the Windows desktop kits like MSVS2019 or MinGW.. the built exe doesn't even work because it is missing Qt6Core.dll ... why isn't that file moved into the build directory?

    KroMignonK 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @NatK said in The code execution cannot proceed because Qt6Core.dll was not found. Reinstalling the program may fix this problem.:

      why isn't that file moved into the build directory?

      Because it must not be there.
      Make sure you properly set up your environment so the path to this library is in your PATH

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • N NatK

        How the does an installer from 2021 still not install things properly for the Windows desktop kits like MSVS2019 or MinGW.. the built exe doesn't even work because it is missing Qt6Core.dll ... why isn't that file moved into the build directory?

        KroMignonK Offline
        KroMignonK Offline
        KroMignon
        wrote on last edited by KroMignon
        #3

        @NatK said in The code execution cannot proceed because Qt6Core.dll was not found. Reinstalling the program may fix this problem.:

        why isn't that file moved into the build directory?

        I cannot understand what you want to achieve, what you have done and why you got this error.

        I guess, you have build your project and then tried to launch the executable directly, which can not work!

        Why, because Qt-Creator is smart and don't c opy all Qt DLL into build directory, but set environment variables before launching the application. So it will not blow up your disk with multiple copies of same files!

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        1 Reply Last reply
        0
        • N Offline
          N Offline
          NatK
          wrote on last edited by
          #4

          And how to distribute the compiled exe? surely it must come with all the required .dll files then no?

          KroMignonK 1 Reply Last reply
          0
          • N NatK

            And how to distribute the compiled exe? surely it must come with all the required .dll files then no?

            KroMignonK Offline
            KroMignonK Offline
            KroMignon
            wrote on last edited by
            #5

            @NatK said in The code execution cannot proceed because Qt6Core.dll was not found. Reinstalling the program may fix this problem.:

            And how to distribute the compiled exe? surely it must come with all the required .dll files then no?

            By using deployment tool ==> https://doc.qt.io/qt-6/windows-deployment.html

            It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

            1 Reply Last reply
            2
            • nageshN Offline
              nageshN Offline
              nagesh
              wrote on last edited by
              #6

              as @KroMignon suggested

              windeployqt <path-to-app-binary>
              

              this will copy the necessary files to application directory and makes it ready to deploy.

              1 Reply Last reply
              0
              • EndrII 0E Offline
                EndrII 0E Offline
                EndrII 0
                wrote on last edited by
                #7

                You need to deploy your application.
                I use the cqtdeployer tool for solve this issue.

                Examples of using available here, here and here

                You can download this deploy tool from github releases or snap store if you use Linux systems.

                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