Cocos2d-x 3.12 ndk r12b ERROR: cocos_freet ype2_static:LOCAL_SRC_FILES points to a missing file

前端之家收集整理的这篇文章主要介绍了Cocos2d-x 3.12 ndk r12b ERROR: cocos_freet ype2_static:LOCAL_SRC_FILES points to a missing file前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Cocos2d-xv3.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

原文链接:https://www.f2er.com/cocos2dx/339375.html

猜你在找的Cocos2d-x相关文章