Hi,

I am building the two Android examples of OSG 3.0.1. The building seems 
successful but while I run them on Android 2.3.3 AVD emulator, there is 
following error:


Code:

The application osgAndroidExample (process osg. AndroidExample) has stopped 
unexpectedly. Please try again.




Another test example osgViewerGLES1-apk that I downloaded runs well.

While running the osgAndroidExample, the ADB logcat says:


Code:

I/ActivityManager(   75): Starting: Intent { act=android.intent.action.MAIN 
cat=[android.intent.category.LAUNCHER] flg=0x10200000 
cmp=osg.AndroidExample/.osgViewer } from pid 220
I/ActivityManager(   75): Start proc osg.AndroidExample for activity 
osg.AndroidExample/.osgViewer: pid=4577 uid=10034 gids={3003}
I/WindowManager(   75): Setting rotation to 1, animFlags=1
I/ActivityManager(   75): Config changed: { scale=1.0 imsi=310/260 loc=zh_CN 
touch=3 keys=2/1/2 nav=3/1 orien=2 layout=34 uiMode=17 seq=51}
I/ActivityManager(   75): Displayed osg.AndroidExample/.osgViewer: +2s390ms
D/libEGL  ( 4577): egl.cfg not found, using default config
D/libEGL  ( 4577): loaded /system/lib/egl/libGLES_android.so
W/dalvikvm( 4577): threadid=9: thread exiting with uncaught exception 
(group=0x40015560)
E/AndroidRuntime( 4577): FATAL EXCEPTION: GLThread 10
E/AndroidRuntime( 4577): java.lang.IllegalArgumentException: No configs match 
configSpec
E/AndroidRuntime( 4577):        at 
osg.AndroidExample.EGLview$ConfigChooser.chooseConfig(EGLview.java:155)
E/AndroidRuntime( 4577):        at 
android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:919)
E/AndroidRuntime( 4577):        at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1264)
E/AndroidRuntime( 4577):        at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
W/ActivityManager(   75):   Force finishing activity 
osg.AndroidExample/.osgViewer





cmake options I use:


Code:

cmake . -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF \
-DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF \
-DOSG_GL_MATRICES_AVAILABLE=OFF -DOSG_GL_VERTEX_FUNCS_AVAILABLE=OFF \
-DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=OFF -DOSG_GL_FIXED_FUNCTION_AVAILABLE=OFF 
\
-DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF  -DOSG_GL1_AVAILABLE=OFF 
-DOSG_GL2_AVAILABLE=OFF \
-DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=OFF -DOSG_GLES2_AVAILABLE=ON




If DYNAMIC_OPENTHREADS and DYNAMIC_OPENSCENEGRAPH are set to ON, the 
compilation will fail.

I'm using android ndk r5b. I edited jni/Android.mk in the example, and changed  
"type your install directory" to where OpenSceneGraph is.
Then use ndk-build to compile the native code. And use eclipse to generate the 
signed apk file.

Is there anything else I should do? 
Thanks a lot!


Cheers,
Su

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to