README.macos 2.67 KB
Newer Older
1 2 3 4
**********************************
* Compiling linphone on macos X  *
**********************************

5 6 7 8
You need:
 - Xcode (download from apple or using appstore application)
 - Macports: http://www.macports.org/
   Download and install macports using its user friendly installer.
9

10 11
- Install build time dependencies
 $ port install automake autoconf libtool intltool
12 13

- Install some linphone dependencies with macports
14
 $ port install speex
Simon Morlat's avatar
Simon Morlat committed
15 16
 $ port install libosip2 # WARNING: currently outdated in macport
 $ port install libeXosip2 #WARNING: currently outdated in macport
17
 $ port install ffmpeg-devel
Simon Morlat's avatar
Simon Morlat committed
18
 $ port install libvpx
19
 $ port install readline
20 21 22 23 24 25
 
- Install srtp (optional) for call encryption
 $ port install srtp
 If that fails, get from source:
 $ git clone git://git.linphone.org/srtp.git
 $ cd srtp && autoconf && ./configure --prefix=/opt/local && make libsrtp.a
Simon Morlat's avatar
Simon Morlat committed
26 27
 $ sudo make install

Simon Morlat's avatar
Simon Morlat committed
28 29 30
- Install zrtpcpp (optional), for unbreakable call encryption
 $ port install cmake
 $ git clone git://git.linphone.org/zrtpcpp.git
Simon Morlat's avatar
Simon Morlat committed
31
 $ cd zrtpcpp && cmake -Denable-ccrtp=false . && make
Simon Morlat's avatar
Simon Morlat committed
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
Simon Morlat's avatar
Simon Morlat committed
38

39 40 41 42 43 44 45 46 47
- Compile and install the tunnel

If you got the source code from git, run ./autogen.sh first

Then or otherwise, do:

 $ ./configure --prefix=/opt/local && make && sudo make install


48
- Compile linphone
49

50
If you got the source code from git, run ./autogen.sh first.
51

52
Then or otherwise, do:
smorlat's avatar
smorlat committed
53
	
jehan's avatar
jehan committed
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 65
 $ git clone https://github.com/jralls/gtk-mac-bundler.git 
 $ cd gtk-mac-bundler && make install
66
 $ export PATH=$PATH:~/.local/bin
67 68
 #make this dummy charset.alias file for the bundler to be happy:
 $ sudo touch touch /opt/local/lib/charset.alias
69

70
Then run, inside linphone source tree:
Simon Morlat's avatar
Simon Morlat committed
71 72 73
 1. Run configure as told before but with "--enable-relativeprefix" appended.
 
 $ make
74 75
 $ make bundle

76
The resulting bundle is located in linphone build directory, together with a zipped version.
77 78 79 80 81 82 83 84 85

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).

 $ git clone https://github.com/jralls/gtk-quartz-engine.git
 $ cd gtk-quartz-engine
 $ autoreconf -i 
 $ ./configure --prefix=/opt/local && make 
 $ sudo make install

Simon Morlat's avatar
Simon Morlat committed
86
Generate a new bundle to have it included.
87 88