xcode 7.2.1 新建cocos2d项目 运行报错

沙悟靖_ 发布于 2016/02/21 21:04
阅读 1K+
收藏 0

Warning: Error creating LLDB target at path '/Users/sweetieTAM/Library/Developer/Xcode/DerivedData/GP_CrazyForest_v2.0-ffxxxkrfizurpfgqrvqonkczmogo/Build/Products/Debug-iphonesimulator/GP_CrazyForest_v2.0.app'- using an empty LLDB target which can cause slow memory reads from remote devices.

2016-02-21 20:46:48.938 GP_CrazyForest_v2.0[7979:302989] cocos2d: ERROR: Failed to compile shader:

precision mediump float;

uniform mat4 CC_PMatrix;

uniform mat4 CC_MVMatrix;

uniform mat4 CC_MVPMatrix;

uniform vec4 CC_Time;

uniform vec4 CC_SinTime;

uniform vec4 CC_CosTime;

uniform vec4 CC_Random01;

//CC INCLUDES END

#extension GL_OES_standard_derivatives : enable

#ifdef GL_ES

varying mediump vec4 v_color;

varying mediump vec2 v_texcoord;

#else

varying vec4 v_color;

varying vec2 v_texcoord;

#endif

void main()

{

#if defined GL_OES_standard_derivatives

gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord));

#else

gl_FragColor = v_color*step(0.0, 1.0 - length(v_texcoord));

#endif

}

2016-02-21 20:46:48.939 GP_CrazyForest_v2.0[7979:302989] cocos2d: ERROR: 0:12: '' : syntax error: #extension must always be before any non-preprocessor tokens

(lldb) 

加载中
0
银河缘木
银河缘木

我也有这样的问题 ,不知道怎么解决

syntax error: #extension must always be before any non-preprocessor tokens

返回顶部
顶部