Project

General

Profile

Build Quassel on Windows » History » Version 1

Version 1/35 - Next » - Current version
sph, 01/17/2009 07:39 PM


Build Quassel on Windows

Software Requirements

Installation

Step 1: Visual C++ 2005 Express

Step 2: Visual C++ 2008 Redistributables.

These will be needed for OpenSSL.

Step 3: Platform SDK

Step 4: OpenSSL

The first error message can be ignored as the Redistributables were installed.

Now you have to copy the "C:\OpenSSL\lib\VC\ssleay32MT.lib" file to "C:\OpenSSL\lib\VC\ssleay32.lib".

Do the same with "C:\OpenSSL\lib\VC\static\ssleay32MT.lib" to "C:\OpenSSL\lib\VC\static\ssleay32.lib".

Now open the "C:\OpenSSL\include\openssl\ossl_typ.h" file with an editor and comment out line 178.

Step 5: Git

Step 6: CMake

Step 7: Fixing the environment variables

Go to the system settings (Start => Control Panel => System), go to the "Advanced" tab and click on Environment Variables.

First you'll have to edit the "Path" variable. Append the following to the current value:

C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin;C:\Program Files\Git\bin;C:\OpenSSL\bin

Next, create the following new system variables:

  • LIB:
    C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib;C:\OpenSSL\lib\VC\static;C:\OpenSSL\lib
  • INCLUDE:
    C:\Program Files\Microsoft SDKs\Windows\v6.1\Include;C:\OpenSSL\include
  • QMAKESPEC:
    win32-msvc2005

Qt installieren. Dafür legt man sich den ein Verzeichnis (z.B. C:\dev\) an und entpackt Qt.
h3. Step 8: Qt

Create a directory (e.g. C:\dev\) and unpack Qt.

Now open the Visual Studio 2005 command line.

And cd to the directory containing Qt. Now you can configure the Qt installation with the following command:

configure -platform win32-msvc2005 -static -release -qt-sql-sqlite -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -openssl-linked -prefix C:\dev\qt-win-opensource-src-4.4.3 -confirm-license

Then you can compiled Qt with these commands:

nmake sub-winmain
nmake sub-moc
nmake sub-rcc
nmake sub-uic
nmake sub-corelib
nmake sub-xml
nmake sub-network
nmake sub-gui
nmake sub-sql
nmake sub-script
nmake sub-testlib
nmake sub-opengl
nmake sub-xmlpatterns
nmake sub-phonon
nmake sub-svg
nmake sub-webkit
nmake sub-plugins
nmake sub-tools
nmake sub-tools-qdoc3

You can close the prompt after this.

Step 9: Updating the environment variables

After installing Qt, you will have to append the following:

  • Path
    ;C:\dev\qt-win-opensource-src-4.4.3\bin
  • LIB:
    ;C:\dev\qt-win-opensource-src-4.4.3\lib
  • INCLUDE:
    ;C:\dev\qt-win-opensource-src-4.4.3\include

Step 10: Quassel

Open a new Visual Studio 2005 command line and go to the "C:\dev" directory again. Use git to download the Quassel source code.

git clone git://git.quassel-irc.org/quassel.git

This will create a new directory "quassel" containing the source. When you want to update Quassel later, you just have to go to this directory (C:\dev\quassel) and do a "git pull" to update the source code.

Next, create a new directory in "C:\dev" in which Quassel will be built. In our case, we will simply call it "build". Change to this directory and enter the following command to configure Quassel:

cmake -G"NMake Makefiles" C:\dev\quassel -DSTATIC=1 -DWANT_CORE=ON -DWANT_QTCLIENT=ON -DWANT_MONO=ON

And after that:

nmake

This will build Quasselcore, Quasselclient and Quasselmonolithic which can be found in the "C:\dev\build" directory.