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.
QtWS25 Last Chance

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.7k 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 15 Mar 2021, 16:07 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?

    K 1 Reply Last reply 15 Mar 2021, 16:19
    0
    • C Online
      C Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 15 Mar 2021, 16:10 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
        15 Mar 2021, 16:07

        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?

        K Offline
        K Offline
        KroMignon
        wrote on 15 Mar 2021, 16:19 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 15 Mar 2021, 16:22 last edited by
          #4

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

          K 1 Reply Last reply 15 Mar 2021, 16:29
          0
          • N NatK
            15 Mar 2021, 16:22

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

            K Offline
            K Offline
            KroMignon
            wrote on 15 Mar 2021, 16:29 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
            • N Offline
              N Offline
              nagesh
              wrote on 16 Mar 2021, 01:17 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
              • E Offline
                E Offline
                EndrII 0
                wrote on 16 Mar 2021, 06:33 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

                4/7

                15 Mar 2021, 16:22

                • Login

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