在Windows上成功执行带有代码块的QT应用程序构建

问题描述

由于某种原因,我被迫创建在Linux服务器上运行的应用程序发行版(最初在Windows中使用Visual Studio开发)。但是,即使是向Linux迈出的最小一步也充满了痛苦,因为似乎没有任何效果。我目前正在尝试将项目转移到Windows上的IDE代码块中,因为我想首先使用GCC构建项目。如果我成功了,我大概可以将项目复制并粘贴到Linux机器上,然后重新构建它。 不幸的是,我无法使用MinGW和Codeblocks运行Qt HelloWorld项目。我按照以下说明设置了项目: http://forums.codeblocks.org/index.php?topic=23059.0

还有:

http://www.kerrywong.com/2008/07/12/codeblocks-settings-for-qt-development/

在构建过程中没有问题。但是,如果我尝试执行应用程序,则会立即收到运行时错误“无法启动应用程序(0xc0000 ... 7b)”

因此,我也尝试为Windows应用程序部署Qt,但没有任何效果。我想念什么?

cmd:“ C:\ Qt \ 5.11.2 \ mingw53_32 \ bin \ windeployqt.exe”“ C:\ Users \ Steph \ ownCloud \ Codeblocks \ cb_fail \ bin \ Debug \ cb_fail.exe”

代码:

#include <QString>
#include <iostream>

int main(int argc,char* argv[])
{
    QString smth = "Hello Qt";
    std::cout << smth.toStdString();

}

代码块编译器设置

enter image description here

enter image description here

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...