Compile and run Sipdroid project

Source: Internet
Author: User

Sipdroid is an open source SIP protocol VoIP phone, developed by Google and other companies. The following I will describe how to run the project in Windows System compilation.

Prerequisites:

ECLIPSE,JDK,SDK installation is successful and the corresponding environment variables are configured to form the Android development environment

First, download Sipdroid project source code

sipdroid The project is hosted on the SVN server. , so to get the sipdroid source code, you will need to use the SVN plugin to detect the project. In eclipse, you need to follow these steps:

(1) Installing Subclipse in eclipse
A.sublipse's website address is http://subclipse.tigris.org/
B. Select download and Install to get the appropriate subclipse based on your version of Eclipse
C. The address of the subclipse i downloaded is: http://subclipse.tigris.org/update_1.10.x , or download the compressed package, compress the package address is : http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

D. Open Eclipse->help->install new Software->add

Restart after update installation is complete

(2) Download sipdroid source code from Code.google using eclipse

A. Eclipse->window->open perspective in the selection of SVN resource library

B. Switch to SVN view, add a new SVN repository, enter http://sipdroid.googlecode.com/svn/trunk in the URL

C. Click Finish to download, then right-check the item and save it to your workspace

(Of course you can also file->import->git->projects from Git->uri in Eclipse to enter the appropriate URL for the Sipdroid project hosted at GitHub, Only in this way the source code downloaded may be modified or incomplete by others, so you need to choose carefully)

Second, configure the Sipdroid source code compilation environment

(1) switch back to Java view and discover that the downloaded Sipdroid project is named Sipua in Eclipse (the project appears with a red exclamation mark), The prompt is missing the project.properties file, you can copy the file from other projects into this project, change the target, and then right-click on the project->android Tools->and Support Library. Another option is to upgrade the project using the Android update project-p-T android-i command. Where-P is followed by the absolute path of the Sipdroid project, I represents the Android API version. The path to my sipdroid is F:\Android\SipUA, so this command is:
Android Update project-p F:\Android\SipUA-t android-16 correctly generates project.properties files, control windows such as:

Note: The Android API must be at least 16, and the generic 15 will have an import error

If Android requires compiler compliance level 5.0 or 6.0 appears. Found ' 1.7 ' instead. Please use Android Tools > Fix Project Properties. Just set the Java compiler as soon as the right-click Project chooses Properties. Specific example:

(2) Download NDK:The compilation of the Sipdroid project needs to be compiled using the NDK. The NDK is a Java layer in an Android project that can be written in a C + + code. So library, now the latest version is R10. The NDK is:http://developer.android.com/tools/sdk/ndk/index.html

After downloading the decompression can be used, in the decompression should be careful to avoid the path has Chinese characters or spaces, and then it is best to make the corresponding environment variable settings, so that the command line to facilitate the NDK compilation

Three. Compile and run the Sipdroid project

1. Right-Sipua Select Properties and select Builder to create a new builder


2. Select program and click OK

3. to name the builder, select the main option, click the Browse File System, select Ndk-build.cmd under the NDK directory, click Browse Workspace, select the Sipua project, Finally click Apply.

4. Select the Refresh option and tick refresh resourcces upon completion. Click Apply.

5. Select build options, tick During auto builds,during a clen,specify working set of relevant resources .... Click Specify resources to select the Sipua project, and then click Apply.


Here, the work to set up the NDK compilation has been completed. Does it feel particularly cumbersome? There is also a simple way to go directly to the command line into the project directory, run Ndk-build can be compiled successfully:

Finally, run this project in Eclipse, perform a real-machine debug, and open the software interface similar to the right image:

Compile and run Sipdroid project

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.