I guess you are trying to compile for iOS5, if you are not sorry for the noise.
Cheers. 2012/3/9 Jordi Torres <jtorresfa...@gmail.com> > Hi Mike, > > Attached is a cmake toolchain to build osg against GLES2. You need to > comment lines from 204 - 207 in the CMakeLists.txt: > > #the below is taken from ogre, it states the gcc stuff needs to happen > before PROJECT() is called. I've no clue if we even need it > # Force gcc <= 4.2 on iPhone > #include(CMakeForceCompiler) > #CMAKE_FORCE_C_COMPILER(gcc-4.2 GNU) > #CMAKE_FORCE_CXX_COMPILER(gcc-4.2 GNU) > #SET(GCC_THUMB_SUPPORT NO) > > And then simply do: > $cmake -DCMAKE_TOOLCHAIN_FILE=iOS5_GLES2.cmake and make install > or if you prefer to compile in XCode: > $cmake -GXCode -DCMAKE_TOOLCHAIN_FILE=iOS5_GLES2.cmake > > > If it solves your problem please report here and I will try to submit this > with a simple GLES2 example. > > Cheers. > > 2012/3/8 Mike Wozniewski <m...@mikewoz.com> > >> Hi Tobias, >> >> Is there any chance you can post your cmake command that builds for >> OpenGL ES2? I tried yours (had to change the SDK to 5.0) but I get a ton of >> compile errors, starting with: >> >> 'glLoadMatrixf' was not declared in this scope >> >> Thanks, >> Mike >> >> ------------------ >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=46116#46116 >> >> >> >> >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > > > > -- > Jordi Torres Fabra > > gvSIG 3D blog > http://gvsig3d.blogspot.com > Instituto de Automática e Informática Industrial > http://www.ai2.upv.es > -- Jordi Torres Fabra gvSIG 3D blog http://gvsig3d.blogspot.com Instituto de Automática e Informática Industrial http://www.ai2.upv.es
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org