|
本帖最后由 skylook 于 2014-11-7 17:27 编辑
Hi,
我使用 OSG 3.2.1 版本编译 (with OSG_GLES2_AVAILABLE:BOOL=ON ) ,把它自己的例子程序运行 example_osgViewerIPhone, 出现下面的错误:
- 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
复制代码
我这里生成的配置文件如下:
- /* -*-c++-*- OpenSceneGraph - Copyright (C) 2008-2009 Robert Osfield
- *
- * This library is open source and may be redistributed and/or modified under
- * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
- * (at your option) any later version. The full license is in LICENSE file
- * included with this distribution, and on the openscenegraph.org website.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * OpenSceneGraph Public License for more details.
- */
- /****************************************************************************
- * THIS FILE IS AUTOGENERATED BY CMAKE. DO NOT EDIT!
- ****************************************************************************/
- /* Changes to the configuration reflected here can be made with ccmake on
- * unix or with cmake-gui on windows. Alternatively you can use cmake's -D
- * or -P switches to set some configuration values at cmake configuration time.
- */
- #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
复制代码
其实我想完成的功能很简单,就是在ios上把一个osg格式的动画播放出来(参见附件
young.osg.zip
(709.42 KB, 下载次数: 14)
|
|