X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=README.android;h=439f85dc1ecbce7e9126b12803b08e31d7b3561e;hb=HEAD;hp=71a18222cccf7bbad0ce815fb518d500d67925ec;hpb=8b08d68ba789289f1744c7d3724c6c6b118ead44;p=freeglut diff --git a/README.android b/README.android index 71a1822..439f85d 100644 --- a/README.android +++ b/README.android @@ -1,61 +1,3 @@ -Create a module compatible with the NDK build-system -==================================================== -- Use your own cross-compiler for Android, or export the one from the - NDK: + See http://freeglut.sourceforge.net/docs/android.php - /usr/src/android-ndk-r7/build/tools/make-standalone-toolchain.sh \ - --platform=android-9 \ - --install-dir=/usr/src/ndk-standalone-9 - -- Build FreeGLUT with a '/freeglut' prefix : - - PATH=/usr/src/ndk-standalone-9/bin:$PATH - cd /usr/src/freeglut-3.0.0/ - cmake \ - -D CMAKE_TOOLCHAIN_FILE=android_toolchain.cmake \ - -D CMAKE_INSTALL_PREFIX=/freeglut \ - -D FREEGLUT_GLES2=ON \ - -D FREEGLUT_BUILD_DEMOS=NO \ - . - make -j4 - make install DESTDIR=$(pwd) - -- Copy Android.mk in the new 'freeglut/' directory : - - cp android/Android.mk freeglut/ - -- Reference this module in your jni/Android.mk: - - LOCAL_STATIC_LIBRARIES := ... freeglut - ... - $(call import-module,freeglut) - -- You now can point your NDK_MODULE_PATH to this module! - - ndk-build NDK_MODULE_PATH=/usr/src/freeglut-3.0.0/freeglut/ - - -Compile FreeGLUT for a traditional cross-compiler environment -============================================================= - -- Use your own cross-compiler for Android, or export the one from the - NDK: - - /usr/src/android-ndk-r7/build/tools/make-standalone-toolchain.sh \ - --platform=android-9 \ - --install-dir=/usr/src/ndk-standalone-9 - -- Compile FreeGLUT and install it in your Android cross-compiler path: - - PATH=/usr/src/ndk-standalone-9/bin:$PATH - ./configure --host=arm-linux-androideabi --prefix=/usr/src/ndk-standalone-9 - make - make install - -- Compile your own project, for instance if you use the autotools: - - PATH=/usr/src/ndk-standalone-9/bin:$PATH - ./configure --host=arm-linux-androideabi --prefix=/somewhere - make - make install