使用MinGW构建ActiveQt(COM)应用程序 [英] Building ActiveQt (COM) applications with MinGW

查看:274
本文介绍了使用MinGW构建ActiveQt(COM)应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Qt 4.6.3与Windows上的MinGW来构建Qt应用程序,现在需要添加一个COM接口到我的应用程序。我启用了ActiveQt,但得到后链接错误,因为我缺少一个MIDL编译器的副本。我下载了最新的MS Windows SDK的副本,其中包括MIDL,但现在MIDL抱怨它找不到cl.exe。我可以得出的唯一结论是,你只能使用MS编译器构建ActiveQt应用程序,我宁愿避免。是一种方式让这项工作与MinGW或我是运气?

I am using Qt 4.6.3 with MinGW on Windows to build Qt apps and now need to add a COM interface to my application. I enabled ActiveQt but was getting post-link errors because I was missing a copy of the MIDL compiler. I downloaded a copy of the latest MS Windows SDK, which includes MIDL, but now MIDL complains it cannot find cl.exe. The only conclusion I can draw is that you can only build ActiveQt applications using the MS compiler, which I would rather avoid. Is a way to get this working with MinGW or am I out of luck?

推荐答案

使用MS编译器和工具似乎是唯一可靠的工作方式。

Using the MS compiler and tools seems to be the only reliable way to get this working.

这篇关于使用MinGW构建ActiveQt(COM)应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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