]> sjero.net Git - linphone/blob - README.macos
update ms2 for compil fix with --disable-video
[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
27 - Install gtk. It is recommended to use the quartz backend for better integration.
28  $ port install gtk2 +quartz +no_x11
29  $ port install ige-mac-integration
30  $ port install hicolor-icon-theme
31
32 - Compile and install the tunnel
33
34 If you got the source code from git, run ./autogen.sh first
35
36 Then or otherwise, do:
37
38  $ ./configure --prefix=/opt/local && make && sudo make install
39
40
41 - Compile linphone
42
43 If you got the source code from git, run ./autogen.sh first.
44
45 Then or otherwise, do:
46         
47  $ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 --with-srtp=/opt/local && make
48
49 Install to /opt/local
50
51  $ sudo make install 
52
53 Done.
54
55 If you want to generate a portable bundle, then install gtk-mac-bundler.
56 Use git:
57  $ git clone https://github.com/jralls/gtk-mac-bundler.git 
58  $ cd gtk-mac-bundler && make install
59  $ export PATH=$PATH:~/.local/bin
60  #make this dummy charset.alias file for the bundler to be happy:
61  $ sudo touch touch /opt/local/lib/charset.alias
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