|
From: | Saumar Hajjar |
Subject: | [Linphone-developers] How to get code compatible with iOS 5? |
Date: | Fri, 07 Feb 2014 23:44:19 -0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Hi, Today I cloned the iOS source code using the documented way: git clone git://git.linphone.org/linphone-iphone.git --recursive After compiling the libraries (make all) and building the XCode project, when trying to run on my iOS 5.1.1 device, I got a crash at LinphoneManager.m: //init audio session AVAudioSession *audioSession = [AVAudioSession sharedInstance]; BOOL bAudioInputAvailable= audioSession.inputAvailable; /* HERE */ Because AVAudioSession::inputAvailable requires iOS 6 As the AppStore version obviously works on my iPad 1, I was probably checking out the wrong source. Browsing the list, I found this thread with a possible solution http://lists.gnu.org/archive/html/linphone-developers/2013-11/msg00091.html, where Gillaume instructed some additional steps to get the "right" source code: git clone git://git.linphone.org/linphone-iphone.git --recursive cd linphone-iphone git checkout 2.1.2 # get the tag git submodule update --recursive --init # checkout submodules to the version But last command gives a bunch of errors that make it impossible to compile the libraries: Submodule path 'submodules/belle-sip': checked out '13774a023ec843945b87652eb4e3781669add838' Submodule path 'submodules/externals/srtp': checked out '14027d37c7574b27bf22e57f508137b4e86b6466' fatal: reference is not a tree: bfbfcab72dfa27862b05607d18bb24b6f8395fcf Submodule path 'submodules/linphone': checked out 'df6e200585a62d95034032eef996fedf5a3f2015' Submodule path 'submodules/linphone/mediastreamer2': checked out '785a5d8f76c336a51f8a21997e9dcaee669d4ec4' Submodule path 'submodules/linphone/oRTP': checked out 'b5d1414e63b21c83eb8e26988a3fe423ff8fc3b3' Unable to checkout 'bfbfcab72dfa27862b05607d18bb24b6f8395fcf' in submodule path 'submodules/externals/zrtpcpp' How can I get the correct source code that is still compatible with at least iOS 5? Thanks sh |
[Prev in Thread] | Current Thread | [Next in Thread] |