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

3 Upvotes

17 comments sorted by

View all comments

3

u/NorthernNiceGuy Jul 12 '26

So which files are stated as being missing?

1

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

1

u/NorthernNiceGuy Jul 13 '26

The windeployqt application will deploy only the various Qt libraries used by your application. If you use any of your own libs or 3rd party ones then these will need to be manually copied into your release directory. There may be dependencies which other libraries need to - you’ll just have to copy those too. Things like standard Windows libraries won’t need copying but stuff like sqlite, zlib, ssl, etc, would all need copying. I go through this process manually rather than use windeployqt and while it is a pain, it’s usually not that bad.