'Can not load library Qt5Widgets.dll
Solution 1:[1]
installing visual C++ 2010 runtime x86 solved problem
Solution 2:[2]
I guess you double-clicked in exe file that provides after building in release mode : For Deploy and create Exe output with QT in windows you should follow this way:
put your compiler path in your system path. now you use mingw81_64 you should set it. something like
Qt/tools/mingw81_64/bincopy exe file that provides after building in release mode in one folder and run mingw81_64 cmd (it has separate cmd) and cd to that folder path
windeployqt app.exe
This command will get all dll needs for your app and your exe will work .
if you use qml
windeployqt --qmldir (the path of its directory ) app.exe
and also see these youtube videos for more info:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Hang Li |
| Solution 2 | Parisa.H.R |
