X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=README.android;h=d3770bb98e540e094700834117a96970b1a074c1;hb=aa2b6e6509639152662dce4ea66bc16c4ca9fd9f;hp=ecdfa41e3509ac6dae8c2f6f4e442803f4dd9da8;hpb=9c75aad38809be89ff62110b3235da1c3085d3da;p=freeglut diff --git a/README.android b/README.android index ecdfa41..d3770bb 100644 --- a/README.android +++ b/README.android @@ -83,9 +83,23 @@ Compile FreeGLUT for a traditional cross-compiler environment make -j4 make install -- Compile your own project, for instance if you use the autotools: +- 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 + +If you use CMake, you may want to copy our Android toolchain +'android_toolchain.cmake': + + cp .../android_toolchain.cmake . + cmake \ + -D CMAKE_TOOLCHAIN_FILE=android_toolchain.cmake + -D CMAKE_INSTALL_PREFIX=/somewhere \ + -D MY_PROG_OPTION=something ... \ + . + make -j4 + make install