Hi,

I have been going through the Android/O,SG tutorial. I compiled OSG for Android 
on my Debian machine, which seems to have completed correctly and I am now 
trying to run the GLES2 example on my Samsung gti5500 with android gingerbread. 
I replaced OSG_ANDROID_DIR with the correct directory and  I added the OSG 
includes to LOCAL_C_INCLUDES. I have also added 
-L/home/maurizio/android-ndk-r7/sources/cxx-stl/gnu-libstdc++/libs/armeabi  to 
LOCAL_LD_FLAGS, in order to avoid a linker  errors. Both the C++ and Java part 
of the example seem to compile without errors, but when I try to run the app on 
my phone it force closes and the log is


Code:
01-21 17:36:38.784: D/libEGL(9462): loaded /system/lib/egl/libGLES_android.so
01-21 17:36:38.964: D/libEGL(9462): loaded /system/lib/egl/libEGL_adreno200.so
01-21 17:36:39.134: D/libEGL(9462): loaded 
/system/lib/egl/libGLESv1_CM_adreno200.so
01-21 17:36:39.134: D/libEGL(9462): loaded 
/system/lib/egl/libGLESv2_adreno200.so
01-21 17:36:39.154: W/EGLview(9462): creating OpenGL ES 2.0 context
01-21 17:36:39.384: D/dalvikvm(9462): Trying to load lib 
/mnt/asec/osg.AndroidExample-2/lib/libosgNativeLib.so 0x40518a70
01-21 17:36:40.294: W/dalvikvm(9462): Exception 
Ljava/lang/UnsatisfiedLinkError; thrown while initializing 
Losg/AndroidExample/osgNativeLib;
01-21 17:36:40.514: W/dalvikvm(9462): threadid=9: thread exiting with uncaught 
exception (group=0x40018560)
01-21 17:36:40.674: E/AndroidRuntime(9462): FATAL EXCEPTION: GLThread 10
01-21 17:36:40.674: E/AndroidRuntime(9462): 
java.lang.ExceptionInInitializerError
01-21 17:36:40.674: E/AndroidRuntime(9462):     at 
osg.AndroidExample.EGLview$Renderer.onSurfaceChanged(EGLview.java:319)
01-21 17:36:40.674: E/AndroidRuntime(9462):     at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1357)
01-21 17:36:40.674: E/AndroidRuntime(9462):     at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1119)
01-21 17:36:40.674: E/AndroidRuntime(9462): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1311]:  5394 
cannot locate 
'_ZTv0_n12_NSt19basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev'...
01-21 17:36:40.674: E/AndroidRuntime(9462):     at 
java.lang.Runtime.loadLibrary(Runtime.java:434)
01-21 17:36:40.674: E/AndroidRuntime(9462):     at 
java.lang.System.loadLibrary(System.java:554)
01-21 17:36:40.674: E/AndroidRuntime(9462):     at 
osg.AndroidExample.osgNativeLib.<clinit>(osgNativeLib.java:6)
01-21 17:36:40.674: E/AndroidRuntime(9462):     ... 3 more



The learning curve of this is actually pretty steep, and I am not sure what am 
I doing wrong and I would really appreciate any help or pointers in the right 
direction.

Thank you!

Cheers,
Maurizio

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44958#44958





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to