README.macos 2.41 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 26
 $ sudo make install

When this version will be integrated into macports, only this will be necessary:
jehan's avatar
jehan committed
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
Simon Morlat's avatar
Simon Morlat committed
33

34 35 36 37 38 39 40 41 42
- 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


43
- Compile linphone
44

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

47
Then or otherwise, do:
smorlat's avatar
smorlat committed
48
	
49
 $ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 --with-srtp=/opt/local && make
50 51

Install to /opt/local
52

53
 $ sudo make install 
54

55
Done.
56

57
If you want to generate a portable bundle, then install gtk-mac-bundler.
58
Use git:
59 60
 $ git clone https://github.com/jralls/gtk-mac-bundler.git 
 $ cd gtk-mac-bundler && make install
61
 $ export PATH=$PATH:~/.local/bin
62 63
 #make this dummy charset.alias file for the bundler to be happy:
 $ sudo touch touch /opt/local/lib/charset.alias
64

65
Then run, inside linphone source tree:
Simon Morlat's avatar
Simon Morlat committed
66 67 68
 1. Run configure as told before but with "--enable-relativeprefix" appended.
 
 $ make
69 70 71 72 73 74 75 76 77 78 79 80
 $ make bundle

The resulting bundle is located in ~/Desktop, together with a zipped version.

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
81
Generate a new bundle to have it included.
82 83