Hi Büsra, On 11/05/11 0:26 , Büsra Gülten wrote: > thank you very much for your help. OpenThread build succeeded. > > But unfortunately other errors appear in osg-Target. And Xcode crashes > because there are too many errors. > Although in CMake-GUI the Variables are right, it seems like, that the > project cannot find OpenGL-Framework. > > I get these errors in many targets: > >> OpenGL/gl.h: No such file or directory >> ISO C++ forbids declaration of 'type name' with no type.
This looks to me like it's using the native OS X OpenGL rather than the iPhone simulator SDK. > And another question: Are these CMake Variables relevant to iPhoneSimulator: > > -D OSG_WINDOWING_SYSTEM:STRING=IOS \ > -D OSG_GL1_AVAILABLE:BOOL=OFF \ > -D OSG_GL2_AVAILABLE:BOOL=OFF \ > -D OSG_GLES1_AVAILABLE:BOOL=ON \ > -D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \ > -D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON \ > -D OSG_GL_LIBRARY_STATIC:BOOL=OFF \ > -D OSG_GL_MATRICES_AVAILABLE:BOOL=ON \ > -D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON \ > -D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \ > -D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF \ > -D DYNAMIC_OPENTHREADS:BOOL=OFF . Yes, they are relevant, they configure the use of OpenGL ES. Try the following command line, this worked for me: $ mkdir build-iOS $ cd build-iOS $ cmake -G Xcode \ -D OSG_BUILD_PLATFORM_IPHONE_SIMULATOR:BOOL=ON \ -D BUILD_OSG_APPLICATIONS:BOOL=OFF \ -D OSG_BUILD_FRAMEWORKS:BOOL=OFF \ -D OSG_WINDOWING_SYSTEM:STRING=IOS \ -D CMAKE_OSX_ARCHITECTURES:STRING=i386 \ -D OSG_GL1_AVAILABLE:BOOL=OFF \ -D OSG_GL2_AVAILABLE:BOOL=OFF \ -D OSG_GLES1_AVAILABLE:BOOL=ON \ -D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \ -D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON \ -D OSG_GL_LIBRARY_STATIC:BOOL=OFF \ -D OSG_GL_MATRICES_AVAILABLE:BOOL=ON \ -D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON \ -D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \ -D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF \ -D DYNAMIC_OPENTHREADS:BOOL=OFF .. Hope this helps, /ulrich _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org