Wednesday, 18 September 2013

Run Cocos2dx Android project without Cygwin on Windows.


I have added another more simple process for building project :

Please click go through article :
http://patidarvikas.blogspot.in/2014/04/run-cocos2dx-android-project-on-windows.html  

12 comments :

  1. Great post! it saved me a lot of time.

    ReplyDelete
  2. Super.. My PC was a hell while using Cygwin.. Now it compiles whole clean project in just 3 mins.. Thanks a lot..

    ReplyDelete
  3. I can't understand I grabbed a copy of cocos2d-x develop of github and an ndk r9c and an adt copy all for windows 7 64bit

    I created a template project using project creator and imported all projects to adt eclipse => fixed pathes => compile => no problems except that my hello world template crash on device.

    am I missing something? do I need to repeat all steps? can you point me please?

    ReplyDelete
    Replies
    1. This might be you device has different architecture. Might be intel or mips based. In case you have to change APP_ABI in your Application.mk file.

      Delete
  4. help me . i config the same but when i build in eclipse has error :
    ndk-build.cmd
    Android NDK: jni/Android.mk: Cannot find module with tag 'cocos2dx' in import path
    jni/Android.mk:41: *** Android NDK: Aborting. . Stop.
    Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
    Android NDK: The following directories were searched:
    Android NDK:

    ReplyDelete
    Replies
    1. Which version of cocos2dx you are using? also insure you have setup everything correctly in step 2-2.

      Delete
    2. i'm using cocos2d-x-2.2 .
      i try replace $(call import-module,cocos2dx) to direct path $(call import-module,D:/projects/cocos2d-x-2.2/cocos2dx)
      still same error .

      Delete
    3. This worked for me:
      define
      NDK_MODULE_PATH as
      C:\XXX\cocos2d-x-2.2;C:\XXX\cocos2d-x-2.2\cocos2dx\platform\third_party\android\prebuilt
      in [Project]->Properties->C/C++ Build->Environment
      Hint: Use the add button.

      Delete
  5. Hi! I was having the same problem using cocos2d-x2.2.2:
    Android NDK: jni/Android.mk: Cannot find module with tag 'cocos2dx' in import path

    My solution was to set NDK_MODULE_PATH as
    D:\XXX\cocos2d-x-2.2.2\;D:\XXX\cocos2d-x-2.2.2\cocos2dx\platform\third_party\android\prebuilt\

    With the backslash at the end of the folders

    ReplyDelete
    Replies
    1. Hey, dude, thank you a lot. It works fine for me.

      Delete