Manually install oSIP and eXosip as library on Mac OS X Mountain Lion
No problem with oSIP. Just do the usual configure && make && make install (the last one as root).
It is best to have the autotool from GNU, and not from Apple, of which autoconf and make are part. To install GNU autotool, please ryou need to install XCode (and the Command Line Tools: XCode -> Preferences -> Download -> Component -> Command Line Tools) and mac ports first (www.macports.org) and then:
The above lines are from the README of the linphone. Basically you want to install the autotools, but I don't actually know which part of those packages comprise autotools. Some of them are obviously not related to autotools, like the ImageMagick. But just to be safe.... :-))
So, after you install the autotool, the next thing to do is.... trying to configure. It went well for oSIP but not so well for eXosip. configure script for eXosip gave me this:
It is best to have the autotool from GNU, and not from Apple, of which autoconf and make are part. To install GNU autotool, please ryou need to install XCode (and the Command Line Tools: XCode -> Preferences -> Download -> Component -> Command Line Tools) and mac ports first (www.macports.org) and then:
Once xcode and macports are installed, open a terminal and install the required build-time tools with:
$ sudo port install coreutils automake autoconf libtool intltool wget pkgconfig cmake gmake yasm grep doxygen ImageMagick optipng
Install gas-preprosessor.pl (http://github.com/yuvi/gas-preprocessor/ ) to be copied into /opt/local/bin :
$ wget --no-check-certificate https://raw.github.com/yuvi/gas-preprocessor/master/gas-preprocessor.pl
$ sudo mv gas-preprocessor.pl /opt/local/bin/.
$ sudo chmod +x /opt/local/bin/gas-preprocessor.pl
Link macport libtoolize to glibtoolize
$ sudo ln -s /opt/local/bin/glibtoolize /opt/local/bin/libtoolize
Link host's strings to simulator SDK
For Xcode prior to 4.3:
$ sudo ln -s /usr/bin/strings /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings
For newer XCode:
$ sudo ln -s /usr/bin/strings /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings
The above lines are from the README of the linphone. Basically you want to install the autotools, but I don't actually know which part of those packages comprise autotools. Some of them are obviously not related to autotools, like the ImageMagick. But just to be safe.... :-))
So, after you install the autotool, the next thing to do is.... trying to configure. It went well for oSIP but not so well for eXosip. configure script for eXosip gave me this:
Undefined symbols for architecture x86_64:
"_CFRelease", referenced from:
__tls_add_certificates in eXtl_tls.o
"_Gestalt", referenced from:
__tls_add_certificates in eXtl_tls.o
"_SecKeychainItemCopyAttributesAndData", referenced from:
__tls_add_certificates in eXtl_tls.o
"_SecKeychainItemFreeAttributesAndData", referenced from:
__tls_add_certificates in eXtl_tls.o
"_SecKeychainOpen", referenced from:
__tls_add_certificates in eXtl_tls.o
"_SecKeychainSearchCopyNext", referenced from:
__tls_add_certificates in eXtl_tls.o
"_SecKeychainSearchCreateFromAttributes", referenced from:
__tls_add_certificates in eXtl_tls.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [libeXosip2.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
After some searching, I found out that I needed to link against frameworks on Mac OS. So instead of simply calling configure, I needed to call this:
LDFLAGS="-framework CoreFoundation -framework CoreServices -framework Security" ./configure
And then make, and sudo make install. And done!
CoreFoundation is for _CFRelease, CoreServices is for _Gestalt and Security for the others (keychain access).