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?
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:
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 .
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.
Great post! it saved me a lot of time.
ReplyDeleteThanks :)
DeleteSuper.. My PC was a hell while using Cygwin.. Now it compiles whole clean project in just 3 mins.. Thanks a lot..
ReplyDeleteI 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
ReplyDeleteI 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?
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.
Deletehelp me . i config the same but when i build in eclipse has error :
ReplyDeletendk-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:
Which version of cocos2dx you are using? also insure you have setup everything correctly in step 2-2.
Deletei'm using cocos2d-x-2.2 .
Deletei try replace $(call import-module,cocos2dx) to direct path $(call import-module,D:/projects/cocos2d-x-2.2/cocos2dx)
still same error .
This worked for me:
Deletedefine
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.
Hi! I was having the same problem using cocos2d-x2.2.2:
ReplyDeleteAndroid 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
Hey, dude, thank you a lot. It works fine for me.
Delete