PDA

View Full Version : Use VC2005 to compile Qt program (4.3.0)



firegun9
7th June 2007, 02:05
Hi,

I have the open source version of Qt 4.3.0. My question is NOT how to compile Qt itself. I have already have it compiled with MinGW. The sample programs run perfectly.

My question is how do I compile my own Qt program under VC 2005?
Which include and lib paths should I add to VC, and which libraries I will need? ( I use OpenGL.)

I google that but not get any good answer. In my thoughts, compiling a C++ program only needs include files and libraries. That's it. Even Qt is compiled by MinGW, as long as I provide the right library and include files, I should be able to compile the program under any compiler, especially I am under the same platform, which is windows XP.
Please correct me if I am wrong.

ChristianEhrlicher
7th June 2007, 07:31
Take a look here: http://wiki.qtcentre.org/index.php?title=Qt4_with_Visual_Studio

You must compile Qt with msvc if you want to build your apps with msvc.

JonathanForQT4
8th June 2007, 15:49
this link should also help:

http://qtnode.net/wiki/Qt4_with_Visual_Studio

enjoy

Jonathan

Methedrine
8th June 2007, 16:04
This is also an interesting approach, using Visual Studio makefile projects:

http://www.telldus.se/qt/tutorial.pdf