]> sjero.net Git - linphone/blob - README.macos
Merge branch 'master' of git.linphone.org:linphone into tunnel
[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 srtp (optional) for call encryption
20  $ port install srtp
21  If that fails, get from source:
22  $ git clone git://git.linphone.org/srtp.git
23  $ cd srtp && autoconf && ./configure --prefix=/opt/local && make libsrtp.a
24  $ sudo make install
25
26 When this version will be integrated into macports, only this will be necessary:
27  $ port install libsdl-devel
28
29 - Install gtk. It is recommended to use the quartz backend for better integration.
30  $ port install gtk2 +quartz +no_x11
31  $ port install ige-mac-integration
32  $ port install hicolor-icon-theme
33
34 - Compile and install the tunnel
35
36 If you got the source code from git, run ./autogen.sh first
37
38 Then or otherwise, do:
39
40  $ ./configure --prefix=/opt/local && make && sudo make install
41
42
43 - Compile linphone
44
45 If you got the source code from git, run ./autogen.sh first.
46
47 Then or otherwise, do:
48         
49  $ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 --with-srtp=/opt/local && make
50
51 Install to /opt/local
52
53  $ sudo make install 
54
55 Done.
56
57 If you want to generate a portable bundle, then install gtk-mac-bundler.
58 Use git:
59  $ git clone https://github.com/jralls/gtk-mac-bundler.git 
60  $ cd gtk-mac-bundler && make install
61  $ export PATH=$PATH:~/.local/bin
62  #make this dummy charset.alias file for the bundler to be happy:
63  $ sudo touch touch /opt/local/lib/charset.alias
64
65 Then run, inside linphone source tree:
66  1. Run configure as told before but with "--enable-relativeprefix" appended.
67  
68  $ make
69  $ make bundle
70
71 The resulting bundle is located in ~/Desktop, together with a zipped version.
72
73 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).
74
75  $ git clone https://github.com/jralls/gtk-quartz-engine.git
76  $ cd gtk-quartz-engine
77  $ autoreconf -i 
78  $ ./configure --prefix=/opt/local && make 
79  $ sudo make install
80
81 Generate a new bundle to have it included.
82
83