better pre-reqs

John Grub 2014-06-11 22:47:35 -07:00
parent 6e8576a930
commit 4a968c02f2
1 changed files with 10 additions and 8 deletions

@ -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.
Use `install -r` if you're reinstalling over an existing apk.