安裝 linux (armhf) toolchain

前置作業

準備這篇文章的 hello.c : Linux 開發環境安裝

安裝 armhf toolchain

0. 進入 root 權限

su -

1. 安裝以下三個套件

apt-get install gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf g++-arm-linux-gnueabihf

2. 輸入以下指令確認詳細內容

arm-linux-gnueabihf-gcc -v
arm-linux-gnueabihf-g++ -v
arm-linux-gnueabihf-cpp -v

3. 輸入以下指令將 hello.c 編譯成 armhf 平台的檔案

arm-linux-gnueabihf-gcc hello.c -o hello_armhf
SHXJ
Latest posts by SHXJ (see all)

在〈安裝 linux (armhf) toolchain〉中有 1 則留言

發佈留言