Jan Ciger wrote: > Hello Houhouh (sorry if that isn't your name, but you didn't provide one ...), > > > You haven't provided the ABI you have compiled for, but seeing that your > device has Tegra 2 SoC, I suspect that the crash comes from the lack of > support for the Neon instructions on it. These are similar to the SSE > instructions on x86, unfortunately they are an optional part of the ARM > specification, so not all vendors implement them. Nvidia chose not to and > thus Tegra 2 doesn't have them :( (however, the newer Tegra 3 does, go figure > ...) > > You can solve this either by switching to the v5 ABI (armeabi instead of > armeabi-v7a in your Application.mk file) that doesn't use Neon or by > disabling Neon instructions and recompiling OSG again. > > I believe this is actually documented in the Android part of the website too. > > Regards, > > Jan > > ------------------ > Post generated by Mail2Forum
Hello,Jan i am sorry that didnot say it clear : Android NDK: Building application 'local' for ABI 'armeabi' Android NDK: Using target toolchain 'arm-linux-androideabi-4.4.3' for 'armeabi' ABI i have compiled for ABI 'armeabi'. i followed the cookbook and commented " LOCAL_ARM_NEON := true" in PlatformSpecifics\Android\Android.mk.modules.in and commented "armeabi-v7a"also in .mk file both in cmake build folder or osgAndroidExampleGLES1/jni/ Application.mk So,did i disable the Neon instructions clean? i used cygwin to build the whole work,and i used CMAKE commond as shows follow and NDK version is r7: cmake .. -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=ON -DOSG_GL_VERTEX_FUNCS_AVAILABLE=ON -DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=ON -DOSG_GL_FIXED_FUNCTION_AVAILABLE=ON -DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF -DOSG_GL1_AVAILABLE=OFF -DOSG_GL2_AVAILABLE=OFF -DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=ON -DOSG_GLES2_AVAILABLE=OFF -DJ=4 -DANDROID_NDK=$NDK -DANDROID_STL="gnustl_static" -DCMAKE_INSTALL_PREFIX=/cygdrive/c/cygwin/usr/local/osgNOneon Now,the statuation is that the apk can run normally,NOT crashed at once.Then , it will crash anytime.The apk is unstatble for use. i was disturbed by this bug for a month , thank you very much! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50827#50827 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org