Because similar functions of sipdroid are required for the project, you have to learn the structure of sipdroid, which must look at the source code.
Sipdrod project source code located at: http://sipdroid.googlecode.com/svn/trunk/
After downloading, the first problem will occur. The project. properties file is missing. This is simple. Just copy one from another project. Pay attention to the target.
The first problem is solved. The second problem is as follows.
The second problem is the jni compilation problem. For details, cygwin is used. First, set builders. If other problems are ignored, run them directly. Generally, the following error is reported:
Android NDK: There is noAndroid. mk under/cygdrive/e/android_app/SipUA/jni
Android NDK: If this isintentional please defineAPP_BUILD_SCRIPT to point
Android NDK: to a valid NDKbuild script.
/Cygdrive/e/androidndkr6/build/core/add-application.mk: 128: *** Android NDK: Aborting... Stop.
Okay. Check the error report. If this is intentional pleasedefine APP_BUILD_SCRIPT to point, specify the APP_BUILD_SCRIPT, modify Application. mk, and add
APP_BUILD_SCRIPT = $ (APP_PROJECT_PATH)/Android. mk retry. An error is returned. Check the first two rows first.
E:/android_app/SipUA/jni/speex_jni.cpp: 26: 25: error: speex/speex. h: No such file or directory
E:/android_app/SipUA/jni/speex_jni.cpp: 36: error: 'speexbits 'does not name a type
Speex/speex. h is not found in speex_jni.cpp. Enter speex_jni.cpp in about 26 rows
# Include <speex/speex. h>
No speex directory under the Jni directory, the speex-1.2rc1 is renamed to speex, after the change into the speex directory found that speex. h In the include directory. The next task is to change all # include <speex/speex. h>
# Include <speex/include/speex. h>. In this way, you can change the path until the last step is passed. You can view the source code with peace of mind in the next step.