PDA

View Full Version : Compiling Qt with Visual Studio



circle
4th April 2008, 17:41
Hi
I'm wondering if it is possible to compile Qt code with a third-party compiler like visual C++ ? I've tried to compile the most basic code examples with visual studio without any success. Visual studio is pointed to both the library location and the include folder, but I only geta bunch of errors when compiling. If it's possible can someone tell me how to setup visual studio. I'm using the open source version of Qt.

thanks!

GreyGeek
6th April 2008, 03:27
In order to use Qt with Visual Studio C++ you need to install the Qt VS integration program. That program is available only with the commercial license.

Allow me to suggest that you download QDevelop from its site, http://qdevelop.free.fr/ , and also install MinGW as the compiler. http://www.mingw.org/download.shtml

Otherwise, buy a license so you can use MS VS C++.

coderbob
6th April 2008, 05:14
Open source compiles fine for me without the non free integration.

What version of Qt are you using?
What version of VS C++?

and what errors exactly are you getting?

Bob

Edit: Might want to look at this first to see if this solves your problems http://www.qtcentre.org/forum/f-newbie-4/t-compiling-4042.html
Edit2: You are going to need to compile everything, follow the INSTALL instructions included with http://trolltech.com/developer/downloads/qt/windows (Do not use the miniGW version if you wish to use MS VS)

wysota
6th April 2008, 10:53
I'm wondering if it is possible to compile Qt code with a third-party compiler like visual C++ ?
Sure. See this article - Qt4 with Visual Studio


In order to use Qt with Visual Studio C++ you need to install the Qt VS integration program.
This is no longer true. The open source version works fine with MSVC as well. You just don't have the extra buttons.

GreyGeek
14th April 2008, 18:04
Sure. See this article - Qt4 with Visual Studio

This is no longer true. The open source version works fine with MSVC as well. You just don't have the extra buttons.

Thanks! That's nice to know.