On Thu, Aug 11, 2011 at 1:09 PM, Mourad Boufarguine < mourad.boufargu...@gmail.com> wrote:
> Hi Hector, > > 2011/8/11 Héctor Martínez <hector.marti...@sensetrix.com> > >> 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org