Error when build cocos2dx on for android on linux environment

Hi all,

I try to build cocos2dx HelloCpp sample on Android.

I use cocos: cocos2d-2.1rc0-x-2.1.3, nkd: android-ndk-r6b

my operating system: Ubuntu 12.04.2 LTS 64 bits.

**when I run script: build_native.sh I face this error:
**make: Entering directory `/home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android’
Compile++ thumb : hellocpp_shared <= AppDelegate.cpp
In file included from /home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/…/…/…/…/cocos2dx/base_nodes/CCNode.h:34,
from /home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/…/…/…/…/cocos2dx/actions/CCActionInterval.h:30,
from /home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/…/…/…/…/cocos2dx/include/cocos2d.h:41,
from /home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/jni/…/…/Classes/AppDelegate.h:4,
from /home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/jni/…/…/Classes/AppDelegate.cpp:1:
/home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/…/…/…/…/cocos2dx/platform/android/CCGL.h:56: error: ‘PFNGLGENVERTEXARRAYSOESPROC’ does not name a type
/home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/…/…/…/…/cocos2dx/platform/android/CCGL.h:57: error: ‘PFNGLBINDVERTEXARRAYOESPROC’ does not name a type
/home/ubuntu/work_space/investigate_cocos2d/cocos2d-2.1rc0-x-2.1.3/samples/Cpp/HelloCpp/proj.android/…/…/…/…/cocos2dx/platform/android/CCGL.h:58: error: ‘PFNGLDELETEVERTEXARRAYSOESPROC’ does not name a type
*
*
Please help me.

Thanks.

When u compile create-android-project.sh, is it any errors ?
If got, u can’t proceed to next stage. Try to download different version of Cocos2d-x and NDK. Get a latest Android SDK too.