Solved Application not starting on other computers even after using windeployqt
-
So my issue is the following: I made an application with Qt, compiled it, it ran fine. Then I ran Windeployqt on the application and it fetched almost all the required .dlls and made the directory look like it should in my opinion. It missed one, the Qt5Widgets.dll so I added that and tried running it. Now the application is giving the error 0xc000007b. I have no clue how to fix it and I've browsed a bunch of other threads and tried to make sense of some Wiki articles on the Qt Wiki.
Help appreciated, thank you :)
-
@Surviv0r said in Application not starting on other computers even after using windeployqt:
Qt5Widgets.dll
From where did you copy it? You have to copy it from the Qt version you used to build your app.
-
@jsulm Damn, that's unlucky. I'm pretty sure the version I built it with was 5.11.2 and the current (where I copied the .dll from) is 5.12.2. I have the project file available on this computer, though. I wanted to refrain from recompiling it, because I wouldn't get accurate results then (I assume?), but I guess that's my only choice unless there is a repository for the .dlls
-
@Surviv0r said in Application not starting on other computers even after using windeployqt:
unless there is a repository for the .dlls
You can install more than one Qt version :-)
-
@jsulm Thank you, I didn't realize. I'm new to this stuff, since I am only a student. Really appreciate it, I'll report back with the results!
-
Final Edit! Got it working thanks to you. The subdirectories got completely wiped for some reason, but after rebuilding the file with the correct Qt version for the project and using the proper version of Windeployqt, the application works! Thank you so much :)
@jsulm By the looks of things, copying the Qt5Widgets.dll from the 5.11.2 version did not resolve the issue. Now it does not give out the same error, though. It says "No Qt platform plugin could be initialized" I could build the project again and re-do the deployment process. I'd just need to get another computer to test it on (which shouldn't be an issue). What do you think?
Edit: It seems as if though for some reason the subdirectories got wiped? I'll investigate.