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

Note: a pre-built archive can be found here: freeglut3-android-modules.tar.gz (2014-06-01 / SVN revision 1686).

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="$PATH:/usr/src/android-ndk-r9d"
      PATH="$PATH:/usr/src/android-sdk-linux/tools"
      PATH="$PATH:/usr/src/android-sdk-linux/platform-tools"
      export PKG_CONFIG_PATH=/usr/src/ndk-standalone-9/sysroot/usr/share/pkgconfig
      cp .../freeglut-3.0/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

Done: TODO: Possibly implemented later:

New API

New callbacks were added : see API page. New functions will be necessary to : (Work In Progress)

Notes

Links