最好的方法是在qt mingw中创建执行文件? [英] Best way create execute file in qt mingw?

查看:75
本文介绍了最好的方法是在qt mingw中创建执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是当我构建发布模式我的简单应用程序时,我如何创建exe文件?

i测试了这个解决方案:

my question is when i build release mode my simple app,how i can create exe file?
i tested this solution:

Let's say you've installed QT under c:\qtsdk
Open your project, and compile it in release mode.
Go to this directory: C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin -- it contains all shared libraries. Debug libraries end with a "d" -- frex, QtCore.dll is release version, while QtCoreD.dll is debug version

Copy at least these files into your release directory (where your .exe lies)
    mingwm10.dll
    libgcc_s_dw2-1.dll
    QtCore4.dll
    QtGui4.dll

I just built, tested and deployed a dummy project this way.





但是在复制文件之后它返回其他依赖文件,我再次复制它和另一个错误!!!!

请指导我



我尝试过:



http://stackoverflow.com/questions/8312725/how-to-create-executable-file-for-a-qt-application



but after copy file it return other dependency file,i again copy it and an other error!!!!
please guide me

What I have tried:

http://stackoverflow.com/questions/8312725/how-to-create-executable-file-for-a-qt-application

推荐答案

我在这里分享了解决方案

最好的方式是

i shared solution here
best way is
cd


dir_project
qmake project .pro
mingw32-make
dir_project qmake project.pro mingw32-make



最终执行文件将被创建。


finally execute file will be created.


这篇关于最好的方法是在qt mingw中创建执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆