Windows 下的 Qt 开发。我需要为 Microsoft 工具付费吗?
考虑使用 Qt for Windows 开发桌面应用程序。它将是一个免费下载应用程序,但用于商业服务。 (需要我们的商业服务帐户才能工作)。
我认为我们可以使用诺基亚的 Qt for Windows(LGLP 版本),因为它是免费的应用程序。但最新版本的 Qt 需要 Microsoft 提供的 C++ 编译器。
哪一个?
我是否需要付费购买 Microsoft 的 C++ 编译器,或者他们有免费版本可与 Qt 一起使用吗?
阅读信息文档、谷歌搜索,我们仍然无法理解我需要什么工具。
Considering to develop a desktop application with Qt for Windows. It will be a free download application, but for a commecial SERVICE. (need an account with our commercial service to work).
I think we could use the Qt for Windows from Nokia (LGLP version) because its free app. But the lastest one version of Qt needs a C++ complier from Microsoft.
Which one?
Do I need to pay for an C++ compiler from Microsoft, or do they have a free version to use with Qt?
Reading info docs, googling and we still cann't understand what tools do I need.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您想使用 Visual Studio 编译器,可以下载免费的 Windows SDK。以下链接将带您访问 Visual Studio 2008 的 SDK:
这包括您需要的所有 C++ 编译器和工具。 (有一个更新的版本可用,但 Visual Studio 2010 还不是 Qt 的“1 级支持”平台。)我们在独立构建机器上使用它,它工作得很好。
只是个人意见,但我们发现在 Windows 上使用 MSVC 以外的任何东西(例如 MinGW)会导致很多问题。并不是其他工具链不好,而是它们都被视为二等公民。我们遇到了很多问题,第三方库无法在 MinGW 中构建,或者构建指令不存在,并且必须进行大量手动 Makefile 编辑等。如果使用 MSVC,您更有可能让事情“正常工作” 。
在大多数情况下(静态链接),您不能混合和匹配。您需要选择一个工具链并坚持使用。如果我从头开始,我肯定会选择 MSVC。
只是我们的经验(我们从 MinGW 开始);您的里程可能会有所不同。
If you want to use the Visual Studio compilers, you can download the free Windows SDK. The following link takes you to the SDK for Visual Studio 2008:
This includes all the C++ compilers and tools you need. (There is a more recent version available, but Visual Studio 2010 is not yet a "level 1 supported" platform for Qt.) We are using this on standalone build machines and it works fine.
Just a personal opinion, but we have found that using anything other than MSVC on Windows (for example, MinGW) causes a lot of problems. It is not that the other toolchains are bad, it is just that they are all treated as second-class citizens. We had lots of problems with third-party libraries not being able to build in MinGW or having nonexistent build instructions and having to do a lot of manual Makefile editing, etc. You are much more likely to have things "just work" if using MSVC.
For the most part (static linking), you cannot mix and match. You need to pick one toolchain and stick with it. If I were starting from scratch, I'd definitely go with MSVC.
Just our experience (we started with MinGW); your mileage may vary.
不,您不需要支付任何费用。
Microsoft 工具链作为 Microsoft Windows 软件开发工具包。
此外,您可能还会对以下文章感兴趣:
No, you do not need to pay for anything.
The Microsoft toolchain is available for free as part of the Microsoft Windows Software Development Kit.
Additionally, the following article may also be of interest to you:
Qt 支持的替代方案是 MinGW。运行时库不受版权保护,因此您可以使用它们做任何您想做的事情。
它基本上是 Unix 下 GNU 编译器集合 (GCC) 的 Windows 版本。
The alternative supported by Qt is MinGW. The runtime libraries are free from copyright, so you can do whatever you want with them.
It is basically the Windows counterpart of the GNU Compiler Collection (GCC) under Unix.