So i tried to download an example of Cocos2dSimpleGame, then i changed build-native.sh file so that passes where pointing on the folders with ndk and cocos2dx, then when i started buildnatives - everything seemed to compile fine, exept for couple of warnings :
CCScheduler.cpp: In member function ‘void cocos2d::CCTimer::update(cocos2d::ccTime)’:
CCScheduler.cpp:160: warning: NULL used in arithmetic
CCImage.cpp: In member function ‘bool cocos2d::CCImage::_initWithPngData(void*, int)’:
CCImage.cpp:238: warning: ‘png_info_struct::color_type’ is deprecated (declared at /Users/user/src/Cocos2dxSimpleGame/Cocos2dxSimpleGame/android/jni/…/…/…/cocos2dx/platform/third_party/android/libpng/png.h:650)
CCImage.cpp:238: warning: ‘png_info_struct::color_type’ is deprecated (declared at /Users/user/src/Cocos2dxSimpleGame/Cocos2dxSimpleGame/android/jni/…/…/…/cocos2dx/platform/third_party/android/libpng/png.h:650)
Then i zip the whole android folder and send it to my colleague who is an android developer and asked him to run this project, personally i don’t know java or android at all, and doesn’t have time to look for this problem , so i hope someone of you faced this before and know what to do, or you can give me a clue what it is with the problem. here is the error he gets:
07-11 16:09:38.716: ERROR/AndroidRuntime(17694): FATAL EXCEPTION: GLThread 12
07-11 16:09:38.716: ERROR/AndroidRuntime(17694): java.lang.NoSuchMethodError: createTextBitmap
07-11 16:09:38.716: ERROR/AndroidRuntime(17694): at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native Method)
07-11 16:09:38.716: ERROR/AndroidRuntime(17694): at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:15)
07-11 16:09:38.716: ERROR/AndroidRuntime(17694): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1348)
07-11 16:09:38.716: ERROR/AndroidRuntime(17694): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
so looking forward for your answers i really like cocos2dx but it just seems to be to complicated to me)))
hope someone answers soon, thanks in advance