Cocos2d-x v3.12 + ndkandroid-ndk-r12b,这两个都是当前最新版本,新建项目后,编译安卓apk时候悲剧了,报错如下:
Android NDK:ERROR:E:\Cocos2d\projects\LearnCocos\frameworks\runtime-src\proj.an
droid\../../cocos2d-x/external/freetype2/prebuilt/android/Android.mk:cocos_freet
ype2_static:LOCAL_SRC_FILES points to a missing file
Android NDK:Check that E:/Cocos2d/projects/LearnCocos/frameworks/runtime-src/pr
oj.android/../../cocos2d-x/external/freetype2/prebuilt/android/arm64-v8a/libfree
type.aexists or that its path is correct
make: Enteringdirectory `E:/Cocos2d/projects/LearnCocos/frameworks/runtime-src/
proj.android'
E:/Cocos2d/android-ndk-r12b/build//../build/core/prebuilt-library.mk:45:*** And
roid NDK:Aborting . Stop.
make: Leavingdirectory `E:/Cocos2d/projects/LearnCocos/frameworks/runtime-src/p
roj.android'
执行命令出错,返回值:2。
经过网上搜索好久未找到有效解决办法。可能是当前版本cocos对ndk r12b支持不是太好,最后使用android-ndk-r11c,可以正常编译。顺便分享一个ndk r11c的百度网盘链接:http://pan.baidu.com/s/1o8LCnhS
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。