[Qt-creator] MS Visual Studio compiler with Qtcreator

Zine eddine Bendjaballah zineeddine.b at hotmail.com
Sun Jan 25 18:34:15 CET 2009


Hi,

I've installed visual studio 2008

> 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\PlatformSDK\include

I did not find these folders in my installation.

It will not be a problem if I will not set these paths?

How to compile Qt for msvs? I have only to run "configure" command?

cheers.

Date: Thu, 22 Jan 2009 15:29:03 +0100
From: jasovsky.marek at gmail.com
To: qt-creator at trolltech.com
Subject: Re: [Qt-creator] MS Visual Studio compiler with Qtcreator

Hi

Nope, it's just that my Qt from git repository has been unpacked to directory F:\Qt\qt-git\qt-snapshot . 

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






Hi,


Date: Thu, 22 Jan 2009 15:07:34 +0100
From: jasovsky.marek at gmail.com
To: qt-creator at trolltech.com

Subject: Re: [Qt-creator] MS Visual Studio compiler with Qtcreator

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

I'm new with Qt. did you mean by qt-git the Qt release number? and by the qt-snapshot the "bin" folder?

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.

To reuse Mingw compiler again (for debugging). An other Qt compilation is necessary?


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





_______________________________________________

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 !

_______________________________________________

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 !

_______________________________________________

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 !

_______________________________________________

Qt-creator mailing list

Qt-creator at trolltech.com

http://lists.trolltech.com/mailman/listinfo/qt-creator




_________________________________________________________________
Découvrez toutes les possibilités de communication avec vos proches
http://www.microsoft.com/windows/windowslive/default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090125/a58ba64d/attachment.html 


More information about the Qt-creator-old mailing list