Android: Difference between revisions

794 bytes added ,  14 December 2009
Add quickstart section for setting up on Linux
(→‎Prerequisites: fix android sdk link)
(Add quickstart section for setting up on Linux)
Line 24: Line 24:


The NDK is the only Android-specific prereq for building, though you will probably want the [http://developer.android.com/sdk/ Android SDK] for an emulator and tools such as 'adb'.  Either 2.0 or 1.6 will do.
The NDK is the only Android-specific prereq for building, though you will probably want the [http://developer.android.com/sdk/ Android SDK] for an emulator and tools such as 'adb'.  Either 2.0 or 1.6 will do.
==== Quickstart (Linux) ====
Just paste these commands into your terminal to download and install the NDK and SDK.
# get SDK and NDK
wget http://dl.google.com/android/android-sdk_r04-linux_86.tgz &&
wget http://dl.google.com/android/ndk/android-ndk-1.6_r1-linux-x86.zip &&
# unpack SDK and NDK
unzip android-ndk-1.6_r1-linux-x86.zip &&
tar xvfz android-sdk_r04-linux_86.tgz &&
# setup NDK
cd android-ndk-1.6_r1 &&
build/host-setup.sh &&
cd ..
The SDK needs to be setup manually.
* In the SDK directory, run tools/android
* Check Settings->Force https://... sources to be fetched using http://...
* Click Save & Apply
* Installed Packages->Update All...
* You may uncheck everything you don't need. Just installing the latest 1.x and 2.x SDKs is fine.
* Click Install Accepted


=== Building ===
=== Building ===
134

edits