Hi I try to integrate the android version of Open Scene graph in the Full
Screen UI Facade.
So far I success in adding a customized SurfaceGLView (taken from the osg
example) in my loaded layout and thus creating the Gl context.
When I add the
1) java class with the JNI pointer to the facade package in the common
project ,
AND also
2) the shared library in the jni directory and (+) modify the Android.mk
Everything compile fine, the apk is way bigger due to the size of the .so
file.
When I try to access to one of the native function through the java class ,
i have , a No Implementation Exception.
Here is part of the logcat.
07-22 02:29:30.454: D/sl4a.ViewInflater:272(3078): text:..
07-22 02:29:32.534: I/dalvikvm(3078): Jit: resizing JitTable from 1024 to
2048
07-22 02:29:36.424: D/libEGL(3078): loaded
/system/lib/egl/libGLES_android.so
07-22 02:29:36.434: D/libEGL(3078): loaded
/system/lib/egl/libEGL_adreno200.so
07-22 02:29:36.444: D/libEGL(3078): loaded
/system/lib/egl/libGLESv1_CM_adreno200.so
07-22 02:29:36.444: D/libEGL(3078): loaded
/system/lib/egl/libGLESv2_adreno200.so
07-22 02:29:36.454: W/EGLview(3078): creating OpenGL ES 2.0 context
07-22 02:29:36.474: D/dalvikvm(3078): Trying to load lib
/data/data/com.googlecode.android_scripting/lib/libcom_googlecode_android_s cripting_facade_ui_osgNativeLib.so
0x45a3f6d0
07-22 02:29:36.704: D/dalvikvm(3078): Added shared lib
/data/data/com.googlecode.android_scripting/lib/libcom_googlecode_android_s cripting_facade_ui_osgNativeLib.so
0x45a3f6d0
07-22 02:29:36.704: D/dalvikvm(3078): No JNI_OnLoad found in
/data/data/com.googlecode.android_scripting/lib/libcom_googlecode_android_s cripting_facade_ui_osgNativeLib.so
0x45a3f6d0, skipping init
07-22 02:29:36.704: W/dalvikvm(3078): No implementation found for native
Lcom/googlecode/android_scripting/facade/ui/osgNativeLib;.init (II)V
07-22 02:29:36.724: W/dalvikvm(3078): threadid=13: thread exiting with
uncaught exception (group=0x40020950)
07-22 02:29:36.734: E/AndroidRuntime(3078): FATAL EXCEPTION: GLThread 14
07-22 02:29:36.734: E/AndroidRuntime(3078): java.lang.UnsatisfiedLinkError:
init
07-22 02:29:36.734: E/AndroidRuntime(3078): at
com.googlecode.android_scripting.facade.ui.osgNativeLib.init(Native Method)
07-22 02:29:36.734: E/AndroidRuntime(3078): at
com.googlecode.android_scripting.facade.ui.EGLview$Renderer.onSurfaceChange d(EGLview.java:265)
07-22 02:29:36.734: E/AndroidRuntime(3078): at
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1325)
07-22 02:29:36.734: E/AndroidRuntime(3078): at
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
07-22 02:34:35.995: I/Process(3078): Sending signal. PID: 3078 SIG: 9
I think the issue migth come from the fact the native library and the
java/jni class are in to different project , (Common , and
ScriptingLayerForAndroid)
I try to change the name of the so file to match the package of the
Java/JNI calss as it done for the Exec class in ScriptingLayerForAndroid
project but it don't seem to work.
Any help would be welcome