Build Quassel on Windows » History » Version 6
sph, 01/20/2009 02:45 AM
1 | 1 | sph | h1. Build Quassel on Windows |
---|---|---|---|
2 | 1 | sph | |
3 | 3 | sph | {{toc}} |
4 | 3 | sph | |
5 | 1 | sph | h2. Software Requirements |
6 | 1 | sph | |
7 | 1 | sph | * Windows |
8 | 1 | sph | * "Visual C++ 2005 Express":http://www.microsoft.com/germany/express/legacy/default.aspx |
9 | 1 | sph | * "Visual C++ 2008 Redistributables":http://www.microsoft.com/downloads/details.aspx?displaylang=de&FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf |
10 | 1 | sph | * "Platform SDK":http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb |
11 | 1 | sph | * "OpenSSL":http://www.slproweb.com/products/Win32OpenSSL.html |
12 | 1 | sph | * "msysgit":http://code.google.com/p/msysgit/downloads/list (>= 1.6.0.2) |
13 | 1 | sph | * "CMake":http://www.cmake.org/cmake/resources/software.html |
14 | 1 | sph | * "Qt for Open Source C++ development on Windows":http://trolltech.com/downloads/opensource/appdev/windows-cpp *(not MinGW)* |
15 | 1 | sph | |
16 | 1 | sph | h2. Installation |
17 | 1 | sph | |
18 | 6 | sph | h3. Step 1: Install Visual C++ 2005 Express |
19 | 1 | sph | |
20 | 1 | sph | |
21 | 6 | sph | h3. Step 2: Install Visual C++ 2008 Redistributables. |
22 | 1 | sph | |
23 | 1 | sph | These will be needed for OpenSSL. |
24 | 1 | sph | |
25 | 1 | sph | |
26 | 6 | sph | h3. Step 3: Install Platform SDK |
27 | 1 | sph | |
28 | 1 | sph | |
29 | 6 | sph | h3. Step 4: Install OpenSSL |
30 | 1 | sph | |
31 | 1 | sph | The first error message can be ignored as the Redistributables were installed. |
32 | 1 | sph | |
33 | 1 | sph | Now you have to copy the "C:\OpenSSL\lib\VC\ssleay32MT.lib" file to "C:\OpenSSL\lib\VC\ssleay32.lib". |
34 | 1 | sph | |
35 | 1 | sph | Do the same with "C:\OpenSSL\lib\VC\static\ssleay32MT.lib" to "C:\OpenSSL\lib\VC\static\ssleay32.lib". |
36 | 1 | sph | |
37 | 5 | sph | Now open the "C:\OpenSSL\include\openssl\ossl_typ.h" file with an editor and comment out line 178: |
38 | 5 | sph | <pre>/* typedef struct ocsp_response_st OCSP_RESPONSE; */</pre> |
39 | 1 | sph | |
40 | 1 | sph | |
41 | 6 | sph | h3. Step 5: Install Git |
42 | 1 | sph | |
43 | 1 | sph | |
44 | 6 | sph | h3. Step 6: Install CMake |
45 | 1 | sph | |
46 | 1 | sph | |
47 | 6 | sph | h3. Step 7: Update the environment variables |
48 | 1 | sph | |
49 | 1 | sph | Go to the system settings (Start => Control Panel => System), go to the "Advanced" tab and click on Environment Variables. |
50 | 1 | sph | |
51 | 1 | sph | First you'll have to edit the "Path" variable. Append the following to the current value: |
52 | 1 | sph | <pre>C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin;C:\Program Files\Git\bin;C:\OpenSSL\bin</pre> |
53 | 1 | sph | |
54 | 1 | sph | Next, create the following new system variables: |
55 | 1 | sph | |
56 | 1 | sph | * LIB: |
57 | 1 | sph | <pre>C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib;C:\OpenSSL\lib\VC\static;C:\OpenSSL\lib</pre> |
58 | 1 | sph | * INCLUDE: |
59 | 1 | sph | <pre>C:\Program Files\Microsoft SDKs\Windows\v6.1\Include;C:\OpenSSL\include</pre> |
60 | 1 | sph | * QMAKESPEC: |
61 | 1 | sph | <pre>win32-msvc2005</pre> |
62 | 1 | sph | |
63 | 6 | sph | h3. Step 8: Compile and Install Qt |
64 | 1 | sph | |
65 | 1 | sph | Create a directory (e.g. C:\dev\) and unpack Qt. |
66 | 1 | sph | |
67 | 1 | sph | Now open the Visual Studio 2005 command line. |
68 | 1 | sph | |
69 | 1 | sph | And cd to the directory containing Qt. Now you can configure the Qt installation with the following command: |
70 | 1 | sph | <pre>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</pre> |
71 | 1 | sph | |
72 | 1 | sph | Then you can compiled Qt with these commands: |
73 | 1 | sph | <pre> |
74 | 1 | sph | nmake sub-winmain |
75 | 1 | sph | nmake sub-moc |
76 | 1 | sph | nmake sub-rcc |
77 | 1 | sph | nmake sub-uic |
78 | 1 | sph | nmake sub-corelib |
79 | 1 | sph | nmake sub-xml |
80 | 1 | sph | nmake sub-network |
81 | 1 | sph | nmake sub-gui |
82 | 1 | sph | nmake sub-sql |
83 | 1 | sph | nmake sub-script |
84 | 1 | sph | nmake sub-testlib |
85 | 1 | sph | nmake sub-opengl |
86 | 1 | sph | nmake sub-xmlpatterns |
87 | 1 | sph | nmake sub-phonon |
88 | 1 | sph | nmake sub-svg |
89 | 1 | sph | nmake sub-webkit |
90 | 1 | sph | nmake sub-plugins |
91 | 1 | sph | nmake sub-tools |
92 | 1 | sph | nmake sub-tools-qdoc3 |
93 | 1 | sph | </pre> |
94 | 1 | sph | |
95 | 1 | sph | You can close the prompt after this. |
96 | 1 | sph | |
97 | 1 | sph | |
98 | 6 | sph | h3. Step 9: Update the environment variables again |
99 | 1 | sph | |
100 | 1 | sph | After installing Qt, you will have to append the following: |
101 | 1 | sph | |
102 | 1 | sph | * Path |
103 | 1 | sph | <pre>;C:\dev\qt-win-opensource-src-4.4.3\bin</pre> |
104 | 1 | sph | |
105 | 1 | sph | * LIB: |
106 | 1 | sph | <pre>;C:\dev\qt-win-opensource-src-4.4.3\lib</pre> |
107 | 1 | sph | |
108 | 1 | sph | * INCLUDE: |
109 | 1 | sph | <pre>;C:\dev\qt-win-opensource-src-4.4.3\include</pre> |
110 | 1 | sph | |
111 | 1 | sph | |
112 | 6 | sph | h3. Step 10: Compile Quassel |
113 | 1 | sph | |
114 | 1 | sph | Open a new Visual Studio 2005 command line and go to the "C:\dev" directory again. Use git to download the Quassel source code. |
115 | 1 | sph | <pre>git clone git://git.quassel-irc.org/quassel.git</pre> |
116 | 1 | sph | |
117 | 1 | sph | 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. |
118 | 1 | sph | |
119 | 1 | sph | 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: |
120 | 1 | sph | <pre>cmake -G"NMake Makefiles" C:\dev\quassel -DSTATIC=1 -DWANT_CORE=ON -DWANT_QTCLIENT=ON -DWANT_MONO=ON</pre> |
121 | 1 | sph | |
122 | 1 | sph | And after that: |
123 | 1 | sph | <pre>nmake</pre> |
124 | 1 | sph | |
125 | 1 | sph | This will build Quasselcore, Quasselclient and Quasselmonolithic which can be found in the "C:\dev\build" directory. |
126 | 2 | sph | |
127 | 2 | sph | |
128 | 2 | sph | h2. Related links |
129 | 2 | sph | |
130 | 2 | sph | * "German tutorial by Datafreak":http://www.datafreak.eu/2008/11/build-qt-and-quassel-under-windows/ |