Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt 5.9.4 Sample apps do not start, missing dlls?
Sikarjan last edited by Sikarjan
I recently installed QT 5.9.4 on Windows 7 but non of the sample apps are starting (no issues on my Mac). They crash after building with error in address 0x0000139 or so. I guess the issue is that the right dlls are not found by the app. What do I have to do that my apps find the right dlls?
I guess I have to set the correct path somewhere but I do not know the correct path nor the place to set it . I was not able to find anything about setting the path on the internet.
Thanks for any advise!
@Sikarjan There is no such Qt version!
Which version did you install?
Are you trying to start the example apps from QtCreator?
I'm sorry I did not look properly. I installed 5.9.4.
Yes, I tried to run one of the example from QtCreator Example section in Welcome.
@Sikarjan Which example apps fail to start? Did you try to debug? Can you post the stack trace?
It does not matter which I try all fail. It also does not matter if I choose release or debug or run in debug mode. If I run in debug mode the debug window stays empty.
On my custom app I ran windeployqt to copy all required dlls into the build folder. After that the my app ran. Therefore I assume that Qt is not finding the right dlls.
@Sikarjan If your Qt is installed properly then it should find its DLLs if started from QtCreator.
I used the Maintenance Tool to upgrade from 5.6. How can I check that QtCreator was installed properly? I guess some path variable or so needs to be set correctly. Can I check that?
@Sikarjan If you create default widget application in QtCreator - does it start from QtCreator without copying any DLLs?
No they don't. I already tried to add C:\Qt\5.9.4\mingw53_32\bin to my PATH variable but that did not change anything either.
@Sikarjan Then something is definitely broken with your setup. I'm using MinGW + Qt + QtCreator on Windows 7 without any issues. Check your projects settings: in QtCreator on the left side "Projects/Build & Run" got to "Run" settings and check the "Add build library search path to PATH".
The checkbox is cheched and I double checked that the C:\Qt\5.9.4\mingw53_32\bin is added to both the system and the user PATH variable.
So I guess the next thing I can try is to do a fresh install...
Make sure there is not a paths in PATH that points to a program folder
containing Qt dlls. (besides the actual Qt folder)
Sikarjan 0 last edited by
I just did a fresh install with Qt 5.9.5 and I am still facing the same problem. All apps only run if I copy the Qt dlls into their build folder.
I am on a company laptop but I do have admin rights. There is some kind of Symantec protection installed. Could this be related?
well yes, i had such issue with Avast at some point.