-
@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 -
@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!
-
@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.