我的 64 位 ARM 平台随 Ubuntu 16 一起提供,我需要运行为 ARM32 编译的 32 位应用程序:
[root@artik publish]# file myApp
myApp: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=b455beda566647d2bfebccd157261c60c60f64b3, stripped
Run Code Online (Sandbox Code Playgroud)
是否可以在 ARM64 位 Ubuntu 16.0 上运行 ARM32 位应用程序?需要哪些可以支持 ARM32 位应用程序的 32 位库?我应该从哪里安装它们?
下面的文章为 x86 回答了同样的问题,但我如何为 ARM64 上的 Arm32 应用程序做到这一点?
提前致谢,埃米尔
我在以下链接中找到了一种方法来做到这一点(James Kingdon,谢谢!)
https://forum.armbian.com/topic/4764-running-32-bit-applications-on-aarch64/
这些是在 Ubuntu 16.04/AARCH64 上运行简单 ARM32 应用程序的步骤。
dpkg --add-architecture armhf
apt-get update (ignore the missing x386 packages and hope for the best)
apt-get install libc6:armhf libstdc++6:armhf
Run Code Online (Sandbox Code Playgroud)
创建指向以下 32Bit 库的符号链接:
cd /lib
ln -s arm-linux-gnueabihf/ld-2.23.so ld-linux.so.3
Run Code Online (Sandbox Code Playgroud)
执行此操作后,我的 .NETCore 2.1 应用程序抛出一个错误,我通过禁用全球化解决了该错误。之后ARM32位应用程序运行成功。
-埃米尔
| 归档时间: |
|
| 查看次数: |
10288 次 |
| 最近记录: |