Solve the Problem of sipdroid source code JNI partial compilation

Source: Internet
Author: User

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.

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.