error: 'glGenFramebuffersOES' was not declared in this scope

来源:互联网 发布:网络歌曲我想静静 编辑:程序博客网 时间:2024/05/22 10:26
编译cocos2dx simple game 出现错误:
jni/../../../cocos2dx/effects/CCGrabber.cpp:46:32: error: 'glGenFramebuffersOES' was not declared in this scope
网上搜索解决方案如下:
修改cocos2dx目录下的Android.mk文件中的
#LOCAL_CFLAGS :=-DUSE_FILE32API 
如下:
LOCAL_CFLAGS :=-DUSE_FILE32API -DGL_GLEXT_PROTOTYPES=1
原创粉丝点击