Release 1.25.0 -- Buddy Idle Time, RTF
[siplcs.git] / contrib / mingw-cross-compile / README.txt
blobde441464a39260053069c19387fccea4330acf82
1 Introduction
2 ============
4 With these instructions you will be able to generate libsipe.dll on a Linux
5 machine that is compatible with the official Pidgin Windows releases.
7 The approach described here is based on this wiki page:
9    http://code.google.com/p/pidgin-privacy-please/wiki/HowToCrossCompileForWindowsAgainstLatestPidgin
11 The build has been verified to work at the time this text was written. When
12 you read this some things in Pidgin or MinGW might changed, so make sure to
13 check the comments on that wiki page for updates.
16 Preparation
17 ===========
19 You'll need a Linux machine with the following MinGW cross-compilation
20 packages installed:
22 Ubuntu:
23    sudo apt-get install mingw32 mingw32-binutils mingw32-runtime
25 Fedora:
26    sudo yum install mingw32-gcc
28 This will most likely work also for other Linux distros, but you'll have
29 to check what names the MinGW cross-compilation packages are for your
30 distro.
32 If you are trying to build the source code from the git repository then
33 you'll need additional tools installed, at least:
35    autoconf
36    automake
37    flex
39 If you want to build the NSIS installer package then you'll need to install:
41    mingw32-nsis
44 Build
45 =====
47  - [pidgin-sipe source code from git instead from a release tarball]
48    run the following commands inside the git work area:
50       ./autogen.sh
51       ./configure
52       make dist-gzip
54    This will generate pidgin-sipe-<VERSION>.tar.gz
56  - create an empty directory and cd into it
58  - run contrib/mingw-cross-compile/fetch.sh from pidgin-sipe source
59    * make sure to check for fetch & unpack errors before proceeding!
61  - cd into build-<...REPLACE PIDGIN VERSION HERE...>/pidgin-<...REPLACE PIDGIN VERSION HERE...>
63  - copy/unpack pidgin-sipe source code tree into into current directory
65  - run
67      cp pidgin-sipe-<...REPLACE PIDGIN-SIPE VERSION HERE...>/contrib/mingw-cross-compile/local.mak .
69  - run (this is one line on the command line!)
71      make -C pidgin-sipe-<...REPLACE PIDGIN-SIPE VERSION HERE...>/src/core
72           -f Makefile.mingw
74      (to compile without SSPI support add " USE_SSPI=" to the command line)
76 If everything goes well you should now have
78   pidgin-sipe-<...REPLACE PIDGIN-SIPE VERSION HERE...>/src/core/libsipe.dll
80 which you can copy into your Pidgin Windows installation directory.
82 NOTE: PLEASE make sure that there is NO OTHER libsipe.dll in that installation
83       or in your PATH!
86 NSIS Installer Package
87 ======================
89 After you have successfully executed the build:
91  - run (this is one line on the command line!)
93      PIDGIN_TREE_TOP=.. make
94           -C pidgin-sipe-<...REPLACE PIDGIN-SIPE VERSION HERE...>
95           -f Makefile.mingw cross-compile-nsis
97      (to compile without SSPI support add " USE_SSPI=" to the command line)
99 If everything goes well you should now have
101   pidgin-sipe-<...REPLACE PIDGIN-SIPE VERSION HERE...>.exe
103 which you now can execute on your Windows machine.