My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Building  
How to build this stuff.
Phase-Deploy, Featured
Updated Dec 5, 2010 by eofs...@gmail.com

You need Mercurial to get Telephone sources. If you’re running Mac OS X 10.6.5 on an Intel Mac, you should be able to build Telephone without any modifications to the Xcode project.

$ hg clone https://telephone.googlecode.com/hg/ Telephone

Telephone depends on pjproject.

$ svn checkout http://svn.pjsip.org/repos/pjproject/tags/1.6 pjproject
$ cd pjproject
$ CFLAGS="-O2 -arch i386 -arch x86_64 -arch ppc" LDFLAGS="-arch i386 -arch x86_64 -arch ppc" ./configure --disable-ssl
$ make

Open Telephone.xcodeproj in Xcode.

Comment by yvon.cog...@gmail.com, Oct 23, 2009

I got an error on this line : #import <pjsua-lib/pjsua.h> <No such file or directory>

I compiled and installed (sudo make install) pjproject, and configure the projet by setting the variables "Header search path" and "Library search path" respectively to "/usr/local/include" and "/usr/local/lib".

I admit it is the first time I compile a XCode projet.

I'm running MacOS 10.5.8 and XCode 3.1.3

Comment by project member eofs...@gmail.com, Oct 25, 2009

I haven’t tried to install pjproject libraries into that locations. You might want to play with paths down from /usr/local/include (lib). I’m just keeping pjproject in the same parent directory as Telephone project directory.

Comment by jruss...@athabascau.ca, Oct 27, 2009

to get the search paths set correctly edit them under Edit Active Target "Telephone' (Command, Option E) They seemed messed up in the settings, work for me.

Comment by project member eofs...@gmail.com, Nov 4, 2009

Search paths should work when pjproject and Telephone are in the same parent folder.

Comment by khatrida...@gmail.com, Feb 2, 2010

i am getting a error that library not found for -lpjsua-i386-apple-darwin10.0.0 i have in my sip project pjsua-i386-apple-darwin10.1.2 if i changes the name in target then it shows me errors that library is not required architecture please help

Comment by project member eofs...@gmail.com, Feb 2, 2010

Suffix of pjsip libraries you compile depends on your version of Mac OS X. You can change it in Telephone Xcode project. Select ‘Telephone’ in the targets list, go to File > Get Info, search for ‘Other Linker Flags’.

Comment by Aleksey....@gmail.com, Feb 5, 2010

Here is dirty how to build on x86_64:

  1. Just after "svn checkout http://svn.pjsip.org/repos/pjproject/tags/1.0.3 pjproject"
  2. $ export CFLAGS="-O2 -Wall -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.4"
    $ export LDFLAGS="-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.4"

Replace line 1722 in pjproject/third_party/portaudio/src/hostapi/coreaudio/pa_mac_core.c to this

@@ -1719,7 +1719,7 @@
 
    VVDBUG(("ringBufferIOProc()\n"));
 
-   assert( sizeof( UInt32 ) == sizeof( long ) );
+   assert( sizeof( UInt64 ) == sizeof( long ) );
    if( PaUtil_GetRingBufferReadAvailable( rb ) == 0 ) {
       *outData = NULL;
       *ioDataSize = 0;
  1. You also need to replace Growl.framework that coming with project with x86_64 one. I took one from /Applications/Cyberduck.app/Contents/Frameworks. You may check if that valid version with
file /Applications/Cyberduck.app/Contents/Frameworks/Growl.framework/Growl | grep x86_64

You should get something like

/Applications/Cyberduck.app/Contents/Frameworks/Growl.framework/Growl (for architecture x86_64):        Mach-O 64-bit dynamically linked shared library x86_64
  1. Select 64-bit Intel from "Architectures" list on "Build" tab of Target "Telephone" Info.
  2. Build and Go

That fixed crash when I plug/unplug headphones during application run.

Comment by project member eofs...@gmail.com, Feb 5, 2010

The next Telephone release will be linked against pjproject 1.x (not 1.0.x) which builds correctly out of the box for 64-bit and has no problems with plugging and unplugging headphones.

Anyway, thanks for the tip!

Comment by staticf...@gmail.com, Feb 5, 2010

When's the release? I've never had luck being able to build this thing on Snow Leopard

Comment by project member eofs...@gmail.com, Feb 6, 2010

It had to be released by January 1st, but I’m still working on it.

If you have any troubles compiling Telephone, fell free to ask in our mailing list.

Comment by staticf...@gmail.com, Feb 10, 2010

Thank you for your help, continued support in a great client.

I hope you support it for a while for it to become feature filled and stable, because it IS the only real SIP client for the mac

Comment by krif...@gmail.com, Feb 14, 2010

I keep getting stuck here, and after this, i try make and it says bash: make: command not found and even if i go into bash it doesnt work, what shall i do?

:pjproject kriffer$ CFLAGS="-O2 -arch i386 -arch x86_64 -arch ppc" LDFLAGS="-arch i386 -arch x86_64 -arch ppc" ./configure
checking build system type... i386-apple-darwin10.2.0
checking host system type... i386-apple-darwin10.2.0
checking target system type... i386-apple-darwin10.2.0
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
aconfigure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Comment by project member eofs...@gmail.com, Feb 14, 2010

Do you have Developer Tools installed?

Comment by krif...@gmail.com, Feb 14, 2010

Yep that was the prob, thanks!

Comment by staticf...@gmail.com, Feb 19, 2010

Hmm, I just cannot build this thing on 64bit MacOSX10.6. I have tried just about everything in this thread and more. Would someone be so kind as to send me a binary for the latest from trunk. I'll be forever grateful.

Comment by project member eofs...@gmail.com, Feb 19, 2010

staticfish, what problem do you have? Everything should be fine if you’re running 10.6.2 and have Developer Tools installed.

Comment by staticf...@gmail.com, Feb 21, 2010

Re-read the instructions and it built fine. They must have changed since last time I tried. Thanks

Comment by IamThe...@gmail.com, Mar 25, 2010

Is it possible to make this app run in the menu bar rather than the dock? Great application by the way!

Comment by project member eofs...@gmail.com, Mar 28, 2010

It is not possible at the moment. We have issue 73 for that: http://code.google.com/p/telephone/issues/detail?id=73

Comment by medmat...@gmail.com, Apr 10, 2010

I have got 1 error :" library not found for -lilbccodec-i386-apple-darwin10.2.0" on running Telephone.xcodeproj. The step to change external portaudio revision from 1387 to 1430 did not run.

Comment by project member eofs...@gmail.com, Apr 11, 2010

If you’re building pjsip on 10.6.3, it should produce libraries ending in ’10.3.0’, I guess. In that case you need to make appropriate changes to the ‘Other linker flags’ option of the target called ‘Telephone’.

What happens when you try to change external portaudio revision?

Comment by medmat...@gmail.com, Apr 11, 2010

i m building on 10.6.2 . When i run "svn propedit svn:externals third_party --editor-cmd=vim", the terminal shows something like this..... ....... -r1387 portaudio ..... trunk ~ ~ ~ ~ ~

and nothing happens on changing 1387 to 1430.

Comment by project member eofs...@gmail.com, Apr 12, 2010

Oh, I see. This is vim - a console text editor. You can use TextEdit? instead: svn propedit svn:externals third_party --editor-cmd="/Applications/TextEdit?.app/Contents/MacOS/TextEdit?"

When TextEdit? opens, change the number, save, and quit.

Comment by namo...@gmail.com, Apr 22, 2010

eofster - Sorry, I don't know how else to get a hold of you. Could you tell us when you expect to release the next version? If it will be awhile could some one possibly post a working build?

Comment by project member eofs...@gmail.com, Apr 22, 2010

There's a build with call transfer in the corresponding issue: http://code.google.com/p/telephone/issues/detail?id=31

Comment by wfbern...@gmail.com, Jun 9, 2010

I don't think I'm alone in wishing the developer would use an older computer to build releases. If built running 10.4 as a fat binary then 'everybody' could run it. Am I wrong?

Thanks;

Comment by project member eofs...@gmail.com, Jun 9, 2010

wfbernett, it’s not about building it on older computer, it’s about version of SDK to use. Telephone is using some features that became available only in 10.5.

Comment by mark.mie...@gmail.com, Jun 10, 2010

I had no problem building on snow leopard and linking the latest pjsip using the configure script as is. > ./configure && make dep && make clean &&make

Comment by covicijohn@gmail.com, Jul 16, 2010

In the released app, I am having the problem where it unmutes the mic, but the app still says its muted, but this seems to happen if the screen saver is on -- but not rght away. I am trying the latest trunk and see if that still happens. I had to change the other linker flags all from 10.3.0 to 10.4.0 for things to build.

Comment by kaaust...@gmail.com, Jul 20, 2010

If u try Telephone on 10.5.. the sound during an incoming call is routed through Mac Mini's speaker output. Though the Headphone is selected as the default output device. I am facing the same problem in my application after the inclusion of pjsip 1.6. Does anyone have solution for this?

Comment by s...@google.com, Jan 13, 2011

On latest OS X (10.6.6) I had to cmd-opt-E and modify "Other Linker Flags" (s/10.5.0/10.6.0/g) to make it build.

Comment by tmartin....@gmail.com, Nov 16, 2011

In XCode 4.2 gcc is now "unsupported". While the telephone-project itself compiles fine with the llvm-gcc-4.2, it seems that the pjlib compiled with gcc (using the commands above) does not link well with the application: stepping through the application with the debugger does not always proceed in a step-by-step fashion, but oftentimes jumps backwards a few lines, or systematically skips certain section/blocks of the code altogether. - Can you recommend any build-settings for the pjsip with llvm-gcc-4.2, yielding libraries that allow building/debugging this project with XCode 4.2? - Unfortunately, my expertise with build-systems is limited... - Thank you very much in advance!


Sign in to add a comment
Powered by Google Project Hosting