Will the binaries built for ARM work on Intel processors? [Android]

前端 未结 3 1138
不知归路
不知归路 2021-01-13 09:00

Using NDK I built binaries for ARM processor, but due to some dependencies I can\'t build them for x86. Is there any chance to use this binary on x86 or MIPS architecture? <

3条回答
  •  暖寄归人
    2021-01-13 09:42

    Both x86 and MIPs devices are capable of doing ARM binary translation, using Magic Code on MIPs, and Houdini on x86. However, both of these come at a cost, and neither of them are likely to be long term solutions (both companies will likely want them to go away sooner rather than later).

    You mentioned that due to some dependency issues you weren't able to build the lib for x86? Is that still the case? I take it you are using some lib that doesn't include an x86 version?

    For future reference, if you do want to build for x86 native, the process is extremely simple, all you have to do is add APP_ABI+=x86 or add x86 to your existing APP_ABI list.....and....that is it. Really.

提交回复
热议问题