Translated using Weblate.
[wammu.git] / INSTALL.en_GB
blobd48ca8a9f30c29822b261a73b7870af8e302c73f
1 Wammu installation
2 ==================
4 Packages for Linux
5 ==================
7 Many distributions come with pre-built Wammu binaries, if you can use them,
8 it is definitely the easiest thing. There are also binary packages of latest
9 release built for many distributions available on Wammu web site
10 <http://wammu.eu/download/wammu/>.
13 Building from Sources
14 =====================
16 It uses standard distutils, so:
18     python setup.py build
19     sudo python setup.py install
21 You need python-gammu and wxPython [1] (Unicode enabled build) installed to
22 run and install this program. If you want support for scanning Bluetooth
23 devices, you need PyBluez [2]. For incoming events notifications, you need
24 dbus-python [3].
26 For Windows you also have to install Pywin32 [4].
28 If you want to obey dependency checking at build time for any reason, you
29 can use --skip-deps option.
31 [1]: http://wxpython.org/
33 [2]: http://code.google.com/p/pybluez/
35 [3]: http://www.freedesktop.org/wiki/Software/DBusBindings
37 [4]: https://sourceforge.net/projects/pywin32/
40 Cross compilation for Windows on Linux
41 ======================================
43 You need Wine with installed all dependencies (see above section where to
44 get them).
46 Building installer for wammu for Python is easy:
48     wine c:\\python25\\python setup.py build --skip-deps bdist_wininst
50 However this way user needs to also install all dependencies, what is really
51 not comfortable. This should be solved using py2exe [5]:
53     wine c:\\python25\\python setup.py build --skip-deps py2exe
55 But except of this, you need to do a bit of manual tuning. To make py2exe
56 work in Wine, you need to fix it's binary using PE Tools (described in bug
57 report on Wine [w1]) and copy some extra libraries which are missing to dist
58 directory (python25.dll and libraries from wxPython). See script
59 admin/make-release which automates this copying.
61 Then you can use InnoSetup[6] to build installer for Wammu:
63     wine c:\\Program\ Files\\Inno\ Setup\ 5/\\ISCC.exe wammu.iss
65 [5]: http://www.py2exe.org/
67 [6]: http://www.jrsoftware.org/isinfo.php
69 [w1]: http://bugs.winehq.org/show_bug.cgi?id=3591