hi, i consumed approximately one month to build Qt source with msvc2005 and
integrate it with msvc2005. there is my experiment to do that, and it was succeed.
1- I extracted the Qt source in (c:\Qt\4.3.2)
2- I added the PATH to the system environment as follows
- right click on my computer -> properties -> advanced->Environment variables-> new
- variable name = PATH
- variable value = c:\Qt\4.3.2\bin
3- I configured Qt as follows
- start -> All programs->visual studio 2005->visual studio tools->visual studio 2005 command prompt
- C:\Program Files\Microsoft Visual Studio 8\VC> cd\
- c:\>cd qt
- c:\qt>cd 4.3.2
- write (configure –platform win32-msvc2005 –debug-and-release –fast –prefix c:\Qt\4.3.2) in the cmd window.
4- After configuring Qt then build it by typing nmake in the command prompt.
5- Then I execute Qt visual studio integration program.
6- Then in visual studio Tools->options->Qt->builds and click add write Qt version (e.g Qt-4.3.2) and the directory where Qt is installed( e.g c:\Qt\4.3.2).
7- Then I added QTDIR to the system and user environment as follows
- right click on my computer -> properties -> advanced->Environment variables-> new
variable name = QTDIR
variable value = c:\qt\4.3.2
8- Then in visual studio tools-> options->projects and solutions-> vc++ directories-> include files I added
$(QTDIR)\include
$(QTDIR)\include\Qt
$(QTDIR)\include\QtCore
$(QTDIR)\include\QtGui
$(QTDIR)\include\QtNetwork
$(QTDIR)\include\QtSvg
$(QTDIR)\include\QtXml
$(QTDIR)\include\Qt3Support
$(QTDIR)\include\ActiveQt
and in library files I added
$(QTDIR)\lib
and in source files i added
$(QTDIR)\src
9- Then I started to make a project just as follows
file -> new->project->Qt projects->Qt Applecation
10- Then I compiled it as follows
build->build solution
11- Then execute the exe
now it is working fine.