Hi,

When I trying to use the osg 3.2.1 (with OSG_GLES2_AVAILABLE:BOOL=ON ) 
example_osgViewerIPhone, I got the following errors:


Code:
VERTEX glCompileShader "" FAILED
VERTEX Shader "" infolog:
ERROR: 0:6: Use of undeclared identifier 'gl_Vertex'
ERROR: 0:7: Use of undeclared identifier 'gl_FrontColor'

FRAGMENT glCompileShader "" FAILED
FRAGMENT Shader "" infolog:
ERROR: 0:4: 'vec4' : declaration must include a precision qualifier for type
ERROR: 0:5: Use of undeclared identifier 'base'
ERROR: 0:6: Use of undeclared identifier 'color'
ERROR: 0:6: Use of undeclared identifier 'gl_Color'
ERROR: 0:7: Use of undeclared identifier 'color'

glLinkProgram "" FAILED
Program "" infolog:
ERROR: One or more attached shaders not successfully compiled



My Config file is as follows:


Code:
#ifndef OSG_CONFIG
#define OSG_CONFIG 1

/* #undef OSG_NOTIFY_DISABLED */
/* #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_GL1_AVAILABLE */
/* #undef OSG_GL2_AVAILABLE */
/* #undef OSG_GL3_AVAILABLE */
/* #undef OSG_GLES1_AVAILABLE */
#define OSG_GLES2_AVAILABLE
/* #undef OSG_GL_LIBRARY_STATIC */
/* #undef OSG_GL_DISPLAYLISTS_AVAILABLE */
/* #undef OSG_GL_MATRICES_AVAILABLE */
/* #undef OSG_GL_VERTEX_FUNCS_AVAILABLE */
/* #undef OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE */
/* #undef OSG_GL_FIXED_FUNCTION_AVAILABLE */

#endif




Can anyone help with this? Or is there any examples of osg ios can I learn?

Thank you!

Cheers,
Liu

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=61538#61538





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to