|
Building
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. |
► Sign in to add a comment
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
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.
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.
Search paths should work when pjproject and Telephone are in the same parent folder.
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
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’.
Here is dirty how to build on x86_64:- Just after "svn checkout http://svn.pjsip.org/repos/pjproject/tags/1.0.3 pjproject"
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;You should get something like
That fixed crash when I plug/unplug headphones during application run.
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!
When's the release? I've never had luck being able to build this thing on Snow Leopard
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.
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
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?
Do you have Developer Tools installed?
Yep that was the prob, thanks!
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.
staticfish, what problem do you have? Everything should be fine if you’re running 10.6.2 and have Developer Tools installed.
Re-read the instructions and it built fine. They must have changed since last time I tried. Thanks
Is it possible to make this app run in the menu bar rather than the dock? Great application by the way!
It is not possible at the moment. We have issue 73 for that: http://code.google.com/p/telephone/issues/detail?id=73
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.
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?
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.
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.
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?
There's a build with call transfer in the corresponding issue: http://code.google.com/p/telephone/issues/detail?id=31
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;
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.
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
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.
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?
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.
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!