android osg

James Cotton edited this page Nov 26, 2012 · 1 revision

Android OSG Setup

Compiling OSG for Android

These notes were developed from

Create a directory android_osg. Unzip there.

This code was used to build OpenSceneGraph. It takes about 6 hours on a relatively fast computer.

cmake ../OpenSceneGraph-3.0.1 \
        -DANDROID_NDK=`pwd`/../android-ndk-r8b/ \
        -DANDROID_ABI="armeabi armeabi-v7a" \
        -DANDROID_STL="gnustl_static" \
make install

Compiling a demo application

Use need to compile both the java and the native part. The native part is compiled with android-ndk. Modify the file from in the JNI directory of the project to link against the OSG install directory. See the link above for a few other modifications to make on top of the default Then call android-nk to compile the native half of the application. Finally launch it from eclipse.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.