前置准备
在各种 arm 平台底下编译出来的档案
开始安装套件
0. 进入 root 权限
armhf 平台
1. 输入以下指令支援 armhf
dpkg --add-architecture armhf
2. 输入以下指令查看支援的 arm 平台
dpkg --print-foreign-architectures
3. 更新套件与软体
apt-get update
apt-get upgrade
4. 安装以下套件
apt-get install libc6:armhf binfmt-support qemu qemu-user-static
5. 执行看看程式能不能跑囉!
./hello_armhf
armel 平台
1. 输入以下指令支援 armel
dpkg --add-architecture armel
2. 输入以下指令查看支援的 arm 平台
dpkg --print-foreign-architectures
3. 更新套件与软体
apt-get update
apt-get upgrade
4. 安装以下套件
apt-get install libc6:armel
5. 执行看看程式能不能跑囉!
./hello_armel
arm64(aarch64) 平台
1. 输入以下指令支援 arm64
dpkg --add-architecture arm64
2. 输入以下指令查看支援的 arm 平台
dpkg --print-foreign-architectures
3. 更新套件与软体
apt-get update
apt-get upgrade
4. 安装以下套件
apt-get install libc6:arm64
5. 执行看看程式能不能跑囉!
./hello_arm64
Latest posts by SHXJ (see all)
- 受保护的内容: NAS 版 Mathbot 管理网站与 Linebot 启动方法 - 2024 年 11 月 15 日
- Realtime 啥鬼的 - 2021 年 6 月 15 日
- nodejs 数学游戏 - 2021 年 6 月 8 日
在〈在 x86 底下支援各种 arm 平台〉中有 1 则留言