Cocos2dx Android构建错误:"arm-linux-androideabi-g ++:没有这样的文件或目录"; [英] Cocos2dx Android build error: "arm-linux-androideabi-g++: No such file or directory"

查看:150
本文介绍了Cocos2dx Android构建错误:"arm-linux-androideabi-g ++:没有这样的文件或目录";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了最新的cocos2dx(3.10)和NDK(r11).执行cocos compile -p android --android-studio时出现以下错误.

I downloaded the latest cocos2dx(3.10) and NDK(r11). I have the following error when I executed cocos compile -p android --android-studio.

错误:

~/AndroidDev/android-ndk-r11/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++: No such file or directory

然后我在NDK Revision History 此处中找到了r11以下:

Then I found in NDK Revision History here for r11 the following:

Removed GCC 4.8. All targets now use GCC 4.9.

是否有变通办法将cocos2dx设置切换到4.9?

Are there workarounds to switch cocos2dx settings to 4.9?

推荐答案

在您的NDK目录中,创建RELEASE.txt文件并输入版本,例如

In your NDK directory create RELEASE.txt file and enter the version, e.g.

r11c(64位)

这篇关于Cocos2dx Android构建错误:"arm-linux-androideabi-g ++:没有这样的文件或目录";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆