[Qt-interest] MSVC tutorial
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Fri Jul 10 17:37:23 CEST 2009
Jonathan Arnold wrote on Friday, July 10, 2009 5:07 PM:
> Is there any step by step instructions for creating an MSVC
> compatible Qt library? The configure options alone are scaring me!
Doesn't http://doc.qtsoftware.com/4.5/install-win.html answer all your questions? It should lead you to a BASIC installation (default features, as detected on your dev machine).
Assuming you have the Professional Version of MSVC, *including* the platform SDK properly setup, and QTDIR refers to your Qt installation, execute in a "Visual Studio command" (INCLUDE, LIB etc. set),
(For example, I have QTDIR and QMAKESPEC set in my user environment variables, even though technically QTDIR is *not* needed to build Qt - also you need to setup PATH to include %QTDIR%\bin!).
1. cd %QTDIR%
2. set QMAKESPEC=win32-msvc2005 (or win32-msvc2008 - refer to %QTDIR%/mkspecs for more options)
(I think this step is optional, as configure will probably auto-detect your environment - refer to above URL!)
3. configure
4. nmake
5. done :)
This should work. qmake will show what features are enabled, given that it had found the proper INCLUDE and LIB, e.g. for DirectX support you need a recent DirectX SDK (http://msdn.microsoft.com/en-us/directx/aa937788.aspx) properly setup! For certain DB driver support you need to have the proper headers and DLLs etc. available.
If you have Visual Studio *Express*, things are slightly more complicated in that you also need to install and setup the platform SDK: Choose one of the following (I lost overview which "platform SDK" is for which Windows edition): http://www.microsoft.com/downloads/en/results.aspx?pocId=&freetext=platform%20sdk&DisplayLang=en
But this one should be good: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc (Windows SDK for Windows Server 2008 and .NET Framework 3.5), it supports Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP, but NOT Windows 2000 anymore, as it seems (download an older SDK for that!).
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list