Android ndk: Error:/cygdrive/e/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. android /.. /.. /cocos2dx/platform/third_party/Android/prebuilt/libjpeg/android. MK: cocos_assist_static: local_src_files points to a missing file
Android ndk: Check that/cygdrive/e/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. android /.. /.. /cocos2dx/platform/third_party/Android/prebuilt/libjpeg/libs/armeabi/libjpeg. A exists or that its path is correct
Make: Go to the directory "/cygdrive/e/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. Android"
/Cygdrive/e/Android-ndk-Windows/android-ndk-r9/build/CORE/prebuilt-library.mk: 45: *** Android ndk: aborting. Stop.
Make: Leave the directory "/cygdrive/e/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. Android"
This is a small file. But I'm from the cocos2d-2.1rc0-x-2.1.3 under the official website. Then install the build-win32.bat. All went well. The third-party library files of each platform are missing in cocos2dx \ platform \ third_party. Cocosdenshion \ third_party is also a small library file. I don't know why I didn't extract it. But these library files are in the compressed files of the cocos2d-2.1rc0-x-2.1.3. No matter. If you extract the package and overwrite it, there will be no problem.
3. An error is reported when compiling the cccommon. cpp file.
Compile ++ thumb: cocos2dx_static <= cccommon. cpp
E:/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. android /.. /.. /cocos2dx/platform/Android/cccommon. CPP: In function 'void cocos2d: cclog (char const *,...) ':
E:/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. android /.. /.. /cocos2dx/platform/Android/cccommon. CPP: 44: 72: Error: format not a string literal and no format arguments [-werror = format-security]
E:/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. android /.. /.. /cocos2dx/platform/Android/cccommon. CPP: In function 'void cocos2d: cclualog (char const *)':
E:/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. android /.. /.. /cocos2dx/platform/Android/cccommon. CPP: 54: 77: Error: format not a string literal and no format arguments [-werror = format-security]
Cc1plus.exe: some warnings being treated as errors
/Cygdrive/e/Android-ndk-Windows/android-ndk-r9/build/CORE/build-binary.mk: 348: recipe for target 'obj/local/armeabi/objs/cocos2dx_static/platform/Android/cccommon. O 'failed'
Make: *** [OBJ/local/armeabi/objs/cocos2dx_static/platform/Android/cccommon. O] Error 1
Make: Leave the directory "/cygdrive/e/cocos2d-x/code/cocos2d-2.1rc0-x-2.1.3/hellotest1/proj. Android"
This problem also occurs when Google goes to a foreign forum.
Because my ndk is R9, someone suggested to switch back to R8. I didn't try it. Finally, someone found this solution.
Modify the proj. Android \ JNI \ application. mk file of your project, and add
App_cppflags + =-wno-error = format-security.
Libjpeg. A exists or that its path is correct