After compiling build_native.sh from create-android-project.bat i have huge error

Hi guys, sorry about that im newbie here but after i compile build native.sh i have this huge error:

$ ./build_native.sh make: Entering directory `/cygdrive/c/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/an droid' Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Compile++ thumb : cocos2d <= CCConfiguration.cpp In file included from C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../ ../../cocos2dx/include/CCGL.h:25, from C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../ ../../cocos2dx/CCConfiguration.h:31, from C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../ ../../cocos2dx/CCConfiguration.cpp:26: C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:58:21: error: GLES/gl.h: No such file or directory C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:59:24: error: GLES/glext.h: No such file or directory In file included from C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../ ../../cocos2dx/include/CCGL.h:25, from C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../ ../../cocos2dx/CCConfiguration.h:31, from C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../ ../../cocos2dx/CCConfiguration.cpp:26: C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:156: error: variable or field 'gluLookAt' declared void C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:156: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:156: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:156: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:157: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:157: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:157: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:158: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:158: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:158: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:161: error: variable or field 'gluPerspective' declared void C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:161: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:161: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:161: error: 'GLfloat' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/platfor m/CCGL.h:161: error: 'GLfloat' was not declared in this scope In file included from C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../ ../../cocos2dx/CCConfiguration.cpp:26: C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.h:70: error: 'GLint' does not name a type C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.h:71: error: 'GLint' does not name a type C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.h:78: error: 'GLint' does not name a type C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.h: In member function 'int cocos2d::CCConfiguration::getMaxTextureSize( )': C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.h:92: error: 'm_nMaxTextureSize' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.h: In member function 'int cocos2d::CCConfiguration::getMaxModelviewSta ckDepth()': C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.h:98: error: 'm_nMaxModelviewStackDepth' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp: In constructor 'cocos2d::CCConfiguration::CCConfiguration()': C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:35: error: class 'cocos2d::CCConfiguration' does not have any field named 'm_nMaxTextureSize' C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:36: error: class 'cocos2d::CCConfiguration' does not have any field named 'm_nMaxModelviewStackDepth' C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:43: error: class 'cocos2d::CCConfiguration' does not have any field named 'm_nMaxSamplesAllowed' C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp: In member function 'bool cocos2d::CCConfiguration::init()': C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:54: error: 'GL_EXTENSIONS' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:54: error: 'glGetString' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:56: error: 'GL_MAX_TEXTURE_SIZE' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:56: error: 'm_nMaxTextureSize' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:56: error: 'glGetIntegerv' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:57: error: 'GL_MAX_MODELVIEW_STACK_DEPTH' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:57: error: 'm_nMaxModelviewStackDepth' was not declared in this sco pe C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp: In member function 'cocos2d::CCGlesVersion cocos2d::CCConfiguratio n::getGlesVersion()': C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:90: error: 'GL_VERSION' was not declared in this scope C:/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/jni/../../../cocos2dx/CCConfi guration.cpp:90: error: 'glGetString' was not declared in this scope /cygdrive/c/Android/android-ndk-r6b/build/core/build-binary.mk:220: recipe for t arget `/cygdrive/c/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/obj/local/arm eabi/objs-debug/cocos2d/CCConfiguration.o' failed make: *** [/cygdrive/c/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/android/obj/local /armeabi/objs-debug/cocos2d/CCConfiguration.o] Error 1 make: Leaving directory `/cygdrive/c/Android/cocos2d-1.0.1-x-0.10.0/lx_testx/and roid'

Do you know what is is going on here. I did everithing like in tutorial.
Many thanks

Please refer wiki, search ndk-r7.

Just solved. It’s not related ndk-r7.
In your project, you need to create a default.properties.
Then define
# Project target.
target=android-8

I just refer HelloWorld sample and figure out. Is anyone know why you need to user default.properties ???

Thank a lot, after hours of searching i found this perfect tutorial and also i download ndk-6b

http://www.multigesture.net/articles/how-to-setup-cocos2d-x-windows-and-android/

perfect is also, tahtn you dont need to use cygwin but minGW and also dicectly eclipse whitch looks better:

http://www.multigesture.net/articles/how-to-install-mingw-msys-and-eclipse-on-windows/

It realy helps me with starting

PS: If you guys can doo also eclipse c++ templates, we can do everithing in one developer tool. Not Visual Studio and Eclipse but only Eclipse

Thank you dirty polarbear my problem solved to copy default.properties this file to my project