Hi to clarify my previous post: here are all cmake-vars needed to get a xcodeproject-file from cmake which is suitable for the iphone-device and GLES 1:
/usr/bin/cmake -G Xcode \ -D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \ -D 'CMAKE_CXX_FLAGS:STRING=-ftree-vectorize -fvisibility-inlines-hidden -mno-thumb -arch armv6 -pipe -no-cpp-precomp -miphoneos-version-min=3.1 -mno-thumb' \ -D OSG_BUILD_FRAMEWORKS:BOOL=OFF \ -D OSG_WINDOWING_SYSTEM:STRING=IOS \ -D 'CMAKE_OSX_ARCHITECTURES:STRING=armv6;armv7' \ -D CMAKE_OSX_SYSROOT:STRING=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk \ -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_OPENTHREADS:BOOL=OFF -D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF . cheers, Stephan Am 28.01.11 12:19, schrieb Stephan Maximilian Huber: > 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 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org