forked from jabberd2/jabberd2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.win32
110 lines (74 loc) · 4.14 KB
/
README.win32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
jabberd2 for win32 guide
========================
This guide describes briefly how to build jabberd2 on Windows platforms.
NOTE: Windows platforms prior to Windows 2000 are NOT supported, so this won't
work on Windows 95/98/ME/NT.
Building jabberd2 win32 with Visual Studio 2005
-----------------------------------------------
Starting from revision #229 complete win32 support with Visual Studio 2005
project files is present and maintained in the repository "win32" folder.
All libraries shall be installed locally and added to VC Include files and
Library files paths using:
Tools->Options->Project and Solutions->VC++ Directories.
All libraries' DLL files shall be copied to win32/bin folder and win32/bin/sasl
folder for SASL plugins respectively.
Prerequisites:
1. http://josefsson.org/libidn/releases/
libidn, sources, linking to: libidn.lib, since there are no VC project
files provided along with sources, please use the ones I provide at:
http://www.nanoant.com/projects/jabberd2-win32#download
2. http://www.slproweb.com/products/Win32OpenSSL.html
Win32 OpenSSL, binaries, linking to: libeay32MT.lib ssleay32MT.lib
3. http://sourceforge.net/project/showfiles.php?group_id=10127&package_id=11277
Expat XML Parser win32, binaries, linking: libexpat.lib
4. http://www.oracle.com/technology/software/products/berkeley-db/index.html
Berkley DB, sources, for Cyrus SASL (maybe jabberd2 too in the future),
convert & use build_windows projects.
5. http://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.22.tar.gz
Cyrus SASL, sources, linking to: libsasl.lib, build it on your own, I use:
nmake -f NTMakefile STATIC=no DB_INCLUDE=(..)build_windows \
DB_LIBPATH=(..)build_windowsRelease DB_LIB=libdbXXX.lib
Note: I don’t use GNU SASL because there is no official VC support I can
find. Also win32 Vortex distribution doesn’t work well with VC8 CRT, since
gsasl do not provide its own free function when it allocates memory.
6. http://dev.mysql.com/downloads/mysql/5.0.html
MySQL, auth & storage module, binary, linking to: libmysql.lib
7. http://www.sqlite.org/download.html
SQLite, auth & storage module, source, linking to: sqlite3.lib. Since
there are no libraries for VC except DLLs you shall make one using
sqlite-source-3.x.zip from SQLite downloads.
8. http://wix.sourceforge.net/releases/
WiX 3.0.3029.0 or newer for building MSI jabberd2 setup inside VS2005 IDE
After all prerequisite libraries are configured for use within VC open
win32/jabberd2.sln and build all projects.
You should have now fresh & ready Windows build of jabberd2 at win32/bin folder!
Building jabberd2 win32 with MinGW
----------------------------------
NOTE: MinGW is NOT supported by the jabberd2 project team. If you have problems,
you're welcome to post to jabberd@jabberstudio.org, but thats all. If you file
a bug that can't be reproduced under Unix or MSVC, then the bug will be assumed
not to exist. If anyone would like to step up to maintain this port properly,
please contact us.
You'll need MinGW and MSys installed to get this going, available here:
http://www.mingw.org/
At the time of writing, the latest MinGW is 3.1.0-1. If you get this
version, you'll need to also get w32api 2.5 (to get the aforementioned
DNS resolution APIs). Later versions of MinGW should include these.
Once all this kit is up and running, its business as usual:
% ./configure
% make
% make install
Note that you'll still need the various external packages as stated at Visual
Studio 2005 section (eg MySQL dev packages) available in order to build a
working server. Getting these up and running under MinGW is outside the scope of
this short guide.
Thanks
------
I'd like to thank Robert Norris for former win32 guide & support.
Also huge thanks go out to Peter Hinz for the original port that was
cannibalised pretty seriously by my predecessor that wouldn't have had a chance
if he hadn't seen his code.
Also I'm sending thanks to Tomasz Sterna (current project maintainer) for
letting me in with my win32 modifications and support.
--
Adam Strzelecki <ono@java.pl>, 2007-07-30