views:

1696

answers:

3

Hi,

I want to use the VC++ toolset to build programs for XP and Vista, but I do not want to buy the IDE, because I want to use Qt Creator.

I would download the Windows SDK and the Windows Debugging Tools, but I'm not sure if this includes everything that I need (i.e: compiler, linker, nmake, debuggers). Has anyone used this approach? How did it go?

Note: I know about VC++ Express, but that version of the compiler has certain features disabled AFAIK.

Later edit:

I want to know if I can use the SDK + Debugtools before I download 2GB of data. Personal experiences are highly appreciated. MSDN links are not. :)

+1  A: 

With VC++ Express, You get whole SDK, You can use it to build ewerything. You don't need to use MS VS at all to build Your app.

Here is a MS toolchains & sdk+IDE set listed:

MS Toolchain

I'm not shure does MS release stand alone toolchain for compiler+linker, but this could be found on MSDN certainly.

More info about SDKs:

MSDN

Summarize, You can have any binutils & toolsets installed on Your development machine. However You need to set up Your project properly, to build it succesfully. For ex. setting environment variables properely (pointing INCLUDE, LIB, LIB_PATH to proper SDK directories). You could compile and link Your project manually. Totally ignoring IDE (and certainly You will in future).

Simply try to automate Your build.

Read about SCONS (since You use QT - it support MOC objects), CMAKE or Qt's QMAKE for that. Then the IDE problem is less significant problem. And You shouldn't stick to Your IDE.

bua
I'm interested in a specific use case: SDK + Debugtools + Qt Creator. I know about VC++E, Cmake, Scons etc, but these are not relevant to my question.
rpg
I don't know the capabilities of Qt Creator, but this should be possible, SDK is certainly not a problem to run under Qt Creator.Tricky part here is the debugtools, however should also be possible.At least if Qt supports commandline+scripting this could be achieved this way if qt ide doesn't support stand-alone debugtools.
bua
A: 

You need to reconfigure Qt to use this compiler -- see Deployment on Windows in the Qt docs.

It is pretty straightforward but you have to do this re-configuration first as shown in the docs.

Dirk Eddelbuettel
+2  A: 

I am now using the CDB + WinSDK approach and it works.

The SDK includes everything that is needed for building C++ code (make, CRT headers, STL, etc); Qt sees it a MSVC 9. The Debugging tools for Windows kit includes CDB, but make sure that you're using the latest version, it didn't work for me with older ones.

I managed to avoid compiling Qt by downloading the developpez.com binaries (thanks guys!).

In conclusion: Windows Xp/Vista SDK + Debugger Tools For Windows + Qt Creator + Qt binaries from developpez.com can be used as an alternative to the Qt MinGW SDK.

rpg
The missing link (probably not easy to find for people who don't speak French): http://qt.developpez.com/binaires/en/
RedGlyph