Commit 12bcc48f authored by Simon Morlat's avatar Simon Morlat
Browse files

macos x build procedure improved - fix quit procedure (unsaved settings)

parent 002286ae
......@@ -2,83 +2,38 @@
* Compiling linphone on macos X *
You need:
- Xcode (download from apple or using appstore application)
- Macports:
Download and install macports using its user friendly installer.
You have two options: using gtk-osx framework ( which results in a Linphone GTK well integrated into Mac OS
environment. The other option is using MacPort, in which case Linphone will run as an X11 application inside Mac OS.
At the date of March 25, 2011, no video support is available yet.
Compiling using gtk-osx
* gtk-osx framework
* xcode (for gcc)
* macport (to retrieve dependencies easily, such as libosip2, libeXosip2, libspeex
* linphone git tree
- Install gtk-osx jhbuild environment as described at
It will build gtk for osx as well as many dependencies.
- Install ige-mac-bundler following instructions here (git clone method is preferred):
- Install build time dependencies
$ port install automake autoconf libtool intltool
- Install some linphone dependencies with macports
$ port install speex-dev
$ port install osip2
$ port install eXosip2
$ port install ffmpeg-devel
$ port install sdl-devel
- 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.
- Install gtk. It is recommended to use the quartz backend for better integration.
$ port install gtk2 +no_x11
$ port install ige-mac-integration
- Now you can compile linphone
- Compile linphone
$ jhbuild shell
$ PKG_CONFIG_PATH=$HOME/gtk/inst/lib/pkgconfig:/opt/local/lib/pkgconfig/ ./configure --disable-static --disable-strict --with-gsm=/opt/local --disable-x11
#assuming you have gsm installed in /opt/local. However gsm is optional.
$ make
If you got the source code from git, run ./ first.
- You can generate a bundle using
$ make bundle
The bundle is generated in ~/Desktop/Linphone and can safely be exported to other places and computers.
Compiling using MacPort
This procedure works for audio, video still not fully supported.
It was tested on macos X (leopard) on september 2009.
* xcode (for gcc)
* macport (GNU porting project)
* svn or git checkout'd linphone tree.
* install with the 'port install' command the following dependencies
- automake
- autoconf
- libtool
- gettext
- intltool
- gtk2
- speex-dev
- osip2
- eXosip2
Then or otherwise, do:
* add /opt/local/bin to your PATH by editing (or creating) ~/.profile, logout and login again for changes to take effect
$ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 && make
Install to /opt/local
* within linphone source directory, run ./
* run
./configure --prefix=/opt/local --disable-video --with-readline=none && make
(note: we disable readline for linphonec because it appears to hang at this time)
* install to /opt/local
sudo make install
$ sudo make install
......@@ -65,6 +65,7 @@ static gboolean iconified=FALSE;
static gchar *workingdir=NULL;
static char *progpath=NULL;
gchar *linphone_logfile=NULL;
static gboolean app_terminated=FALSE;
static GOptionEntry linphone_options[]={
......@@ -1364,6 +1365,14 @@ static void linphone_gtk_check_soundcards(){
static gboolean on_block_termination(void){
g_message("Block termination returning %i",!app_terminated);
return !app_terminated;
int main(int argc, char *argv[]){
void *p;
......@@ -1458,7 +1467,7 @@ int main(int argc, char *argv[]){
/*never block termination:*/
......@@ -1491,6 +1500,7 @@ int main(int argc, char *argv[]){
#ifndef HAVE_GTK_OSX
/*workaround a bug on win32 that makes status icon still present in the systray even after program exit.*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment