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.
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?
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