Hi,

Am 27.01.11 12:58, schrieb Alessandro Terenzi:
> I tried again with the latest OSG source from svn but I still have problems.
> I followed the instructions in the README.txt and also:
> 
>  1) removed  "-mmacosx-version-min=10.5" from CMAKE_CXX_FLAGS
>  2) tried with either OSG_GLES1_AVAILABLE or OSG_GLES2_AVAILABLE
>  3) tried with either OSG_GL_DISPLAYLISTS_AVAILABLE on or off
>  4) tried to set the base SDK as the 4.1
>  5) set to use armv6;armv7 architectures because I want to build for the
> device
> 
> but:
> 
>  a) after configuring, CMAKE complains with the OPENGLES_LIBRARY_NOTFOUND
> message

you can ignore this message.


>  b) after generating the project, I still see that the base SDK is 3.2 (so I
> manually change it to 4.1)


>  c) if I build in Xcode, everything is fine with OpenThreads, but as soon as
> I build osg, I get lots of errors regarding OpenGL

With cmake it's only possible to create project files for the simulator
OR the device. Check the setting inside xcode, they have to correspond,
otherwise you'll get a lot of compile-errors.

Be sure to set the OSG_GL_flags correct. I am using these values for
OSG_GLES1_AVAILABLE: (set the other OSG_GL*_AVAILABLE to off

OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF
OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON
OSG_GL_LIBRARY_STATIC:BOOL=OFF
OSG_GL_MATRICES_AVAILABLE:BOOL=ON
OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON
OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF

>  d) moreover, beyond osgversion and present3D, no other applications'
> targets are in the project

Did you enable OSG_BUILD_EXAMPLES in CMake? There's only one example for
IOS, which does not work out of the box, but you can tweak the
configuration in xcode to get it compiling and linking. I failed when
trying to get the cmake-configuration right for the example-app.

HTH,
Stephan
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to