Windows Qt与MinGw或Visual Studios? [英] Windows Qt with MinGw or Visual Studios?

查看:400
本文介绍了Windows Qt与MinGw或Visual Studios?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编译qt,面临着两个选择,无论使用MinGw还是Visual Studio编译器?他们之间有什么区别,使用一个或另一个有什么优点/缺点?

I am trying to compile qt, and am faced with two choices whether use MinGw or Visual Studio compiler? What is the difference between them, and are there any advantages/disadvantages of using one or the other?

推荐答案

工具。重要的是要知道的是,他们不一定在一起玩得很好。也就是说,在将库链接到一起时,它们必须使用相同的工具链。因此,在我看来,最好使用Visual Studio编译器(MSVC),因为它是Windows上的头等公民;其他人被视为第二类。

They are both fine tools. The important thing to know is that they don't necessarily play well together. That is, as you link libraries together, they must all use the same tool chain. For this reason, in my opinion, it is better to use the Visual Studio compiler (MSVC), as it is the "first class citizen" on Windows; the others are treated somewhat as second class.

我的意思是,你可以非常多地依赖第二方库的二进制形式使用MSVC,或至少构建指令可以使用MSVC。我们有很多问题,第三方库无法构建在MinGW或没有存在的构建指令和不得不做大量的手动Makefile编辑等。你更有可能有事情只是工作如果使用MSVC 。

What I mean is that you can pretty much count on third party libraries being available in binary form using MSVC, or at least build instructions being available using MSVC. 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.

这只是我们的经验(我们从MinGW开始);您的里程可能会有所不同。

That is just our experience (we started with MinGW); your mileage may vary.

这篇关于Windows Qt与MinGw或Visual Studios?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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