PDA

View Full Version : Qt in VC++ problem



sujan.dasmahapatra
22nd November 2009, 08:58
Dear Friends
I am trying to build Qt within VC++....
I am doing these.

Download and install qt-sdk-win-opensource-2009.01.1.
opening the command prompt for VC++ by vc++->tool->opencommandprompt
changing to the directory C:\Qt\2009.04\qt
configure -no-sql-sqlite -no-qt3support -no-opengl -platform win32-msvc2005 -no-libtiff -no-dbus -no-phonon -no-phonon-backend -no-webkit
nmake
///////////////////////////////////////////////////////////////////////////////////////
errors: In <helpviewer.h> file QWebView : No such file or directory
bin: return code
qwebview.h: no such file or directory
I am buiding with -no-webkit mode so why I am getting these error..
How will I sort it out. Any help would highly appreciated.
Thanks

mattc
22nd November 2009, 10:41
I configure Qt with much the same switches and it works. This is my configure command:

configure -no-sql-sqlite -no-qt3support -no-opengl -platform win32-msvc2008 -no-libtiff -no-dbus -no-phonon -no-phonon-backend -no-webkit


Some things you might try:


set the %QTDIR% environment variable to C:\Qt\2009.04\qt (Control Panel/System/Advanced/Environment Variables. I usually do this only for the current user)
add %QTDIR%\bin to the %PATH% variable for the current user
change "win32-msvc2005" to "win32-msvc2008" in the configure command
open the real VS command prompt. In the screenshot you have a normal command prompt, NOT the VS command prompt (it should read "Visual Studio 2008 command prompt").