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.
Forum Updated to NodeBB v4.3 + New Features

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
12 Posts 8 Posters 47.6k Views 1 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.
  • 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
    1
    • 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

      S 1 Reply Last reply
      1
      • 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
          1
          • 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)

            D 1 Reply Last reply
            3
            • 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
                • KroMignonK KroMignon

                  @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

                  D Offline
                  D Offline
                  DevWinDemon
                  Banned
                  wrote last edited by
                  #8

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

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

                  this thing doesn't opens. And why I need to open some other exes like this and trying to find how to use it, instead of just sharing exe directly from debug folder like it was in 5.15.16 version?

                  Pl45m4P 1 Reply Last reply
                  0
                  • D DevWinDemon

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

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

                    this thing doesn't opens. And why I need to open some other exes like this and trying to find how to use it, instead of just sharing exe directly from debug folder like it was in 5.15.16 version?

                    Pl45m4P Offline
                    Pl45m4P Offline
                    Pl45m4
                    wrote last edited by Pl45m4
                    #9

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

                    this thing doesn't opens

                    Did you click it?! It's a CL tool ;-)

                    And why I need to open some other exes like this and trying to find how to use it, instead of just sharing exe directly from debug folder like it was in 5.15.16 version?

                    Because that's not how it works... programs depend on other libraries (in general). You link Qt dynamically to you app... on your computer and in your IDE environment the paths are set in order to locate the Qt libs.
                    If you move your app binary without deploying it properly with all its dependencies and your friends want to start it, it won't be able to find the libraries.
                    Next, you don't share debug versions just like that :) Build in release, deploy it properly and ship it with all dependencies (Qt and other 3rd party, you might need).
                    Don't blame the computer or Qt, if you don't know better :)


                    If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                    ~E. W. Dijkstra

                    D 1 Reply Last reply
                    2
                    • Christian EhrlicherC Christian Ehrlicher

                      @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

                      S Offline
                      S Offline
                      servant 0
                      wrote last edited by
                      #10

                      @Christian-Ehrlicher yup, that was my problem; needed to add C:\Qt\Qt-6.8.3\bin to my PATH environment variable; thank you!

                      1 Reply Last reply
                      0
                      • Pl45m4P Pl45m4

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

                        this thing doesn't opens

                        Did you click it?! It's a CL tool ;-)

                        And why I need to open some other exes like this and trying to find how to use it, instead of just sharing exe directly from debug folder like it was in 5.15.16 version?

                        Because that's not how it works... programs depend on other libraries (in general). You link Qt dynamically to you app... on your computer and in your IDE environment the paths are set in order to locate the Qt libs.
                        If you move your app binary without deploying it properly with all its dependencies and your friends want to start it, it won't be able to find the libraries.
                        Next, you don't share debug versions just like that :) Build in release, deploy it properly and ship it with all dependencies (Qt and other 3rd party, you might need).
                        Don't blame the computer or Qt, if you don't know better :)

                        D Offline
                        D Offline
                        DevWinDemon
                        Banned
                        wrote last edited by
                        #11

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

                        Because that's not how it works... programs depend on other libraries (in general). You link Qt dynamically to you app... on your computer and in your IDE environment the paths are set in order to locate the Qt libs.
                        If you move your app binary without deploying it properly with all its dependencies and your friends want to start it, it won't be able to find the libraries

                        I work 2 years like this on qt 5.15.16, my friends could easily open all my apps with no other libraries or different things like this. And now qt requires some libraries while the older version has it!!! I could just tap "run / build" button and everything is done perfectly. Now I'm very upset as new qt has problems like this library dependances. Qt developers is downgrading their software if it will continue this way, I think in a few years the users will need to install full qt creator on their computer to run any application built on qt

                        Christian EhrlicherC 1 Reply Last reply
                        0
                        • D DevWinDemon

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

                          Because that's not how it works... programs depend on other libraries (in general). You link Qt dynamically to you app... on your computer and in your IDE environment the paths are set in order to locate the Qt libs.
                          If you move your app binary without deploying it properly with all its dependencies and your friends want to start it, it won't be able to find the libraries

                          I work 2 years like this on qt 5.15.16, my friends could easily open all my apps with no other libraries or different things like this. And now qt requires some libraries while the older version has it!!! I could just tap "run / build" button and everything is done perfectly. Now I'm very upset as new qt has problems like this library dependances. Qt developers is downgrading their software if it will continue this way, I think in a few years the users will need to install full qt creator on their computer to run any application built on qt

                          Christian EhrlicherC Offline
                          Christian EhrlicherC Offline
                          Christian Ehrlicher
                          Lifetime Qt Champion
                          wrote last edited by Christian Ehrlicher
                          #12

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

                          I work 2 years like this on qt 5.15.16

                          Nobody hinders you to make it work the same with Qt6 - simply put it in the PATH env var as you did for Qt5.
                          Please stop insulting people for things neither we nor Qt can do against - that's how a library search path on windows works (and also on linux there is a similar thing). So learn on how library search is working on your platform.
                          But maybe your russia os has a better solution for this...

                          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
                          2

                          • Login

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