Android SIP Application Using Linphone

I am working on a SIP application and using the Linphone Library, I have a bit of confusion when setting up the library to run the project.

Step 1: First, I downloaded the NDK on my Mac with the new Android SDK. Then set aside the PATH of my NDK folder in ADT -> Preferences -> Android -> NDK

Step 2: Then I installed Autotools using this link (Only the following commands written under clause: 2.3 How to install Autotools (as a user)?) Ndk_build

Step 3: After that I downloaded linphone-android using terminal using -

  git clone git://git.linphone.org/linphone-android.git --recursive 

Now I want to perform the following steps: Step 4: Go to the root directory of the loaded project using the command in the terminal:

$ cd /home/my_downloaded_project_path/linphone-android

And then Step 5:

 $ ./prepare_sources.sh /home/android-ndk-r7b/ndk_build 

I think the assembly will be ready.

Step 6: Import the linphone-android project into eclipse and then run the project.

Now when I do Step 5: I get an error

 -bash: ./prepare_sources.sh: No such file or directory 

I searched my entire Mac, but I cannot find this file (so how will it work then?)

Please let someone tell me what I am missing or doing wrong. Are my steps correct (if you somehow changed my actions, kindly tell me)

Another approach I've tried is :

Downloaded Linphone Lib for Android from here I copied the file. / prepare _sources.sh and pasted it into the directory where I got the code downloaded using the terminal command, as said in step 3 above. Now run this command

 ./prepare_sources.sh /home/android-ndk-r7b/ndk_build 

and he worked on the terminal, but later he showed me the following messages:

 . . . er.bat inflating: SILK_SDK_SRC_v1.0.9/SILK_SDK_SRC_ARM_v1.0.9/test_vectors/test_encoder.sh cp ./patch_pic.diff SILK_SDK_SRC_v1.0.9/SILK_SDK_SRC_ARM_v1.0.9 cd SILK_SDK_SRC_v1.0.9/SILK_SDK_SRC_ARM_v1.0.9 && /usr/bin/patch -p0 < patch_pic.diff patching file Makefile Hunk #1 succeeded at 47 with fuzz 2 (offset 21 lines). ./prepare_sources.sh: line 41: abs_builddir: command not found ./prepare_sources.sh: line 41: abs_builddir: command not found ./prepare_sources.sh: line 41: /yuv2rgb.vs.h: Permission denied yuv2rgb.vs.h creation error (do you have 'xxd' application installed ?) /Users/myname/linphone-android/submodules/externals/srtp 

How to resolve this, I do not know ??

+7
android eclipse android-ndk macos linphone
source share
1 answer

After installing the NDK and SDK, you need to clone it and make sure that you installed PATH correctly. So go to the root folder where you installed linphone

i.e

 $ cd /Users/myname/Desktop/Android/linphone-android 

To check the PATH of your NDK and SDK, enter "

 $ echo $PATH 

If you see the path with the location of the SDK and NDK, it is configured correctly, and you can proceed to execute the make command. If not, configure PATH using:

 $ export PATH=/Users/myname/Documents/adt-bundle-mac-x86_64-20130729/sdk/platform-tools:/Users/myname/Documents/adt-bundle-mac-x86_64-20130729/sdk/tools:/Users/myname/Documents/android-ndk-r9:$PATH 

The above export PATH = (path to the SDK platform tool folder) :( Path to the SDK tool folder) :( Path to the NDK folder): $ PATH. You need to make sure that you add the correct directories where your NDK and SDK are.

Once this is done, run the make command from the terminal:

 $ make 

This should work, and then you can import the project into eclipse and run it. Let me know how you are doing. I spent days trying to get this to work, and it finally worked.

+4
source share

All Articles