Hi Ryan, Here's an example command-line to get an iphone build from current osg.
/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 BUILD_OSG_APPLICATIONS:BOOL=OFF \ -D OSG_BUILD_FRAMEWORKS:BOOL=OFF \ -D OSG_WINDOWING_SYSTEM:STRING=IOS \ -D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \ -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_OPENSCENEGRAPH:BOOL=OFF \ -D DYNAMIC_OPENTHREADS:BOOL=OFF . this should compile successfully, I am using this command line to do continous builds via hudson. (You can change the vars from insider the cmake gui, no need for the command-line) cheers, Stephan Am 29.03.11 22:14, schrieb Ryan Atkins: > I'm trying to build the latest source from Git for the iPhone > https://github.com/openscenegraph/osg.git > > 'GL_COMPILE' was not declared in scope > 'glNewList' was not declared in this scope > 'glEndList' was not declared in this scope > 'glCallList' was not declared in this scope > > I've followed the instructions in README.txt, but I get thousands of the > above errors. I also have added the frameworks: QuartzCore, Foundation, > OpenGLES, UIKit, CoreGraphics as they were added from my ccmake. > > In my ccmake configuration there wasn't an option to disable > OSG_GLU_AVAILABLE as per the instructions. > > Also, I downloaded OpenFrameworks Git to get the FREETYPE libraries and set > them up like this (with absolute paths, but i've truncated here): > > FREETYPE_INCLUDE_DIR_freetype2: openFrameworks/libs/freetype/include/freetype2 > FREETYPE_INCLUDE_DIR: openFrameworks/libs/freetype/include/freetype2 > FREETYPE_LIBRARY: openFrameworks/libs/freetype/lib/iphone/freetype-iphone.a > > Thanks, > Ryan > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=38038#38038 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

