Build Quassel on Windows » History » Version 22
« Previous -
Version 22/35
(diff) -
Next » -
Current version
JabLuszko, 06/14/2010 10:43 PM
Building Quassel on Windows¶
- Table of contents
- Building Quassel on Windows
- Software Requirements
- Installation
- Step 1: Install Visual C++ 2008 Express
- Step 2: Install Visual C++ 2008 Redistributables.
- Step 3: Install Platform SDK
- Step 4: Install DirectX SDK
- Step 5: Install OpenSSL
- Step 6: Install Git
- Step 7: Install CMake
- Step 8: Update the environment variables
- Step 9: (Optional Install PostgreSQL and Update the environment variables)
- Step 10: Compile and Install Qt
- Step 11: Update the environment variables again
- Step 12: Compile Quassel
- OpenSSL unresolved symbols
- Related links
Software Requirements¶
- Windows
- Visual C++ 2008 Express
- Visual C++ 2008 Redistributables
- Platform SDK
- DirectX SDK
- OpenSSL
- msysgit (>= 1.6.0.2)
- CMake
- Qt for Open Source C++ development on Windows (not MinGW) (>= 4.5.3)
- PostgreSQL (Optional for PostgreSQL-Support)
Installation¶
Step 1: Install Visual C++ 2008 Express¶
Step 2: Install Visual C++ 2008 Redistributables.¶
These will be needed for OpenSSL.
Step 3: Install Platform SDK¶
Step 4: Install DirectX SDK¶
Step 5: Install OpenSSL¶
The first error message can be ignored as the Redistributables were installed.
Step 6: Install Git¶
Step 7: Install CMake¶
Step 8: Update 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:\Programme\Microsoft SDKs\Windows\v7.0\Bin;C:\Program Files\Git\bin;C:\OpenSSL\bin
Next, create the following new system variables:
- LIB:
C:\Programme\Microsoft SDKs\Windows\v7.0\Lib;C:\Programme\Microsoft DirectX SDK (February 2010)\Lib;C:\OpenSSL\lib\VC\static
- INCLUDE:
C:\Programme\Microsoft SDKs\Windows\v7.0\Include;C:\Programme\Microsoft DirectX SDK (February 2010)\Include;C:\OpenSSL\include
- QMAKESPEC:
win32-msvc2008
Step 9: (Optional Install PostgreSQL and Update the environment variables)¶
Install PostgreSQL and edit the "Path","LIB" and "INCLUDE" variable. Append the following to the current value:- Path
;C:\Programme\PostgreSQL\8.4\bin
- LIB:
;C:\Programme\PostgreSQL\8.4\lib
- INCLUDE:
;C:\Programme\PostgreSQL\8.4\include
Step 10: Compile and Install Qt¶
Create a directory (e.g. C:\dev\) and unpack Qt.
Now open the Visual Studio 2008 command line.
And cd to the directory containing Qt. Now you can configure the Qt installation with the following command:- Static without PostgreSQL-Support:
configure.exe -platform win32-msvc2008 -static -release -qt-sql-sqlite -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -openssl-linked -confirm-license -opensource -no-phonon -no-dbus -webkit -nomake demos -nomake examples OPENSSL_LIBS="-lssleay32MD -llibeay32MD" -l gdi32
- Shared with PostgreSQL-Support:
configure.exe -platform win32-msvc2008 -shared -release -qt-sql-sqlite -qt-sql-psql -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -openssl-linked -confirm-license -opensource -phonon -phonon-backend -nomake demos -nomake examples OPENSSL_LIBS="-lssleay32MD -llibeay32MD" -l gdi32
Then you can compiled Qt with these commands:
nmake
You can close the prompt after this.
Step 11: Update the environment variables again¶
After installing Qt, you will have to append the following:
- Path
;C:\dev\qt-everywhere-opensource-src-4.6.2\bin
- LIB:
;C:\dev\qt-everywhere-opensource-src-4.6.2\lib
- INCLUDE:
;C:\dev\qt-everywhere-opensource-src-4.6.2\include
Step 12: Compile Quassel¶
Open a new Visual Studio 2008 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 -DWITH_PHONON=OFF -DCMAKE_BUILD_TYPE=Release
And after that:
nmake
This will build Quasselcore, Quasselclient and Quasselmonolithic which can be found in the "C:\dev\build" directory.
OpenSSL unresolved symbols¶
If while building quasselclient you get errors:
libeay32MT.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertFreeCertificateContext@4 referenced in function _capi_free_key libeay32MT.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertGetCertificateContextProperty@16 referenced in function _capi_get_prov_info libeay32MT.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertOpenStore@20 referenced in function _capi_open_store
Open build\src\CMakeFiles\quasselclient.dir\build.make, find "Linking CXX executable ..\quasselclient.exe" and few lines lower there should be plenty of libs files - just add "Crypt32.lib" there and try nmake again