我有一个qt c++普通程序。在windows下使用mingw8.1的gcc作为编译器。
我可以在qt creator中运行它。
但是当我想要使用windeplotqt进行部署时,它失败了,出现了以下错误:
a.exe does not seem to be a Qt executable我的步骤是:
1. copy the exe from build-xxx-release/release/a.exe to a clean folder
2. open terminal from QT(mingw) from my windows start menu
3. cd the clean folder in terminal
4. windeployqt a.exe然后错误就出来了。
这让我抓狂,因为我重装了QT很多次。我可以确保我的qt是一个干净的环境。
有人能帮上忙吗?
发布于 2021-06-07 22:36:02
也许你用错了"windeployqt“。
在Win10中,尝试找到Qt的安装目录,如C:\Qt\Qt6.1.0\6.1.0\msvc2019_64\bin或C:\Qt\Qt6.1.0\6.1.0\mingw81_64\bin。
你的"windeployqt.exe“可能在"msvc2019_64”、"mingw81_64“或其他地方。然后使用像C:\Qt\Qt6.1.0\6.1.0\msvc2019_64\bin\windeployqt.exe a.exe或C:\Qt\Qt6.1.0\6.1.0\mingw81_64\bin\windeployqt.exe a.exe这样的命令,而不是windeployqt.exe a.exe。
https://stackoverflow.com/questions/67030763
复制相似问题