~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to doc/build-win.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Requirements
 
2
------------
 
3
 
 
4
* You need Qt 4.2 or higher to build Psi. Just download and install the MingW32 
 
5
self-installer. All the instructions below are performed from within the Qt command 
 
6
prompt (found in the Start menu)
 
7
 
 
8
* You need QCA 2.0 and the QCA OpenSSL plugin, which you can get at
 
9
                http://delta.affinix.com/qca/2.0/beta2
 
10
Instructions on how to build these packages can be found below.
 
11
 
 
12
* If you want to use the QCA OpenSSL plugin on Windows, you will need to
 
13
download and install the OpenSSL package from
 
14
                http://www.openssl.org/related/binaries.html
 
15
 
 
16
The 'Building QCA' and 'Building QCA the OpenSSL plugin' sections can be 
 
17
skipped by downloading the sources of these packages, and unpackaging them
 
18
in third-party/qca (see the INSTALL file for the exact location of each
 
19
package). Then, uncomment the 'CONFIG += qca-static' in conf_windows.pri.
 
20
 
 
21
 
 
22
Building QCA
 
23
------------
 
24
 
 
25
* Edit crypto_win.prf and change the QCA_PATH to the dir where you unpacked QCA. Then, 
 
26
change -lqca to -lqca2. 
 
27
 
 
28
* Copy crypto_win.prf to the mkspecs/features subdir of your Qt dir, and rename it to 
 
29
crypto.prf.
 
30
 
 
31
* In the src/ dir, run the following commands: 
 
32
 
 
33
   qmake
 
34
   mingw32-make
 
35
 
 
36
* Copy lib/qca2.dll to your system dir (e.g. \Windows\System32) 
 
37
 
 
38
 
 
39
 
 
40
Building the QCA OpenSSL plugin
 
41
-------------------------------
 
42
 
 
43
* Go to the dir where you unpacked OpenSSL. In the lib\MingW subdir of that dir, copy the 
 
44
files ssleay32.a and libeay32.a to ssleay32.lib and libeay32.lib respectively.
 
45
 
 
46
* Edit qca-openssl.pro, and change the OPENSSL_PREFIX in 
 
47
the windows section to point to the dir where you installed OpenSSL (e.g. C:/OpenSSL). 
 
48
Change -L$$OPENSSL_PREFIX/lib into -L$$OPENSSL_PREFIX/lib/MingW.
 
49
 
 
50
* Run the following commands: 
 
51
 
 
52
   qmake
 
53
   mingw32-make
 
54
 
 
55
 
 
56
 
 
57
Building Psi
 
58
------------
 
59
 
 
60
* Edit src/src.pro in the Psi tree, and remove the line CONFIG += DEBUG.
 
61
 
 
62
* From the toplevel dir in your tree, run the following commands: 
 
63
 
 
64
   qmake
 
65
   mingw32-make
 
66
 
 
67
* There should now be a binary psi.exe in src/release. 
 
68
 
 
69
 
 
70
 
 
71
Packaging Psi
 
72
-------------
 
73
 
 
74
To package everything up into a self-containing dir, edit win32/Makefile to reflect your 
 
75
local setup, and run
 
76
 
 
77
   mingw32-make -C win32
 
78
 
 
79
This should make a dir win32/psi with all the necessary files.