Q... Windows Edition
Compile Instructions:
Packages:

Visual Studio .NET (2003) compiling instructions

Requirements

  • Windows 2000 or XP
  • A svn client for svn checkouts (for example Subversion or TortoiseSVN)
  • Visual Studio .NET or .NET 2003

Get the Q... sources

  • by downloading a Qt 3 source snapshot from the qtwin download area
  • or from the svn repository (qtwin.svn.sourceforge.net)

    checkout the sources with

    c:\source>  svn co https://qtwin.svn.sourceforge.net/svnroot/qtwin/qt-3/trunk qt-3

Compiling Qt with command line tools

  • Open a cmd shell
  • Setup your compiler environment (please adjust the path to your needs)
    c:\source> "c:\Programme\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat"
  • Setup Q.. environment
    c:\source> set QTDIR=< qt3 source root>
    c:\source> set PATH=%QTDIR%\bin;%PATH%
    c:\source> set QMAKESPEC=win32-msvc.net
  • Configure and build the source
    The script first creates link_includes.exe and configure.exe which are needed for bootstrap the build process. link_includes copies all relevant Qt-headers into the include-directory. configure.exe is the replacement for the ./configure-script unter Unix/Linux. After that, qmake.exe is build and the compilation gets started.
    c:\source> cd < qt3 source root >
    c:\source\qt-3> configure.bat [-fast] [-verbose]

    configure knows some of the parameters of the x11 release configure script like -fast or -verbose.
    For a full list see bin\configure.exe -help.

    This should build the whole Qt release. If it breaks you can restart compiling with

    c:\source\qt-3> nmake [< target >]

    for a list of all available targets see the toplevel Makefile

  • Start Q.. applications
    c:\source\qt-3> designer
    c:\source\qt-3> assistant
    c:\source\qt-3> linguist
    c:\source\qt-3> cd tutorial\t1
    c:\source\qt-3\tutorial\t1> t1

Visual Studio NET Notes

  • Do not use spaces in the Qt source path, it will produce weired results
  • by Ralf Habacker: Linking the shared Qt library needs much time because the incremental linking support does not work reliable for building the Qt library. You can reduce linking time of your application by using the -static configure option.
 
Prev:MS Visual C++ 6.0Next:Visual C++ 2005 Express Edition

Hosted by SourceForge