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.

Changes between Version 1 and Version 2 of GSoC2012/Android/compiling


Ignore:
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
  • GSoC2012/Android/compiling

    v1 v2  
    1111Make 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
    1212
    13 === get the workspace ===
     13=== get the source ===
    1414
    15 Check out the Android branch into a new working directory.
     15Check out the Android branch im.pidgin.soc.2012.android into a new working directory.
    1616
    1717=== Eclipse ===
     
    1919You 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.
    2020
    21 Start it:
     21Start it: [[BR]]
    2222The 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.
     23It 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.
     24There may be errors in the projects, because you first need to install the Android plugin.
    2525
    26 Install C:
     26Install C: [[BR]]
    2727Go to Help → Install new Software. Select the update site for your Eclipse version. Then install "Programming languages" → "C/C++ Development tools"
    2828
     29Install Ant contrib [[BR]]
     30[http://sourceforge.net/projects/ant-contrib/ Download ant-contrib], extract the archive somewhere.
     31Go 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
     33Now 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
     35Add the projects: [[BR]]
     36To 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.
    2937
    3038
     
    6775 }}}
    6876
    69 Enter the install directory in eclipse in Preferences → String Substitution as ndk.root TODO: How exactly
     77Enter 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
     79Currently, only arm is supported.
    7080
    7181== 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!