我有一个使用mingw8.1 gcc作为编译器在Windows上运行的qt c++纯程序。
我可以在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是一个干净的环境。
有人能帮忙吗?
#include<QString>
并在主函数中创建一个临时变量QString tmp("")
。我认为这将满足要求。 - slayer