问题
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.
回答1:
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.
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?
来源:https://stackoverflow.com/questions/28135004/ld-unrecognised-emulation-mode-armelf-linux-eabi