[Qt-creator] ActiveQt and MinGW

Piotr Rokicki ptmp at bory.pl
Fri Jul 2 12:06:41 CEST 2010


Robert Caldecott pisze:
> Apologies for posting this here guys but I am struggling to find the
> definitive answer to this and a Creator guru may know the answer.

> I am trying to develop a COM server using the latest Qt/Qt Creator SDK
> and the MinGW toolchain.  My first issue was that the code fails to
> build because I didn't have a copy of the MS MIDL compiler.  I installed
> the latest MS Windows SDK and now MIDL runs but complains because it
> can't find cl.exe (the MS compiler).  So I downloaded Visual Studio
> Express and added cl.exe to the PATH and now the MIDL step works but I
> get an 'Failed to register application' error (I am building the
> ActiveQt comapp sample).
> 
> So ... can I build ActiveQt apps using MinGW or will I have to use the
> MS toolchain (and the appropriate MSVC 2008 build of Qt)?  I develop on
> different machines and would like to avoid MSVC if possible but I think
> I'm out of luck...

I am absolutely not a qtcreator guru, but it works for us, for the
simple cases (we do not use QAxAggregated and QAxBindable classes)

For example, if i start qtcreator from .bat file:

call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
set PATH=C:\Qt\2010.03\qt\bin;C:\Qt\2010.03\mingw\bin;%PATH%
start qtcreator.exe

Our COM servers compiles with mingw32 and registers with the help of
Microsoft tools.

[...]





More information about the Qt-creator-old mailing list