root/trunk/README.osx

Revision 9454, 2.9 kB (checked in by asterix, 5 months ago)

update gtk link in README.osx. fixes #3820

Line 
1Introduction
2------------
3
4This is an alpha release of Gajim for OS/X using native GTK+. It is not finished
5nor is it relatively stable. The native port of GTK+ is alpha and not stable
6yet, though it has proven to be usable for Gajim. Having said that it is usable,
7basic functionality works. See the TODO file for a list of what is and is not
8working.
9
10
11
12Installing
13----------
14
15Install the GTK+ framework into your /Library/Frameworks directory. It can be
16found at http://codepunks.org/gajim.
17NOTE: If you're able to make it work with official GTK release, we are VERY interested !!
18
19Copy the Gajim.app into the /Applications directory or any other directory.
20
21
22Installing language dictionaries
23--------------------------------
24
25The codepunks.org build of the GTK+ framework comes with the US English
26dictionary pre-installed. If you wish to install a different dictionary download
27the appropriate dictionary from here:
28
29http://ftp.gnu.org/gnu/aspell/dict/
30
31Then follow these instructions:
32
33source /Library/Frameworks/GTK+.framework/Versions/Current/bin/env
34tar -jxf aspell-<lang>-<version>.tbz2
35cd aspell-<lang>-<version>
36./configure
37make
38make install
39
40
41Compiling Requirements
42----------------------
43These instructions were gathered for building a universal binary on a PPC. The
44steps for building on an i386 should be essentially the same.
45
46Requirements:
47- OS/X 10.4, i386 or ppc
48- Universal MacPython 2.5
49    http://www.pythonmac.org/packages/py25-fat/index.html
50- Latest XCode (2.4.0 or greater)
51- py2app
52    http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html
53
54Install all of the requirements. Make sure that the universal MacPython is
55installed before py2app. Then ensure that this is the first python in your
56PATH.
57
58    export PATH=/Library/Frameworks/Python.framework/Versions/2.5/bin:$PATH
59
60Then install py2app.
61
62
63Compiling
64---------
65
66In the top level run the configure script. If this is source is from subversion
67then run the autogen.sh script. Follow it up with a make:
68
69    ./configure
70        or
71    ./autogen.sh
72    make
73
74Once that is done Gajim can be run from the source tree. You may also create an
75app bundle suitable for use or distribution. To do that run:
76
77    python setup_osx.py build
78
79The Gajim.app bundle is created in the dist directory. This bundle is ready
80for use as is. Copy it to your /Applications directory and you're good to go.
81
82You now have a self contained (almost, requires GTK+.framework still) universal
83native build of Gajim.
84
85Optionally to create a distribution of the Gajim app bundle do:
86
87    python setup_osx.py dist
88
89
90
91Development
92-----------
93
94It is possible to run Gajim correctly from the app bundle but still use the
95python code in the source tree. This line must be added to the _run() function
96in the Gajim.app/Resources/__boot__.py file. It needs to be located just after
97the sys module is imported. Font forget to fix the path to match your
98environment.
99
100sys.path = ["/Users/user/Source/gajim/src"] + sys.path
Note: See TracBrowser for help on using the browser.