]> sjero.net Git - linphone/blob - README.macos
fix macos build and crash at exit from dock.
[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 linphone
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 --with-readline=/opt/local --disable-strict --disable-x11 --with-srtp=/opt/local && make
41
42 Install to /opt/local
43
44  $ sudo make install 
45
46 Done.
47
48 If you want to generate a portable bundle, then install gtk-mac-bundler.
49 Use git:
50  $ git clone https://github.com/jralls/gtk-mac-bundler.git 
51  $ cd gtk-mac-bundler && make install
52  $ export PATH=$PATH:~/.local/bin
53  #make this dummy charset.alias file for the bundler to be happy:
54  $ sudo touch touch /opt/local/lib/charset.alias
55
56 Then run, inside linphone source tree:
57  1. Run configure as told before but with "--enable-relativeprefix" appended.
58  
59  $ make
60  $ make bundle
61
62 The resulting bundle is located in ~/Desktop, together with a zipped version.
63
64 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).
65
66  $ git clone https://github.com/jralls/gtk-quartz-engine.git
67  $ cd gtk-quartz-engine
68  $ autoreconf -i 
69  $ ./configure --prefix=/opt/local && make 
70  $ sudo make install
71
72 Generate a new bundle to have it included.
73
74