[Qt-creator] MS Visual Studio compiler with Qtcreator

Marek Jasovsky jasovsky.marek at gmail.com
Thu Jan 22 15:07:34 CET 2009


Hi

below find .bat script I am using. (I call it env.bat)

second and third line is used when compiling Qt (you need to have those
paths set)

I start new cmd window, run this script and then just qmake and nmake... of
course, Qt itself must be configured using configure (and this env script
must be started before running configure)

---start
set QT_PATH=F:\Qt\qt-git\qt-snapshot
set QTDIR=F:\Qt\qt-git\qt-snapshot
set QT_INSTALL_HEADERS=F:/Qt/qt-git/qt-snapshot/include

call "C:\Program Files\Microsoft Visual Studio
9.0\Common7\Tools\vsvars32.bat"

set PATH=%QT_PATH%\bin;C:\Program Files\Git\bin;%PATH%
set PATH=C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;%PATH%

set INCLUDE=%QT_PATH%\include\QtCore;
set INCLUDE=%QT_PATH%\include\QtGui;%INCLUDE%
set INCLUDE=%QT_PATH%\include\Qt;%INCLUDE%
set INCLUDE=C:\Program Files\Microsoft Visual Studio
9.0\VC\ATLMFC\INCLUDE;%INCLUDE%
set INCLUDE=C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE;%INCLUDE%
set INCLUDE=C:\Program Files\Microsoft Visual Studio
9.0\VC\PlatformSDK\include;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\Include;%INCLUDE%
------end

compiling whole Qt with examples and webkit took some 2-3 hours.


2009/1/22 Zine eddine Bendjaballah <zineeddine.b at hotmail.com>

>  Hi,
>
> it's kind of you if you could send me off the bat file you use.
>
>
> ------------------------------
> Date: Thu, 22 Jan 2009 14:55:35 +0100
>
> From: jasovsky.marek at gmail.com
> To: qt-creator at trolltech.com
> Subject: Re: [Qt-creator] MS Visual Studio compiler with Qtcreator
>
> Hi
>
> you have to do it manually... when you create makefile with qmake, you give
> there -spec win32-msvc2008 parameter and makefile will be modified so that
> code will be compiled using this compiler, but you have to have whole Qt
> compiled using msvc compiler. (so also path settings have to contain paths
> to exe and include files... for this you can use bat file provided with
> visual studio (command prompt) and update PATH to contain also path to Qt
> binaries...
>
> if you want, I could provide you with bat file I use for setting up this
> evironment
>
> Marek
>
> 2009/1/22 Zine eddine Bendjaballah <zineeddine.b at hotmail.com>
>
>  Hi,
>
> How can I choose the msvs compiler in Qtcreator? I did not find any option
> in this way.
> Is there any documentation explaining the process?
>
> cheers.
>
> ------------------------------
> Date: Thu, 22 Jan 2009 14:46:27 +0100
> From: jasovsky.marek at gmail.com
> To: qt-creator at trolltech.com
> Subject: Re: [Qt-creator] MS Visual Studio compiler with Qtcreator
>
>
> Hi
>
> yes it is possible, I use it this way and have no problems with this. only
> thing you have to pay attention to is, that you cannot use gdb debugger and
> displaying qt stuff in msvc debugger is not always that easy
>
> Regards
>
> Marek
>
> 2009/1/22 Zine eddine Bendjaballah <zineeddine.b at hotmail.com>
>
>  Hi,
>
> I know that's possible to use Qt in visual studio development environment.
> Is it possible to use msvs compiler in Qtcreator instead of Mingw?
>
> Best regards.
>
> Zinou.
>
> ------------------------------
> Découvrez toutes les possibilités de communication avec vos proches<http://www.microsoft.com/windows/windowslive/default.aspx>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
> ------------------------------
> Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger,
> c'est gratuit ! <http://get.live.com/messenger/overview>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
> ------------------------------
> Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger,
> c'est gratuit ! <http://get.live.com/messenger/overview>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090122/b72002e1/attachment.html 


More information about the Qt-creator-old mailing list