Jordi Torres wrote: > Hi, > This bug is fixed in recent versions. So try the svn trunk. > Cheers El 09/07/2013 18:16, "John Moore" < ()> escribió: > > > > Jorge Izquierdo Ciges wrote: > > > > > The message its pretty clear: > > > > > > couldn't load osgNativeLib: findLibrary returned null > > > > > > > > > > > > Probably the library has not been copied. This usually happens when > > > compiling armeabi-v7 and the device doesn't support it.It is also > > > possible that the apk was generated without the .so open the apk first to > > > check it. > > > > > > ------------------ > > > Post generated by Mail2Forum > > > > > > > > > Ok, so the problem could be the warnings that I ignored by removing -Werror > > flag. > > In fact these are the pieces of code in the osgNativeLib.cpp that gives me > > warnings: > > > > Code: > > > > > > 78 const char *nativeAddress = env->GetStringUTFChars(address, false); > > 87 const char *nativeAddress = env->GetStringUTFChars(address, false); > > 88 const char *nativeName = env->GetStringUTFChars(name, false); > > > > > > > > > > > > the warning (which is considered as error if I don't remove -Werror flag) > > is about: > > > > converting 'false' to pointer type for argument 2 of 'char const* > > _JNIEnv::GetStringUTFChars(jstring, jboolean*)' [-Werror=conversion-null] > > osgNativeLib.cpp /osgViewer/jni line 78 C/C++ Problem > > > > I didn't write this code. It was in the osgAndroidExampleGLES2. > > > > What do you think about it? > > > > Thanks again for your time. > > > > John > > > > ------------------ > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=55170#55170 > > (http://forum.openscenegraph.org/viewtopic.php?p=55170#55170) > > > > > > > > > > > > _______________________________________________ > > osg-users mailing list > > () > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org) > > > > > Dear Jordi Torres, > thank you for your suggestion. I downloaded the SVN version of OpenSceneGraph > and built it for Android. > Now I am able to run the Example without crash. > However I get some errors and I can't see any rendered 3d model. > > This is the log of the app. > > Code: > > 07-10 23:02:52.770: W/EGLview(14138): creating OpenGL ES 2.0 context > 07-10 23:02:52.790: E/OSGANDROID(14138): Initializing geometry > 07-10 23:02:52.790: E/Osg Viewer(14138): Testing > 07-10 23:02:52.800: W/Osg Viewer(14138): Warning: detected OpenGL error > 'invalid enumerant' at Before Renderer::compile > 07-10 23:02:52.830: E/OSGANDROID(14138): Initializing geometry > 07-10 23:02:52.830: E/Osg Viewer(14138): Testing > 07-10 23:02:52.840: W/Osg Viewer(14138): Warning: detected OpenGL error > 'invalid enumerant' at Before Renderer::compile > 07-10 23:08:08.958: W/SurfaceView(14138): CHECK surface infomation > creating=false formatChanged=false sizeChanged=false visible=false > visibleChanged=true surfaceChanged=true realSizeChanged=false > redrawNeeded=false left=false top=false > 07-10 23:08:09.278: W/IInputConnectionWrapper(14138): showStatusIcon on > inactive InputConnection > 07-10 23:08:53.751: D/libEGL(15910): loaded /system/lib/egl/libEGL_mali.so > 07-10 23:08:53.761: D/libEGL(15910): loaded > /system/lib/egl/libGLESv1_CM_mali.so > 07-10 23:08:53.761: D/libEGL(15910): loaded /system/lib/egl/libGLESv2_mali.so > 07-10 23:08:53.771: W/EGLview(15910): creating OpenGL ES 2.0 context > 07-10 23:08:53.781: D/dalvikvm(15910): Trying to load lib > /data/data/osg.AndroidExample/lib/libosgNativeLib.so 0x41a44740 > 07-10 23:08:53.901: D/dalvikvm(15910): Added shared lib > /data/data/osg.AndroidExample/lib/libosgNativeLib.so 0x41a44740 > 07-10 23:08:53.901: D/dalvikvm(15910): No JNI_OnLoad found in > /data/data/osg.AndroidExample/lib/libosgNativeLib.so 0x41a44740, skipping init > 07-10 23:08:53.911: E/OSGANDROID(15910): Initializing geometry > 07-10 23:08:53.911: E/Osg Viewer(15910): Testing > 07-10 23:08:53.921: W/Osg Viewer(15910): Warning: detected OpenGL error > 'invalid enumerant' at Before Renderer::compile > > > > > In attachment you can see a screenshot of the app running on my Galaxy S III > mini. As you can see from the screenshot there's nothing rendered on the > screen. The buttons seem to work correctly because when I press them a label > on the screen appears indicating the status of the button. > > Thank you, > > John > ------------------ > Post generated by Mail2Forum
------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=55192#55192
<<attachment: schermata osgAndroidExample.png>>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

