Chty blog

To content | To menu | To search

Tuesday, May 27 2008

Using Qt4 with Microsoft Visual Studio

Since a few weeks, I really have to show you a nice tool to make Qt programing easier with Microsoft Visual Studio.
I've named autoBuild, a nice tool which integrated Qt compilation inside Microsoft Visual Studio. It could replace the actual commercial solution sold by TrollTech but I don't know the differences between the two solutions, because the one from TrollTech is just available in commercial pack, and I never bought the latter one.

You will find the howto to install it on the Qt Center wiki.

Monday, January 21 2008

A blog-post long guide to the compilation of Qt 4.x with Microsoft Visual Studio

Put your Qt sources in a directory containing no spaces in its path. This is merely a temporary directory; you might move compiler files afterwards.

Configure the environment by running the following command in a command line:

$>"C:[Your Visual Studio install path]\Common7\Tools\vsvars32.bat"
(C:\Program Files\Microsoft Visual Studio 9.0 for me)

Or run Start Menu > All Programs > Microsoft Visual C++ 9.0 Express edition (or Microsoft VisualStudio 2005, or Microsoft Visual Studio 2008) > Visual Studio Tools > Visual Studio 2008 Command Prompt.

$>cd [your Qt directory]
$>configure
$>nmake
$>nmake confclean

That's all for Qt compilation. Hope you enjoyed!