Re: [osg-users] Crash in osgViewer when running iOS example code
Hi Stephan, I used the cake command line: cmake -G Xcode \ -D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \ -D CMAKE_CXX_FLAGS:STRING="-ftree-vectorize -fvisibility-inlines-hidden -mno-thumb -pipe -no-cpp-precomp 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.3.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 . to create an Xcode project for the OSG libs. I then statically linked the libs into a separate Xcode project where I've tried to run the example code. It should be compiling for OpenGL ES 1.1 - do you know if there's any way to check the settings from within Xcode? Cheers, Alex -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42154#42154 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Crash in osgViewer when running iOS example code
Hi Alex, Am 20.08.11 20:05, schrieb Alex Lee-Corbin: > I'm guessing this could be an issue with openGLES- I've checked that, when I > created the Xcode project for the OSG libs I used the example command line > with the correct openGL flags set. Any help would be much appreciated! It's hard to tell what's going wrong. Are you using the cmake-build or the xcode-project from github? Are you compiling for OpenGL ES 1.1. or OpenGL ES 2.0? It looks like your cmake-config is not correct, some OpenGL 1/2/3 features are enabled, which will result in gliUnimplemented on IOS. Can you post the command-line / cmake configuration? cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Crash in osgViewer when running iOS example code
Hi, I've been trying to set up an iOS project that uses OSG. I've managed to compile all the relevant OSG libs and successfully linked them into my project. I've set up the windowing system as in the example code and then tried to load up a few models and get them displaying but I keep getting an EXC_BAD_ACCESS exception when calling viewer->frame(). I've tried stripping out all of my code and just running the example iOS code as in the osgvieweriPhone example but I'm still getting the same issue. The call stack is: gliUnimplemented osgViewer::ViewerBase::renderingTraversals() I'm guessing this could be an issue with openGLES- I've checked that, when I created the Xcode project for the OSG libs I used the example command line with the correct openGL flags set. Any help would be much appreciated! Thanks, Alex -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42147#42147 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org