Libjpeg. A exists or that its path is correct

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.