1 **********************************
2 * Compiling linphone on macos X *
3 **********************************
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.
10 - Install build time dependencies
11 $ port install automake autoconf libtool intltool
13 - Install some linphone dependencies with macports
14 $ port install speex-dev
16 $ port install eXosip2
17 $ port install ffmpeg-devel
19 - Install SDL (for video display)
20 Unfortunately the current (august 2011) version of sdl in macports crashes all the time. Fortunately these bugs are fixed in the development branch of SDL.
21 So we recommend to download SDL 1.3 with mercurial (hg) and compile it by yourself, like this:
22 First, make sure you have mercurial:
23 $ sudo port install mercurial
25 $ hg clone http://hg.libsdl.org/SDL
29 $ ./configure --prefix=/opt/local && make -j4
32 When this version will be integrated into macports, only this will be necessary:
33 $ port install sdl-devel
35 - Install gtk. It is recommended to use the quartz backend for better integration.
36 $ port install gtk2 +no_x11
37 $ port install ige-mac-integration
38 $ port install hicolor-icon-theme
42 If you got the source code from git, run ./autogen.sh first.
44 Then or otherwise, do:
46 $ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 && make
54 If you want to generate a portable bundle, then install ige-mac-bundler.
55 The version in macports doesn't work at all.
57 $ git clone https://github.com/jralls/ige-mac-bundler.git
58 $ cd ige-mac-bundler && make install
59 $ export PATH=$PATH:~/.local/bin
61 Then run, inside linphone source tree:
64 The resulting bundle is located in ~/Desktop, together with a zipped version.
66 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).
68 $ git clone https://github.com/jralls/gtk-quartz-engine.git
69 $ cd gtk-quartz-engine
71 $ ./configure --prefix=/opt/local && make
74 Generate a new bundle to have it packaged.