5 - Initialize context with EGL
8 - Virtual keypad (on touchscreen)
9 - Extract assets in cache dir on start-up
12 - Open new windows (if that's possible)
13 - Joystick support (xperia play...)
14 - Display translucent keys on virtual keypad
15 - API to detect touchscreen presence
16 - API to disable assets extract
17 - GLES2 support for geometry and menus
19 - Generate freeglut_std.h with GLES1 or GLES2 or non-ES headers
20 - Make EGL support reusable by Mesa X11
24 Create a module compatible with the NDK build-system
25 ====================================================
27 - Use your own cross-compiler for Android, or export the one from the
30 /usr/src/android-ndk-r7/build/tools/make-standalone-toolchain.sh \
31 --platform=android-9 \
32 --install-dir=/usr/src/ndk-standalone-9
34 - Build FreeGLUT with a '/freeglut' prefix :
36 PATH=/usr/src/ndk-standalone-9/bin:$PATH
37 cd /usr/src/freeglut-3.0.0/
39 -D CMAKE_TOOLCHAIN_FILE=android_toolchain.cmake \
40 -D CMAKE_INSTALL_PREFIX=/freeglut \
41 -D FREEGLUT_GLES2=ON \
42 -D FREEGLUT_BUILD_DEMOS=NO \
45 make install DESTDIR=$(pwd)
47 - Copy Android.mk in the new 'freeglut/' directory :
49 cp android/Android.mk freeglut/
51 - Reference this module in your jni/Android.mk:
53 LOCAL_STATIC_LIBRARIES := ... freeglut
55 $(call import-module,freeglut)
57 - You now can point your NDK_MODULE_PATH to this module!
59 ndk-build NDK_MODULE_PATH=/usr/src/freeglut-3.0.0/freeglut/
62 Compile FreeGLUT for a traditional cross-compiler environment
63 =============================================================
65 - Use your own cross-compiler for Android, or export the one from the
68 /usr/src/android-ndk-r7/build/tools/make-standalone-toolchain.sh \
69 --platform=android-9 \
70 --install-dir=/usr/src/ndk-standalone-9
72 - Compile FreeGLUT and install it in your Android cross-compiler path:
75 PATH=/usr/src/ndk-standalone-9/bin:$PATH
76 cd /usr/src/freeglut-3.0.0/
78 -D CMAKE_TOOLCHAIN_FILE=android_toolchain.cmake \
79 -D CMAKE_INSTALL_PREFIX=/usr/src/ndk-standalone-9 \
80 -D FREEGLUT_GLES2=ON \
81 -D FREEGLUT_BUILD_DEMOS=NO \
86 - Compile your own project, for instance if you use the autotools:
88 PATH=/usr/src/ndk-standalone-9/bin:$PATH
89 ./configure --host=arm-linux-androideabi --prefix=/somewhere