Sipdroid compilation and import to the Eclipse Environment

Source: Internet
Author: User



Voip. The current version has been updated to 3.0 and supports video calls. The source code and apk of sipdroid can be downloaded from the project's home page.

1. Official Address of the sipdroid Project


Project homepage:

Http://code.google.com/p/sipdroid/

Code address:

Svn checkoutHttp: // Sipdroid.googlecode.com/svn/trunk/sipdroid-read-only


Sipdroid import Eclipse

, The project will directly report an error.

Method 1: Click here to modify the target variable settings in project. properties according to the actual situation. This is the API version number. Refresh the project.

Method 2: Use command lineto update the project by referring to the built.txt file in the project directory.
For example, android update project-p.-t 2 (here-p refers to -- path-t refers to -- target)

In command line mode, enter the parent directory of sipdroid and execute the following command:

android update project -p sipdroid_build -t android-15

Then import the Eclipse environment.

After the jni compilation environment is complete, you can switch to the jni directory of the sipdroid project and execute: ndk-build

Possible Errors During the ndk-build Process and solutions:

Error 1:

sipdroid_build/jni/speex_jni.cpp:26:25: fatal error: speex/speex.h: No such file or directorycompilation terminated./cygdrive/f/android-ndk-r9c-windows-x86/android-ndk-r9c/build/core/build-binary.mk:388: recipe for target '/cygdrive/f/videoapp/sipdroid_build/obj/local/armeabi/objs/speex_jni/speex_jni.o' failedmake: *** [/cygdrive/f/videoapp/sipdroid_build/obj/local/armeabi/objs/speex_jni/speex_jni.o] Error 1
Solution: copy the speex-1.2rc1/include/speex folder in the jni folder to the jni directory

Android NDK: WARNING: APP_PLATFORM android-15 is larger than android: minSdkVersion 5 in/cygdrive/f/videoapp/sipdroid_build/AndroidManifest. xmlAndroid NDK:/cygdrive/f/videoapp/sipdroid_build/jni/Android. mk: silkcommon: LOCAL_MODULE_FILENAME must not contain a file extension/cygdrive/f/android-ndk-r9c-windows-x86/android-ndk-r9c/build/core/build-static-library.mk: 29: *** Android NDK: Aborting. Stop.

Solution: Open the Android. mk file in the jni directory and locate the following code:

SILK     := silkLOCAL_MODULE    := silkcommonLOCAL_SRC_FILES :=  $(SILK)/src/SKP_Silk_A2NLSF.c \$(SILK)/src/SKP_Silk_CNG.c \$(SILK)/src/SKP_Silk_HP_variable_cutoff_FIX.c \$(SILK)/src/SKP_Silk_LBRR_reset.c \$(SILK)/src/SKP_Silk_LPC_inv_pred_gain.c \$(SILK)/src/SKP_Silk_LPC_stabilize.c \$(SILK)/src/SKP_Silk_LPC_synthesis_filter.c \$(SILK)/src/SKP_Silk_LPC_synthesis_order16.c \

Add

include $(CLEAR_VARS)SILK     := silkLOCAL_MODULE    := silkcommonLOCAL_SRC_FILES :=  $(SILK)/src/SKP_Silk_A2NLSF.c \$(SILK)/src/SKP_Silk_CNG.c \$(SILK)/src/SKP_Silk_HP_variable_cutoff_FIX.c \$(SILK)/src/SKP_Silk_LBRR_reset.c \$(SILK)/src/SKP_Silk_LPC_inv_pred_gain.c \$(SILK)/src/SKP_Silk_LPC_stabilize.c \$(SILK)/src/SKP_Silk_LPC_synthesis_filter.c \$(SILK)/src/SKP_Silk_LPC_synthesis_order16.c \$(SILK)/src/SKP_Silk_LP_variable_cutoff.c \

During the compilation process, I encountered these two errors. I also saw an error on the Internet, but I did not, as shown below:
Android NDK: There is no Android.mk under /home/helei/workspace/raydroid/jni/jni    Android NDK: If this is intentional  please define APP_BUILD_SCRIPT to point   Android NDK: to a valid NDK build script.    /home/helei/android_toolchain/android-ndk-r7b/build/core/add-application.mk:143: *** Android NDK: Aborting...    .  Stop.
Solution:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.