Sipdroid is an open-source VOIP service that runs on the Android platform. The current version has been updated to 2.5 and supports video calls. As a matter of fact, from changlog, video calls can be started from version 1.5. The sipdroidsource code and .apk can be downloaded at the following link and click the open link.
After the source code is downloaded and imported to sipdroid using eclipse, a red exclamation point is displayed next to the project name. It looks so bad. Check the error message in the console window. The project is missing. properties, which leads to a red (all errors) of java files in the project ). If you do not copy one from another project, modify the target variable settings in project. properties according to the actual situation. This is the API version number. Then, refresh the project, and the java files are all incorrect.
Below I started to compile the file under the JNI directory with ndk, my system is ubuntu10.04, ndk version is android-ndk-r7b.
Switch to the JNI directory of the project and run the following command: ndk-build (the ndk-build path has been added to the system path. If not, specify the full path). An error is reported:
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: modify the application under the JNI directory. in the MK file: app_project_path: = $ (call my-DIR), change it to: app_project_path: = $ (call my-DIR )/...
Run the following command again: ndk-build:
Android NDK: /home/helei/workspace/raydroid/jni/../jni/Android.mk:silkcommon: LOCAL_MODULE_FILENAME must not contain a file extension /home/helei/android_toolchain/android-ndk-r7b/build/core/build-static-library.mk:29: *** Android NDK: Aborting . Stop.
Obviously, an error occurred while compiling the static library silkcommon.
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 \
Previously added: include $ (clear_vars), and changed:
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 \
Run ndk-build again. Everything is OK.
So far, all compilation is completed