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