EdwardComb
unread,May 4, 2011, 12:40:03 AM5/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
Hi everyone,
I am new in Android NDK and just discover it in the past few days.
I have installed cygwin and android-ndk-r5b in my development machine.
So, I want to start with the sample code given, running on emulator.
This is what I've done:
1) Open the hello-gl2 project directory in cygwin terminal
2) Run /cygdrive/c/android-ndk-r5b/ndk-build and I got:
Install : libgl2jni.so => libs/armeabi/libgljni.so
3) Using Eclipse, File --> New --> Android Project --> Create project
from existing source --> Choose the hello-gl2 project directory -->
Finish
I managed to do it for hello-jni, two-libs and san-angeles. But, I
have the problem with
the hello-gl2. I got 2 errors in the code in src/GL2JNIView.java
private void init(boolean translucent, int depth, int stencil) {
....
setEGLContextFactory(new ContextFactory()); <---- Error: the
method is undefined for the type GL2JNIView
}
private static class ContextFactory implements
GLSurfaceView.EGLContextFactory { <----
Error:GLSurfaceView.EGLContextFactory cannot be resolved to a type
....
public EGLContext createContext(EGL10 egl, EGLDisplay display,
EGLConfig eglConfig) {
.....
}
}
Did anybody got this problem before?
Thanks in advance.