Hi Jon, You'll need to decide whether you are compiling against GLES 1.1 or GLES 2.0, you can't compile against both at the same time as they are quite different types of targets - ones GLES 1.1 is fixed function pipeline while GLES 2.0 is completely shader based. So make sure you #define either OSG_GLES1_AVAILABLE or OSG_GLES2_AVAILABLE, but not both.
Second up the rest of the #define's OSG_ you should be able to leave as for GLES 1.1 save for display lists. I would recommend trying to get GLES 1.1 work if available as it's a smaller step to work with unless you are confident with shaders. Robert. On Sat, Nov 28, 2009 at 9:45 AM, Jon Bardin <[email protected]> wrote: > Heya > > I have also been trying to get OSG to compile with the iphone sdk. > > So far I have gotten a working static library, and the osg plugin compiled. > > However when I go to load a .osg, I get a segfault in the lighting system... > > I have also started work on a GraphicsWindowTouch implementation, however I > have been unable to test its functionality... > > Below is my Config file, and a sample output from a run > > > Code: > > #ifndef OSG_CONFIG > #define OSG_CONFIG 1 > > #define OSG_LIBRARY_STATIC > > /* #undef OSG_USE_FLOAT_MATRIX */ > /* #undef OSG_USE_FLOAT_PLANE */ > #define OSG_USE_FLOAT_BOUNDINGSPHERE > #define OSG_USE_FLOAT_BOUNDINGBOX > #define OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION > /* #undef OSG_USE_UTF8_FILENAME */ > #define OSG_DISABLE_MSVC_WARNINGS > > #undef OSG_GLU_AVAILABLE > #undef OSG_GL1_AVAILABLE > #undef OSG_GL2_AVAILABLE > #undef OSG_GL3_AVAILABLE > > #define OSG_GLES1_AVAILABLE > #define OSG_GLES2_AVAILABLE > > #undef OSG_GL_MATRICES_AVAILABLE > > #define OSG_GL_VERTEX_FUNCS_AVAILABLE > #define OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE > #undef OSG_GL_FIXED_FUNCTION_AVAILABLE > > > #endif > > > > > > Code: > > CullSettings::readEnvironmentalVariables() > Adding parent0x490a080 > Adding parent0x490a080 > DatabasePager::addDatabaseThread() HANDLE_NON_HTTP > DatabasePager::addDatabaseThread() HANDLE_ONLY_HTTP > Render::Render() 0x492fd50 > CullSettings::readEnvironmentalVariables() > CullSettings::readEnvironmentalVariables() > Adding parent0x490a080 > CullSettings::readEnvironmentalVariables() > CullSettings::readEnvironmentalVariables() > Adding parent0x490a080 > CullSettings::readEnvironmentalVariables() > Adding parent0x490a080 > Adding parent0x490a080 > Adding parent0x490a080 > Adding parent0x490a080 > Adding parent0x490a080 > Adding parent0x490a080 > _availableQueue.size()=2 > FindFileInPath(/Users/jon/Library/Application Support/iPhone > Simulator/User/Applications/7607D8A0-6CE1-45A4-8093-26A1AD915C22/TestOpenSceneGraph.app/example.osg): > returning /Users/jon/Library/Application Support/iPhone > Simulator/User/Applications/7607D8A0-6CE1-45A4-8093-26A1AD915C22/TestOpenSceneGraph.app/example.osg > Adding parent0x490a080 > Warning: dynamic library 'libosgAnimationOSG_PLUGIN_EXTENSION' does not exist > (or isn't readable): > dlopen(./libosgAnimationOSG_PLUGIN_EXTENSION, 9): image not found > DynamicLibrary::failed loading "libosgAnimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library > 'osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION' does not exist (or > isn't readable): > dlopen(osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION, 9): image not > found > DynamicLibrary::failed loading > "osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library 'libosgAnimationOSG_PLUGIN_EXTENSION' does not exist > (or isn't readable): > dlopen(./libosgAnimationOSG_PLUGIN_EXTENSION, 9): image not found > DynamicLibrary::failed loading "libosgAnimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library > 'osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION' does not exist (or > isn't readable): > dlopen(osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION, 9): image not > found > DynamicLibrary::failed loading > "osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library 'libosgAnimationOSG_PLUGIN_EXTENSION' does not exist > (or isn't readable): > dlopen(./libosgAnimationOSG_PLUGIN_EXTENSION, 9): image not found > DynamicLibrary::failed loading "libosgAnimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library > 'osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION' does not exist (or > isn't readable): > dlopen(osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION, 9): image not > found > DynamicLibrary::failed loading > "osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library 'libosgAnimationOSG_PLUGIN_EXTENSION' does not exist > (or isn't readable): > dlopen(./libosgAnimationOSG_PLUGIN_EXTENSION, 9): image not found > DynamicLibrary::failed loading "libosgAnimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library > 'osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION' does not exist (or > isn't readable): > dlopen(osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION, 9): image not > found > DynamicLibrary::failed loading > "osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library 'libosgAnimationOSG_PLUGIN_EXTENSION' does not exist > (or isn't readable): > dlopen(./libosgAnimationOSG_PLUGIN_EXTENSION, 9): image not found > DynamicLibrary::failed loading "libosgAnimationOSG_PLUGIN_EXTENSION" > Warning: dynamic library > 'osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION' does not exist (or > isn't readable): > dlopen(osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION, 9): image not > found > DynamicLibrary::failed loading > "osgPlugins-2.9.6/osgdb_osganimationOSG_PLUGIN_EXTENSION" > View::setSceneData() Reusing exisitng scene0x492ede0 > Viewer::realize() - No valid contexts found, setting up view across all > screens. > GraphicsContext::getWindowingSystemInterface() 0x49064c0 0x5d0030 > createGraphicsContext() keep going??? > GraphicsContext::registerGraphicsContext 0x49322f0 > GraphicsContext::createNewContextID() creating contextID=0 > Updating the MaxNumberOfGraphicsContexts to 1 > GraphicsWindow has been created successfully. > Adding parent0x490a080 > osg::State::_maxTexturePoolSize=0 > osg::State::_maxBufferObjectPoolSize=0 > GraphicsWindowCocoa::realizeImplementation / ownsWindow: 0 checkForEvents: 1 > GraphicsWindowCocoa :: grabFocusIfPointerInWindow not implemented yet > Viewer::startThreading() - starting threading > Viewer::startThreading() - contexts.size()=1 > Making scene thread safe > Doing add > Doing add > Doing add > gc->getGraphicsThread()->startThread() 0x4938bd0 > Set up threading > View::init() > cull() > cull() got SceneView 0x492ff90 > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > _clampProjectionMatrix not applied, invalid depth range, znear = 3.40282e+38 > zfar = -3.40282e+38 > end cull() 0x492fd50 > OpenGL extensions supported by installed OpenGL drivers are: > GL_EXT_blend_minmax > GL_IMG_read_format > GL_IMG_texture_compression_pvrtc > GL_IMG_texture_format_BGRA8888 > GL_OES_depth24 > GL_OES_fbo_render_mipmap > GL_OES_mapbuffer > GL_OES_rgb8_rgba8 > OpenGL extension 'GL_ARB_vertex_shader' is not supported. > OpenGL extension 'GL_ARB_multitexture' is not supported. > OpenGL extension 'GL_EXT_multitexture' is not supported. > Doing run 0x4938bd0 isRunning()=1 > draw() 0x492fd50 > draw() got SceneView 0x492ff90 > Renderer::compile() > OpenGL extension 'GL_ARB_vertex_program' is not supported. > OpenGL extension 'GL_EXT_secondary_color' is not supported. > OpenGL extension 'GL_EXT_fog_coord' is not supported. > OpenGL extension 'GL_ARB_multitexture' is not supported. > OpenGL extension 'GL_NV_occlusion_query' is not supported. > OpenGL extension 'GL_ARB_occlusion_query' is not supported. > OpenGL extension 'GL_EXT_timer_query' is not supported. > cull() > cull() got SceneView 0x4930280 > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > Uniform Adding parent > _clampProjectionMatrix not applied, invalid depth range, znear = 3.40282e+38 > zfar = -3.40282e+38 > end cull() 0x492fd50 > OpenGL extension '' is not supported. > OpenGL extension 'GL_ARB_fragment_program' is not supported. > OpenGL extension 'GL_ARB_vertex_program' is not supported. > OpenGL extension 'GL_EXT_packed_depth_stencil' is not supported. > OpenGL extension 'GL_ARB_shader_objects' is not supported. > OpenGL extension 'GL_ARB_vertex_shader' is not supported. > OpenGL extension 'GL_ARB_fragment_shader' is not supported. > OpenGL extension 'GL_ARB_shading_language_100' is not supported. > OpenGL extension 'GL_EXT_geometry_shader4' is not supported. > OpenGL extension 'GL_EXT_gpu_shader4' is not supported. > glVersion=0, isGlslSupported=NO, glslLanguageVersion=0 > Adding parent0x490a080 > Adding parent0x490a080 > Setting up osg::Camera::FRAME_BUFFER > > > [/code] > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=20510#20510 > > > > > > _______________________________________________ > 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

