ld:无法识别的仿真模式:armelf_linux_eabi [英] ld: unrecognised emulation mode: armelf_linux_eabi

查看:2020
本文介绍了ld:无法识别的仿真模式:armelf_linux_eabi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编译linphone源代码时,下面发生了错误.谁能告诉我如何解决它.谢谢你.

When I compile linphone source code, error happened below. Can anybody tell me how to fix it. Thank you.

ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_i386 i386linux elf32_x86_64 elf_x86_64 elf_l1om elf_k1om i386pep i386pe
C compiler test failed.

推荐答案

如果有人像我一样愚蠢,我会收到此错误,因为我假设是它尝试使用的链接器没有执行权限;实际上,很多东西没有执行权限.因此,我在NDK目录的根目录下做了一个简单的chmod -R +x *并将其修复.

In case anyone is as dumb as me, I was getting this error because, I assume, the linker it was trying to use didn't have execution permissions; in fact, a lot of things didn't have execution permissions. So I did a simple chmod -R +x * at the root of the NDK directory and that fixed it.

此外,如果有人有更好的解决方案,请告诉我.例如,我是否应该从他们网站以外的其他地方下载NDK?也许安装了软件包?

Also, if anyone has a more elegant solution, please tell me. For example, was I supposed to download the NDK from somewhere else other than their website? A package installation perhaps?

这篇关于ld:无法识别的仿真模式:armelf_linux_eabi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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