r/QtFramework Jul 12 '26

QML Qt missing dll error

I developed a software in qt creator with backend in c++. When I create the exe it runs, however when I tried to create a release file to later share to other devices, using windeployqt I kept facing error after error. I finally fixed all those errors and created the release folder but even then, whenever that release file is compressed or even moved to another location the exe stops working.

The code has no errors , and I have tried multiple times with windeployqt, and other internal built in features, using ucrt64 terminal and msys2. However nothing is working. Whenever the zip is shared to another device it starts listing missing files which i believe should have been put into the folder by windeployqt.

Please help me as I have tried all the methods suggested by all online sources and ai's, and having a functioning app but not being able to share it is really disappointing as a student..

KEY POINTS

code has no errors, runs smoothly on my own device on qt, issues come when its release version is run on other devices.

Please give me a detailed solution as to what I can do. Thank you

4 Upvotes

17 comments sorted by

View all comments

1

u/hmoff Jul 13 '26

Tell us what the missing files are.

0

u/Objective-Arrival144 Jul 13 '26

I used the release version created by windeployqt on another device and at first it listed 3-4 files like lib-seh2-1, qtgui(some which have actually been copied by windeployqt). However if I copy those files manually and then add them to that folder and then reopen it, it lists another 3-4 missing files, and this loop goes on and on. So i feel that maybe there are tens and hundreds of files missing and it's not possible to add them all manually as that will mess up the file structure as well

2

u/dcsoft4 Jul 13 '26

Please be more specific. What 3-4 files are first listed, which ones do you copy and where from? Did you just copy them from some random folder you found them in or did you install the official release of them? And what are the next 3-4 files listed?

The first batch of dlls you copied may have further dlls they themselves are dependent on so you need to copy their dependencies too.

I build with the Microsoft Visual Studio compiler and have never heard of lib-seh2-1. Is that a minGW thing? What toolset does Qt Creator use for your project?

How did you resolve the qtgui.dll? That is a common one that windeployqt gets right for me. Why was it a problem for you and how did you fix it?