Qt和Qt应用程序的前提条件 [英] Qt and Qt application prerequisites

查看:151
本文介绍了Qt和Qt应用程序的前提条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Qt的新手,我在Windows 7中工作。

I am new to Qt, and I am working in Windows 7.

当我尝试直接运行我的应用程序时,我会看到有关缺少一些DLL的错误。我试图修复它们,但我不能(我试图静态构建)。

When I try to run my application directly, I see an error about missing some DLLs. I tried to fix them, but I could not (I tried to build statically).

有没有正确的解决方案?

Is there any correct solution?

我的问题是:

如果我想在其他电脑上运行我的Qt应用程序,我需要什么?例如,对于.NET应用程序,我们需要在目标计算机上安装.NET框架,但是对于Qt呢?

If I want to run my Qt application on other computers, what do I need? For example, for a .NET application we need to install the .NET framework on the target computer, but what about for Qt?

我搜索了SDK,发现一个大约1.6 GB的SDK!这是否意味着每次要安装我的应用程序时,我应该安装一个1.6 GB大小的SDK?这太糟糕了。

I searched for its SDK and found a SDK that was about 1.6 GB! Does this mean every time I want to install my application I should install a 1.6 GB sized SDK? That's far too bad.

谢谢。

推荐答案

使用所需的库分发您的应用程序。
如果您的应用程序在Windows上运行,则可以遵循本指南:在Windows上部署应用程序。您可以在SDK中的bin目录中找到所需的库作为dll。基本的Qt gui应用至少需要 QTCORE4.DLL QTGUI4.DLL ,如果您使用Qt Creator, MINGWM10.DLL 。您可以将这些库与应用程序保持在同一目录中。

You have to distribute your application with needed libraries. If your application is running on Windows you can follow this guide: Deploying an Application on Windows. You can find needed libraries as dll in bin directory inside SDK. A basic Qt gui application needs at least QTCORE4.DLL, QTGUI4.DLL and, if you are using Qt Creator, MINGWM10.DLL. You can leave these libraries in the same directory as you application.

这篇关于Qt和Qt应用程序的前提条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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