Wednesday, November 22, 2006

how to build qt3 for win32

install the cvs client from http://www.wincvs.org/ its smaller than
the one from cygwin.

then do the following

http://qtwin.sourceforge.net/qt3-win32/compile-net.php

Requirements

* Windows 2000 or XP
* a cvs client (for example from http://www.cvsnt.org), when using the kde cvs server
* Visual Studio .NET or .NET 2003

Get the Q... sources

* by downloading a Q... source snapshot from the KDE-Cygwin snapshot area
* or from the cvs repository

first connect to the cvs server

c:\source> cvs -d :pserver:anonymous@qtwin.cvs.sourceforge.net:/cvsroot/qtwin login

enter empty password
then checkout the sources with

c:\source> cvs -z3 -d :pserver:anonymous@qtwin.cvs.sourceforge.net:/cvsroot/qtwin co -r QT_WIN32_3_3_BRANCH 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

No comments: