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://josefsson.org/gsasl/releases/ libgsasl, sources, linking to: libgsasl.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 Remember to apply the patch you find there too. 5. http://dev.mysql.com/downloads/mysql/5.0.html MySQL, auth & storage module, binary, linking to: libmysql.lib 6. 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. 7. http://www.zlatkovic.com/pub/libxml/ http://subversion.tigris.org/ xsltproc (libxml) for Windows and Subversion (svn-win32) to generate version.h from SVN using version.xsl. Put them into the executable PATH. Alternatively you can disable jabberd2.rc and version.xsl compilation in the project. 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 , 2008-01-30