README.macos 2.32 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
Sylvain Berfini's avatar
Sylvain Berfini committed
15 16
 $ port install libosip2
 $ port install libeXosip2
17
 $ port install ffmpeg-devel
18 19 20 21 22 23
 
- 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
24 25
 $ sudo make install

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
Simon Morlat's avatar
Simon Morlat committed
31

32 33 34 35 36 37 38 39 40
- 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


41
- Compile linphone
42

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

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

63
Then run, inside linphone source tree:
Simon Morlat's avatar
Simon Morlat committed
64 65 66
 1. Run configure as told before but with "--enable-relativeprefix" appended.
 
 $ make
67 68
 $ make bundle

69
The resulting bundle is located in linphone build directory, together with a zipped version.
70 71 72 73 74 75 76 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).

 $ 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
79
Generate a new bundle to have it included.
80 81