From 4a968c02f222acbf8dcacd22cbc1d75043d8c564 Mon Sep 17 00:00:00 2001 From: John Grub Date: Wed, 11 Jun 2014 22:47:35 -0700 Subject: [PATCH] better pre-reqs --- Android-compilation-guide-(from-linux).md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Android-compilation-guide-(from-linux).md b/Android-compilation-guide-(from-linux).md index 75f02d0..8016e9f 100644 --- a/Android-compilation-guide-(from-linux).md +++ b/Android-compilation-guide-(from-linux).md @@ -1,21 +1,23 @@ ## Prerequisites You need a complete android development environment ready to develop native apps. That means you have: -* Android SDK -* Android NDK +* [Android SDK](http://developer.android.com/sdk/index.html) +* [Android NDK](https://developer.android.com/tools/sdk/ndk/index.html) * The [ant tool](http://ant.apache.org/) -Use Google to figure out how to install that and make sure the appropriate executables from the above are in your path variable. You should also be running some flavor of Linux. +Use Google to figure out how to install that and make sure the appropriate executables from the above are in your path variable. +These instructions have been tested under Linux. They _may_ also work in windows with cygwin. ## Building libretro cores ```bash git clone https://github.com/libretro/libretro-super.git cd libretro-super -./libretro-fetch.sh # can fail on fork() calls, repeat until all are up to date -./libretro-build-android-mk.sh # some cores may fail to compile (g++ "Argument list too long" error) - # see https://github.com/libretro/libretro-super/issues/10 +./libretro-fetch.sh +./libretro-build-android-mk.sh ``` - +`./libretro-fetch.sh` can fail on fork() calls, repeat until all are up to date +For `./libretro-build-android-mk.sh`, some cores may fail to compile (g++ "Argument list too long" error). See https://github.com/libretro/libretro-super/issues/10 +You can avoid cleaning before building the cores if you wish (greatly speeds things up if you're building often) by using `NOCLEAN=1 ./libretro-build-android-mk.sh` ## Building RetroArch The RetroArch repo is fetched into the `libretro-super` folder as `retroarch` by `./libretro-fetch.sh` above. ```bash @@ -36,4 +38,4 @@ If all goes well, this will spit out an .apk, `bin/retroarch-debug.apk`. Put it ```bash adb -d install bin/retroarch-debug.apk ``` -Use `install -r` if you're reinstalling over an existing install. \ No newline at end of file +Use `install -r` if you're reinstalling over an existing apk. \ No newline at end of file