I\'ve just started learning OpenGL ES on android (using this book) and came across an issue of adopting source code from chapter 5 to existing methods of using jni in android (a
Those libraries are provided by Android itself. However, setting up your project to find them and compile your JNI (native) code correctly can be daunting.
I recommend using glbuffer as a starting project, as it will provide you with a GLSurfaceView
to draw on and set you up with the proper Android libraries.
The details of linking to the Android libraries are contained in jni/Android.mk
inside that project if you'd like to give it a shot yourself from scratch.
Edit - apparently glbuffer is missing jni/Application.mk
. Create it and put this inside:
APP_ABI := armeabi armeabi-v7a
APP_PLATFORM := android-8
Then the ndk will know to look inside the android-8 platform for your includes. You can change this to other versions as needed.