Hi Hector, maybe you can try to use the ndk-build command instead of "make", and see if it runs smooth. If so, probably there's something wrong with the makefile generated by CMake...
Regarding the osg Android example, the folder structure is the same as the one of the NDK examples. Build instructions for native projects are very clear on the ndk online documentation, especially if you use Eclipse. You basically need to build the native part of the example before (under the jni folder) the same way you compiled the native osg libs, and afterwards build the java files under src. They make use of the native lib, and both the java code and the native library will be packed in the apk by Eclipse (or the compiler you're using). HTH, Ricky 2011/8/12 Héctor Martínez <[email protected]> > Hi and thank you.**** > > ** ** > > I first tried with the Cmake GUI, but I got some errors. After that, I have > read your answer pointing to command line. I have used the cmake command > line (not without some problems J ):**** > > cmake -> OK**** > > make -> Error:**** > > make[3]: *** > [/cygdrive/c/Projects/OpensSceneGraph-3.0.1/OpenSceneGraph/obj/local/armeabi-v7a/objs/osgdb_serializers_osg/BlendEquation..o] > Error 126**** > > make[3]: *** Waiting for unfinished jobs….**** > > make[2]: *** [Android-OpenSceneGraph] Error 2**** > > make[1]: *** [CMakeFiles/ndk.dir/all] Error 2**** > > make: *** [all] Error 2**** > > After that, I have tried to use “make install” and it has finished without > error, but I think this is a weird behavior.**** > > ** ** > > Anyway, does somebody now how to solve the problem?**** > > ** ** > > And another question, after compiling (if I can make it J ), what files > (and where) will I need to include in the OSG Android example?**** > > ** ** > > Thank you.**** > > ** ** > > Cheers,**** > > ** ** > > Héctor**** > > ** ** > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Mourad > Boufarguine > *Sent:* jueves, 11 de agosto de 2011 16:50 > > *To:* OpenSceneGraph Users > *Subject:* Re: [osg-users] OSG for Android**** > > ** ** > > ** ** > > On Thu, Aug 11, 2011 at 1:09 PM, Mourad Boufarguine < > [email protected]> wrote:**** > > Hi Hector,**** > > ** ** > > 2011/8/11 Héctor Martínez <[email protected]>**** > > Thank you Mourad and Jorge.**** > > **** > > I have never used CygWin and I am trying to follow those instructions:**** > > **** > > > http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Cygwin > **** > > ** ** > > Those are for building OSG with cygwin to be used on a PC.**** > > **** > > **** > > But it is a bit messy for me. Mourad, it seems like you have successfully > compiled OSG for Android in Windows. Could you please give me a quick guide > or some tips?**** > > ** ** > > ** ** > > 1/ install Cygwin ^^ , make sure to install gcc , g++, make, ... (a full > install may be helpful).**** > > ** ** > > Please note that, although we won't be compiling osg with cygwin's g++ , it > needs to be installed in order for cmake to get over compiler checks at the > beginning of configuration. (and other packages may be also needed)**** > > ** ** > > 2/ in cmake gui, set the sources and binairies folders, hit configure and > choose "Unix Makefiles" as generator**** > > ** ** > > 3/ Check "OSG_BUILD_PLATFORM_ANDROID" and hit configure**** > > **** > > 4/ Set (if not set) ANDROID_NDK path**** > > ** ** > > 5/ Configure your build whether you want GLES1 or GLES2 following these > instructions : > http://www.openscenegraph.org/projects/osg/wiki/Community/OpenGL-ES **** > > ** ** > > 6/ Configure and Generate**** > > ** ** > > 7/ open Cygwin batch, cd to binaires dir, and "make"**** > > ** ** > > **** > > Héctor**** > > **** > > ** ** > > Cheers,**** > > Mourad **** > > ** ** > > ** ** > > After re trying and checking, i found out that it is preferable to use the > command line cmake in cygwin rather than cmake gui :**** > > ** ** > > ** ** > > ** ** > > 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**** > > Mourad**** > > ** ** > > ** ** > > ** ** > > ** ** > > _______________________________________________ > 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

