From 3a72f3ebda3b946cfba1e2c3e42c3042ea9bef42 Mon Sep 17 00:00:00 2001 From: markwkidd Date: Mon, 11 Sep 2017 14:17:37 -0400 Subject: [PATCH] link to new docs --- Compilation-guide-(Android-from-Linux).md | 56 ------------------- ...ation-guide-(Android-from-Linux).mediawiki | 1 + 2 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 Compilation-guide-(Android-from-Linux).md create mode 100644 Compilation-guide-(Android-from-Linux).mediawiki diff --git a/Compilation-guide-(Android-from-Linux).md b/Compilation-guide-(Android-from-Linux).md deleted file mode 100644 index 416a706..0000000 --- a/Compilation-guide-(Android-from-Linux).md +++ /dev/null @@ -1,56 +0,0 @@ -## Prerequisites - -You need a complete android development environment ready to develop native apps. That means you have: -* [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. -These instructions have been tested under Linux (Fedora 20). They _may_ also work in windows with cygwin. - -## Getting the code -```bash -git clone https://github.com/libretro/libretro-super.git -cd libretro-super -./libretro-fetch.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 - -## Building the cores -```bash -NOCLEAN=1 ./libretro-build-android-mk.sh -``` -You can omit NOCLEAN=1 if you'd like to perform `make clean` on every core's repo before building each. - -## Building RetroArch -The RetroArch repo is fetched into the `libretro-super` folder as `retroarch` by `./libretro-fetch.sh` above. - -You first need to fetch the submodules for it. (will not be necessary when PR #3568 is merged) -```bash -cd retroarch -git submodule update --init -``` -Then set up the android projects. -```bash -cd pkg/android/phoenix -android update project --path . -android update project --path libs/googleplay/ -android update project --path libs/appcompat/ # this doesn't seem to exist anymore -``` -Now edit `local.properties` to point to the location of your ndk directory by adding a line like this: `ndk.dir=/complete/path/to/android-ndk-r9d` - -Finally, copy the cores, assets and overlays to the right place and build it. -```bash -mkdir -p assets/cores -mkdir assets/overlays -cp ../../../../dist/android/armeabi-v7a/* assets/cores/ #replace armeabi-v7a here by mips or x86 for those targets -cp -r ../../../../dist/info/ assets/ -cp -r ../../../../retroarch/media/overlays/* assets/overlays/ -ant clean -ant debug -``` -If all goes well, this will spit out an .apk, `bin/retroarch-debug.apk`. Put it on your device with -```bash -adb install -r bin/retroarch-debug.apk -``` diff --git a/Compilation-guide-(Android-from-Linux).mediawiki b/Compilation-guide-(Android-from-Linux).mediawiki new file mode 100644 index 0000000..e94c21c --- /dev/null +++ b/Compilation-guide-(Android-from-Linux).mediawiki @@ -0,0 +1 @@ +This doc is now part of [https://github.com/libretro/docs libretro-docs] and can be viewed here: https://github.com/libretro/docs \ No newline at end of file