From e23b22678945790534b0f4e4f27c8ff287357f0e Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Fri, 3 May 2013 18:32:02 +0200 Subject: [PATCH] Update README.md to have the right build instructions for Android. --- README.md | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4d471b543e..527dc0b390 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,39 @@ in order to get the "native" library. Now, the actual building: +Building for Windows +--------------------- + +Use Visual Studio 2010+, Visual C++ Express is fine. Open the solution and just build, +it'll work. You may just need to set up a path or two to the Windows SDK (which includes the DX SDK) +nowadays. + + +Building for Android +-------------------- + +Install the Android SDK and NDK. + +To build the native C/C++ part, from a shell or command prompt, run: + + ./ab.sh + +or, on Windows: + + ab.cmd + +in android/. You may need to tweak the paths in the ab file. + +Then just open the project in Eclipse and run on your device. When you make changes to +the native code, you may have to refresh or add a few spaces to PPSSPPActivity.java for +Eclipse to rebuild the APK when you run it on your device the next time. + +There's an alternate method of building for Android using CMake below. + + +Other platforms +--------------- + PPSSPP currently uses CMake for its build system. In order to build for most systems, create a `build` directory and run: @@ -75,10 +108,10 @@ on homebrew. Just follow the basic build instructions afterwards. Currently the user interface is identical to Android's, operated with the mouse. A Qt-based interface is planned. -Building for Android --------------------- +Building for Android using CMake (not recommended, see above) +------------------------------------------------------------- -To build for android, first you must set the ANDROID\_NDK environment +To build for Android using CMake, first you must set the ANDROID\_NDK environment variable to point to the path of your NDK install. This is done on windows cmd with `set ANDROID_NDK=X:\...`, on bourne shells with `export ANDROID_NDK=/path/to/ndk`, and on C shells with