How to setup proj.android and let eclipse compile it?

In windows, I usually use these steps to run an android project:

  1. Use create-android-project.bat making proj.android.
  2. Use cygwin console running the build_native.sh in the project to build libgame.so.
  3. Use eclipse to package the apk, and run it in my phone.

According to http://blog.justbilt.com/324/ ,The step 2 and 3 can be both done in eclipse with CDT, so I tried, and sucessed in the sample projects(TestCpp and HelloCpp).

But when I want to compile a project created by the create-android-project.bat in this way, it cann’t be done. I noticed the “.project” file in the sample projects is very complex, and there’s another “.cproject” file. I think they are the key.

My question is, how to generate them? Or how to Setup the my project to make it can be compiled by eclipse?

You can setup builder for you pro.android,reference material : http://mobilepearls.com/labs/ndk-builder-in-eclipse/ or http://blog.csdn.net/emcodelin/article/details/8800942

There has a new way of creating projects…
Go to tools/project-creator/create_project.py

Well, you need to install python.
Check this out
http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_create_a_multi-platform_project_in_one_command_line