Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
May 22, 2012, 10:31:53 AM (12 years ago)
- Author:
-
michaelz
- Comment:
-
Added instructions on how to install ant contrib
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v2
|
|
| 11 | 11 | Make sure you have the following things installed (the list may or may not be complete ;-)): a current JDK, patch, autoconf, pkg-config, gtk-doc-tools, GNU make and xzip |
| 12 | 12 | |
| 13 | | === get the workspace === |
| | 13 | === get the source === |
| 14 | 14 | |
| 15 | | Check out the Android branch into a new working directory. |
| | 15 | Check out the Android branch im.pidgin.soc.2012.android into a new working directory. |
| 16 | 16 | |
| 17 | 17 | === Eclipse === |
| … |
… |
|
| 19 | 19 | You need Eclipse IDE with C and Java Support. For this, I recommend you download Eclipse Classic or Eclipse IDE for Java developers. Files can be found at http://www.eclipse.org/downloads/. Eclipse does not need an installation, just extract the archive somewhere. |
| 20 | 20 | |
| 21 | | Start it: |
| | 21 | Start it: [[BR]] |
| 22 | 22 | The executeable is in the Eclipse directory you just downloaded. |
| 23 | | It will prompt you for a workspace. Select the android/workspace subdirectory in the Android branch. |
| 24 | | There are errors in the projects, because you first need to install the Android plugin. |
| | 23 | It will prompt you for a workspace. You can android/workspace subdirectory in the Android branch, or any other directory you like. The worksapce appears to be empty because eclipse does not know that there are already projects in it. |
| | 24 | There may be errors in the projects, because you first need to install the Android plugin. |
| 25 | 25 | |
| 26 | | Install C: |
| | 26 | Install C: [[BR]] |
| 27 | 27 | Go to Help → Install new Software. Select the update site for your Eclipse version. Then install "Programming languages" → "C/C++ Development tools" |
| 28 | 28 | |
| | 29 | Install Ant contrib [[BR]] |
| | 30 | [http://sourceforge.net/projects/ant-contrib/ Download ant-contrib], extract the archive somewhere. |
| | 31 | Go to Window → preferences → Ant → Runtime. In the Classpath tab, select Global Entries from the list and click on "Add external JARs". Select the ant-contrib-*.jar you just downloaded. |
| | 32 | |
| | 33 | Now go to the properties tab. Add a property named "ndk.root" which has the value "${ndk.root}", and one named "ndk.host" with the value "${ndk.host}" |
| | 34 | |
| | 35 | Add the projects: [[BR]] |
| | 36 | To tell eclipse that the projects exist, add them to eclipse: File → Import... → Existing projects into Workspace. Selest the android/workspace directory and all projects eclipse automatically finds. |
| 29 | 37 | |
| 30 | 38 | |
| … |
… |
|
| 67 | 75 | }}} |
| 68 | 76 | |
| 69 | | Enter the install directory in eclipse in Preferences → String Substitution as ndk.root TODO: How exactly |
| | 77 | Enter the install directory in eclipse in Preferences → String Substitution as ndk.root and add a new substitution "ndk.host" with the value arm-linux-androideabi |
| | 78 | |
| | 79 | Currently, only arm is supported. |
| 70 | 80 | |
| 71 | 81 | == Build it == |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!