Android uses NDK to compile sipdroid Library

Source: Internet
Author: User

Sipdroid is an open source VoIP running on Android platform, currently supports audio and video calls;

Project Tow Pipe Address: Http://code.google.com/p/sipdroid/

Download the source code, there will be some small errors when importing eclipse, but it is easier to change, these will not be repeated;

Under the command-line window under the project file, execute the ndk-build command (if you do not add NDK to the system environment variables need to be configured first);

C:\Users\zy\Desktop\Android sipdroid>ndk- is no android.mk under jni/ This is intentional  -Define App_build_script to pointandroid ndk:to a valid NDK BUILD SCRIPT. D:/android-ndk-r9c/build/core/add-application.mk:202: * * * android ndk:aborting ...    .  Stop.

Here will be a path error problem, need to modify the Application.mk file;

Modify App_project_path: = $ (call My-dir) for App_project_path: = $ (call My-dir)/.

Execute the ndk-build command again, and there is also an error

Android ndk:jni/. /jni/Android.mk:silkcommon:LOCAL_MODULE_FILENAME must not contain a file Extensiond:/android-ndk-r9c/build/ core/build-static-library.mk:* * * Android ndk:aborting    .  Stop.

This is obviously the time to compile Silkcommon error, in the Android.mk file to locate the Silkcommon, as follows:

Silk     : = silklocal_module    := silkcommonlocal_src_files:=  $ (silk)/src/skp_silk _A2NLSF.C     $ (SILK)/src/skp_silk_cng.c \ ...

It is obvious that there is a missing sentence, include $ (clear_vars), we add this sentence to the top;

include $ (clear_vars) SILK     := silklocal_module    := silkcommonlocal_src_files:=  $ (SILK)/SRC/SKP_SILK_A2NLSF.C \  ...

Execute Ndk-build again to compile successfully;

This compiles the library project, not the running app project.

Android uses NDK to compile sipdroid Library

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.