They are not needed at all. OSG compilation, as it is right now doesn't support full Native compilation, it's made by calls through JNI from a Java/Dalvik Code. The egl Context is raised in the Java part and can't be passed down to OSG, that's the reason the examples need to use an "embebed viewer" instead of a simple viewer.
If you want/need to use a full Native Activity right now we haven't implemented yet any solution. Currently I'm working precisely in that point, full integration with the new native form. But you still can use the Java/JNI/Native in 3.0 and 4.0 it hasn't been deprecated and it is part of the standard ABI. Moreover the code can be easily converted between them. On a side note, using the NDK scripts and google's build system already provides the proper include directories ( where egl and gles1/2 is located ) so there's no need to use them, and probably if I'm not mistaken I ignored them in the script creation step. To force the platform version just change the platform number in Application.mk or Android.mk (I think it was on Application). In the near future I'm changin some compile options and adding some little features to choose the platform and or the optimizations also I'm working with the damn full native viewer but I'm hitting on walls every two steps so don't expect it to be this week or the next, I won't send it until i can be sure it's more or less bug free and there's no hurry because I'm gonna miss the deadline for the new OSG version. Oh! One more thing don't compile with NDK r7 it has a bug use r7b. It was commented by another user. STL linking was not going well and it was needed to respecify it. 2012/3/14 Bernd Kampl <[email protected]> > > Jorge Izquierdo Ciges wrote: > > First, there is a good page in the wiki page with Cmake chain and > requirements... and other stuff wich I recomend as a reading before doing > anything. > > > > > Could you link to it? All I found was this: www. openscenegraph. > org/projects/osg/wiki/Community/OpenGL-ES > > > Jorge Izquierdo Ciges wrote: > > > > Second: > > NO! caca -> OPENGL_INCLUDE > /home/rubn/data/android/gl/khronos_headers/GLES2 > > NO! caca -> OPENGL_LIBRARY > > /home/rubn/data/android/android-ndk/platforms/android-9/arch-arm/usr/lib/libGLESv2.so > > NO! caca -> OPENGL_egl_LIBRARY > /home/rubn/data/android/android-ndk/platforms/android-9/arch-arm/usr/lib/libEGL.so > > > > > How to set these paths then? I really need a little bit of guidance here... > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=46254#46254 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

