From 66664337e7ac9a6a0f36a9a096c9cfe7db62c548 Mon Sep 17 00:00:00 2001 From: beuc Date: Fri, 4 May 2012 11:18:43 +0000 Subject: [PATCH] Move Android docs to the website git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1297 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/web-src/docs/android.php | 149 +++++++++++++++++++++++++++--- 1 file changed, 138 insertions(+), 11 deletions(-) diff --git a/freeglut/web-src/docs/android.php b/freeglut/web-src/docs/android.php index 919b4c3..b45937e 100644 --- a/freeglut/web-src/docs/android.php +++ b/freeglut/web-src/docs/android.php @@ -8,14 +8,150 @@ setPageTitle("Android"); generateHeader($_SERVER['PHP_SELF']); ?> + + +

+ + FreeGLUT 3.0 introduces support for the Android platform.
+ + This platform is different than traditional desktop platforms, requiring cross-compilation, interfacing with a touchscreen, and ability for your application to be paused and resumed at any time.
+ + Here's how: + +

+ + +

Compiling

+ + + + +

Using in your projects

+ +

Compile your own project using common build systems

+ +

For instance if you use the autotools:

+ +
+      PATH=/usr/src/ndk-standalone-9/bin:$PATH
+      export PKG_CONFIG_PATH=/usr/src/ndk-standalone-9/sysroot/usr/share/pkgconfig
+      ./configure --host=arm-linux-androideabi --prefix=/somewhere
+      make
+      make install
+    
+ +

If you use CMake, you may want to copy our Android toolchain + 'android_toolchain.cmake':

+ +
+      PATH=/usr/src/ndk-standalone-9/bin:$PATH
+      export PKG_CONFIG_PATH=/usr/src/ndk-standalone-9/sysroot/usr/share/pkgconfig
+      cp .../freeglut-x.x/android_toolchain.cmake .
+      mkdir cross-android/
+      cd cross-android/
+      cmake \
+        -D CMAKE_TOOLCHAIN_FILE=../android_toolchain.cmake \
+        -D CMAKE_INSTALL_PREFIX=/somewhere \
+        -D CMAKE_BUILD_TYPE=Debug \
+        -D MY_PROG_OPTION=something ... \
+        ..
+      make -j4
+      make install
+    
+ +

Check progs/test-shapes-gles1/ in the FreeGLUT + source distribution for a complete, stand-alone example.

+ +

Compile your own project using the NDK build-system

+ + +

Roadmap

@@ -61,15 +197,6 @@ New functions will be necessary to : (Work In Progress) - -

Compiling

- -

Create a module compatible with the NDK build-system

-

Compile FreeGLUT for a traditional cross-compiler environment

- - -

Using in your projects

-

Links