.dll cannot be loaded
-
Hello everyone,
I am currently working on an application that requires certain .dll files to be loaded, when I run it directly from Qt, it runs without facing any issue, however when I build and generate an .exe file, it doesn't run.
I created a logs folder to check out the problem, it seems that one of the .dll files isn't loading.

I tried a few suggestions I found online, but nothing worked so far.Thank you.
-
Hello everyone,
I am currently working on an application that requires certain .dll files to be loaded, when I run it directly from Qt, it runs without facing any issue, however when I build and generate an .exe file, it doesn't run.
I created a logs folder to check out the problem, it seems that one of the .dll files isn't loading.

I tried a few suggestions I found online, but nothing worked so far.Thank you.
-
Verify the
.dllfile itself can be located at whatever location it is to be loaded from. -
Run a Windows Dependency Walker on the DLL file to see what other DLLs it requires and that they can be located.
The most likely is that your search path for locating DLLs is different when running from Qt Creator versus when running the
.exeexternally, from a shortcut or a Command Prompt. -
-
-
Verify the
.dllfile itself can be located at whatever location it is to be loaded from. -
Run a Windows Dependency Walker on the DLL file to see what other DLLs it requires and that they can be located.
The most likely is that your search path for locating DLLs is different when running from Qt Creator versus when running the
.exeexternally, from a shortcut or a Command Prompt.@JonB Thank you so much!
I was missing the Qt5Xml.dll file, I did not expect such an error, I thought windeployqt would deploy all needed dlls into the project.
Thank you again.
-
-
@JonB Thank you so much!
I was missing the Qt5Xml.dll file, I did not expect such an error, I thought windeployqt would deploy all needed dlls into the project.
Thank you again.
@Rabih-EL-Kadi
I haven't used windeployqt. But I would have thought it should include thatQt5Xml.dllcorrectly for you. I don't know how it works, but verify whether you have told it about that file?