Search code examples
androidc++visual-studiocygwincocos2d-x

Cocos2d-x app fail to compile for Android


Used software:
Visual Studio 2012 Express
cocos2d-x 2.0-x-2.0.4
cygwin 1.7.5.
Eclipse 3.8
Android SDK last
Android NDK r8c
I am new in development for Android, so don't understand what is wrong. Trying to build cocs2d-x standart testcpp project. First trouble was when when i runned create-android-project.bat - it didn't shows target versions of Android (target - v.2.3.3.), but all paths are correct.

At last it build project folder. But next step - building pack in cygwin - fails in case of hundreds of "file or folder not exists" errors of headers, didn't uses a lot of STL headers and ask for <string.h> but not just <string>.

What am i doing wrong?


Solution

  • You must rename APPNAME variable in build_native.sh same to your eclipse project name