I have spent a lot looking for the error, but cannot get what is happening. I am new to cygwin and cocos2d-x stuff…
After creation of project through cocos2d-x 2.0.1, I tried to build it through cygwin. It gave an output like this:
Compile++ thumb : cocos2dx_static <= CCParticleSystem.cpp
Compile++ thumb : cocos2dx_static <= CCParticleBatchNode.cpp
Compile++ thumb : cocos2dx_static <= CCParticleSystemQuad.cpp
Compile++ thumb : cocos2dx_static <= CCSAXParser.cpp
Compile++ thumb : cocos2dx_static <= CCThread.cpp
Compile++ thumb : cocos2dx_static <= platform.cpp
Compile++ thumb : cocos2dx_static <= CCEGLViewProtocol.cpp
Compile++ thumb : cocos2dx_static <= CCEGLView.cpp
Compile++ thumb : cocos2dx_static <= CCAccelerometer.cpp
Compile++ thumb : cocos2dx_static <= CCApplication.cpp
Compile++ thumb : cocos2dx_static <= CCCommon.cpp
D:/android/cocos/old/cocos2dx/platform/android/CCCommon.cpp: In function 'void c
ocos2d::CCLog(char const*, ...)':
D:/android/cocos/old/cocos2dx/platform/android/CCCommon.cpp:44:72: error: format
not a string literal and no format arguments [-Werror=format-security]
cc1plus.exe: some warnings being treated as errors
/NDK/ndk/build/core/build-binary.mk:348: recipe for target `obj/local/armeabi/ob
js-debug/cocos2dx_static/platform/android/CCCommon.o' failed
make: *** [obj/local/armeabi/objs-debug/cocos2dx_static/platform/android/CCCommo
n.o] Error 1
make: Leaving directory `/cygdrive/d/android/cocos/old/project4/proj.android'
My NDK is r9, and it works fine with normal C++ projects
Please help… Thanks