Error build

Hi there.
I use android-ndk-r8 and source code from git.
When I do command

./build_native.sh

I get

/Users/user/cocos2d-x/cocos2dx/misc_nodes/CCRenderTexture.cpp: In member function 'bool cocos2d::CCRenderTexture::initWithWidthAndHeight(int, int, cocos2d::CCTexture2DPixelFormat, GLuint)':
/Users/user/cocos2d-x/cocos2dx/misc_nodes/CCRenderTexture.cpp:174: error: 'CC_GL_DEPTH24_STENCIL8' was not declared in this scope
make: *** [obj/local/armeabi/objs-debug/cocos2dx_static/misc_nodes/CCRenderTexture.o] Error 1

What is wrong?
Thank you.

Have you used the last git version? Maybe they have done a push that don’t work. I have the same problem, try to get the lastest stable version: api.viglink.com/api/click?format=go&key=9b4efad421c8b103b2c94b796db973b0&loc=http%3A%2F%2Fwww.cocos2d-x.org%2F&subId=d654e26afef9085d79aba37dfe97be28&v=1&libid=1339447372237&out=http%3A%2F%2Fcocos2d-x.googlecode.com%2Ffiles%2Fcocos2d-2.0-rc0a-x-2.0.zip&title=Cocos2d-x%20|%20Cross%20Platform%20Open%20Source%202D%20Game%20Engine&txt=2.0%20(2012-05-31)&jsonp=vglnk_jsonp_13394473734231

Your link is wrong
Yes, I did git pull, but it doesn’t work

Download a stable version, or wait some time and do pull again.

it is very strange. When I use ndk-crystax-r7 and cocos2d-2.0-rc0a-x-2.0, I get some errors

/Users/user/cocos2d-x/cocos2dx/support/image_support/TGAlib.cpp:33:26: error: variable or field 'tgaLoadRLEImageData' declared void
/Users/user/cocos2d-x/cocos2dx/support/image_support/TGAlib.cpp:33:26: error: 'FILE' was not declared in this scope
/Users/user/cocos2d-x/cocos2dx/support/image_support/TGAlib.cpp:33:32: error: 'file' was not declared in this scope
/Users/user/cocos2d-x/cocos2dx/support/image_support/TGAlib.cpp:33:48: error: expected primary-expression before '*' token
/Users/user/cocos2d-x/cocos2dx/support/image_support/TGAlib.cpp:33:49: error: 'info' was not declared in this scope
make: *** [obj/local/armeabi/objs-debug/cocos2dx_static/support/image_support/TGAlib.o] Error 1

crystax-ndk-r6 doesn’t work too

error for crystal-ndk-r6

/Users/user/cocos2d-x/cocos2dx/platform/android/CCGL.h:47: error: 'PFNGLGENVERTEXARRAYSOESPROC' does not name a type
/Users/user/cocos2d-x/cocos2dx/platform/android/CCGL.h:48: error: 'PFNGLBINDVERTEXARRAYOESPROC' does not name a type
/Users/user/cocos2d-x/cocos2dx/platform/android/CCGL.h:49: error: 'PFNGLDELETEVERTEXARRAYSOESPROC' does not name a type
make: *** [/Users/user/cocos2d-x/Planes/proj.android/obj/local/armeabi/objs-debug/game_shared/../../Classes/AppDelegate.o] Error 1

Any ideas?

Will you fix it?

I fixed problem with ndk-crystax-r7 and cocos2d-2.0-rc0a-x-2.0.
It was very easy. You should include <stdio.h> in TGAlib.cpp, that is all

I will try fix crystax-ndk-r6

Did you solve it for ndk-r6? I’m having the error “‘PFNGLGENVERTEXARRAYSOESPROC’ does not name a type” too…
Thanks