编译cocos2dx simple game 出现错误:
jni/../../../cocos2dx/effects/CCGrabber.cpp:46:32: error: 'glGenFramebuffersOES' was not declared in this scope
网上搜索解决方案如下:
修改cocos2dx目录下的Android.mk文件中的
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
如下:
LOCAL_CFLAGS :=-DUSE_FILE32API -DGL_GLEXT_PROTOTYPES=1