I downloaded and installed Android-NDK in my Archlinux using this package .
Failed to create (and run) the sample hello-jniaccording to the manual on this page , but if I try to do the same with hello-gl2I get some errors; It looks like it cannot find the header files:
$ ../../ndk-build
/usr/bin/make -f /opt/android-ndk/build/core/build-local.mk
Compile++ thumb : gl2jni <= gl_code.cpp
/opt/android-ndk/samples/hello-gl2/jni/gl_code.cpp:22:23: error: GLES2/gl2.h: No such file or directory
/opt/android-ndk/samples/hello-gl2/jni/gl_code.cpp:23:26: error: GLES2/gl2ext.h: No such file or directory
--- SNIP ---
GLES2/gl2.hand GLES2/gl2ext.h, however, are present in $(NDK)/platforms/android-4/arch-arm/usr/include/, and it looks like it $(NDK)/build/core/setup-toolchain.mkshould set such an include path.
Has anyone encountered the same problem? How can I compile this sample?
And then are there any other features that make it easy to create Android-NDK applications? This build system seems pretty complicated to me, and I'd rather use cmake to build my applications.
peoro source
share