Hi,
I’m new to Cocos2Dx and I was trying to setup a project by following the guides on this set and another. I was able to get the iOS project setup, however when I try to compile it for Android, I receive the errors below. I have installed the Android NDK ver 7 & Android SDK and I compiled for Android 2.1 (my only options were 2.1 or 4.0). I also installed the latest version of Cocos2d. Would someone be able to assist with the errors below?
thanks,
Errors:
mpile*+ thumb : cocos2d <= CCSet.cpp
Compile*+ thumb : cocos2d <= CCZone.cpp
Compile*+ thumb : cocos2d <= cocos2d.cpp
Compile*+ thumb : cocos2d <= CCDirector.cpp
Compile++ thumb : cocos2d <= CCGrabber.cpp
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp: In constructor ‘cocos2d::CCGrabber::CCGrabber()’:
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp:46: error: ‘glGenFramebuffersOES’ was not declared in this scope
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp: In member function ’void cocos2d::CCGrabber::grab(cocos2d::CCTexture2D**)‘:
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp:61: error: ’glBindFramebufferOES’ was not declared in this scope
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp:65: error: ‘glFramebufferTexture2DOES’ was not declared in this scope
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp:68: error: ‘glCheckFramebufferStatusOES’ was not declared in this scope
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp: In member function ’void cocos2d::CCGrabber::beforeRender‘:
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp:88: error: ’glBindFramebufferOES’ was not declared in this scope
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp: In member function ’void cocos2d::CCGrabber::afterRender‘:
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp:113: error: ’glBindFramebufferOES’ was not declared in this scope
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp: In destructor ‘virtual cocos2d::CCGrabber::~CCGrabber()’:
jni/…/…/…/cocos2dx/effects/CCGrabber.cpp:127: error: ‘glDeleteFramebuffersOES’ was not declared in this scope
make:**** [obj/local/armeabi/objs-debug/cocos2d/effects/CCGrabber.o] Error 1