]> sjero.net Git - linphone/blob - README.macos
README.macos updated
[linphone] / README.macos
1 **********************************
2 * Compiling linphone on macos X  *
3 **********************************
4
5 You need:
6  - Xcode (download from apple or using appstore application)
7  - Macports: http://www.macports.org/
8    Download and install macports using its user friendly installer.
9
10 - Install build time dependencies
11  $ port install automake autoconf libtool intltool
12
13 - Install some linphone dependencies with macports
14  $ port install speex
15  $ port install libosip2
16  $ port install libeXosip2
17  $ port install ffmpeg-devel
18
19 - Install SDL (for video display)
20 Unfortunately the current (august 2011) version of sdl in macports crashes all the time. Fortunately these bugs are fixed in the development branch of SDL.
21 So we recommend to download SDL 1.3 with mercurial (hg) and compile it by yourself, like this:
22 First, make sure you have mercurial:
23  $ sudo port install mercurial
24 Fetch SDL:
25  $ hg clone http://hg.libsdl.org/SDL
26 Compile:
27  $ cd SDL 
28  $ ./autogen.sh
29  $ ./configure --prefix=/opt/local && make -j4
30  $ sudo make install
31
32 When this version will be integrated into macports, only this will be necessary:
33  $ port install sdl-devel
34
35 - Install gtk. It is recommended to use the quartz backend for better integration.
36  $ port install cairo +quartz +no_x11
37  $ port install pango +quartz +no_x11
38  $ port install gtk2 +quartz +no_x11
39  $ port install ige-mac-integration
40  $ port install hicolor-icon-theme
41
42 - Compile linphone
43
44 If you got the source code from git, run ./autogen.sh first.
45
46 Then or otherwise, do:
47         
48  $ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 && make
49
50 Install to /opt/local
51
52  $ sudo make install 
53
54 Done.
55
56 If you want to generate a portable bundle, then install ige-mac-bundler.
57 The macport package of ige-mac-bundler doesn't work at all.
58 Use git:
59  $ git clone https://github.com/jralls/ige-mac-bundler.git
60  $ cd ige-mac-bundler && make install
61  $ export PATH=$PATH:~/.local/bin
62
63 Then run, inside linphone source tree:
64  1. Run configure as told before but with "--enable-relativeprefix" appended.
65  
66  $ make
67  $ make bundle
68
69 The resulting bundle is located in ~/Desktop, together with a zipped version.
70
71 For a better appearance, you can install the gtk-quartz-engine (a gtk theme) that make gtk application more similar to other mac applications (but not perfect).
72
73  $ git clone https://github.com/jralls/gtk-quartz-engine.git
74  $ cd gtk-quartz-engine
75  $ autoreconf -i 
76  $ ./configure --prefix=/opt/local && make 
77  $ sudo make install
78
79 Generate a new bundle to have it included.
80
81