]> sjero.net Git - linphone/blob - README.macos
update readme for macos x
[linphone] / README.macos
1 **********************************
2 * Compiling linphone on macos X  *
3 **********************************
4
5
6 You have two options: using gtk-osx framework (http://gtk-osx.sourceforge.net/) which results in a Linphone GTK well integrated into Mac OS
7 environment. The other option is using MacPort, in which case Linphone will run as an X11 application inside Mac OS.
8
9 At the date of March 25, 2011, no video support is available yet.
10
11
12 Compiling using gtk-osx
13 =======================
14
15 Requirements:
16 * gtk-osx framework
17 * xcode (for gcc)
18 * macport (to retrieve dependencies easily, such as libosip2, libeXosip2, libspeex
19 * linphone git tree
20
21 Steps:
22
23 - Install gtk-osx jhbuild environment as described at
24 http://sourceforge.net/apps/trac/gtk-osx/wiki/Build
25 It will build gtk for osx as well as many dependencies.
26
27 - Install ige-mac-bundler following instructions here (git clone method is preferred):
28 http://sourceforge.net/apps/trac/gtk-osx/wiki/Bundle
29
30 - Install some linphone dependencies with macports
31  $ port install speex-dev
32  $ port install osip2
33  $ port install eXosip2
34
35 - Install libSDL and ffmpeg from their official git or hg repositories. At this date (2011/05/09) the macports version are too old and buggy.
36
37 - Now you can compile linphone
38
39 $ jhbuild shell
40 $ PKG_CONFIG_PATH=$HOME/gtk/inst/lib/pkgconfig:/opt/local/lib/pkgconfig/ ./configure --disable-static --disable-strict --with-gsm=/opt/local --disable-x11
41 #assuming you have gsm installed in /opt/local. However gsm is optional.
42 $ make
43
44 - You can generate a bundle using
45 $ make bundle
46
47 The bundle is generated in ~/Desktop/Linphone and can safely be exported to other places and computers.
48
49
50 Compiling using MacPort
51 =======================
52
53 This procedure works for audio, video still not fully supported.
54 It was tested on macos X (leopard) on september 2009.
55
56 Requirements:
57 * xcode (for gcc)
58 * macport (GNU porting project)
59 * svn or git checkout'd linphone tree.
60
61 Steps:
62 * install with the 'port install' command the following dependencies
63         - automake
64         - autoconf
65         - libtool
66         - gettext
67         - intltool
68         - gtk2
69         - speex-dev
70         - osip2
71         - eXosip2
72         
73 * add /opt/local/bin to your PATH by editing (or creating) ~/.profile, logout and login again for changes to take effect
74
75 * within linphone source directory, run ./autogen.sh
76 * run 
77         ./configure --prefix=/opt/local --disable-video --with-readline=none && make
78         (note: we disable readline for linphonec because it appears to hang at this time)
79 * install to /opt/local
80         sudo make install 
81
82
83
84
85