-
@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 -
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?
@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!
-
And how to distribute the compiled exe? surely it must come with all the required .dll files then no?
@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
-
as @KroMignon suggested
windeployqt <path-to-app-binary>
this will copy the necessary files to application directory and makes it ready to deploy.
-
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.
-
@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
@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?
-
@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?
@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 :) -
@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@Christian-Ehrlicher yup, that was my problem; needed to add C:\Qt\Qt-6.8.3\bin to my PATH environment variable; thank you!
-
@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 :)@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 librariesI 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
-
@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 librariesI 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
@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...