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