📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

252行目: 252行目:
   
   
  make install
  make install
<br>
Raspberry Pi 3B向けにビルドする手順を以下に記載する。<br>
# 以下のURLから、GCC ARMツールチェイン(Linaro社)をダウンロードする。<br>https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf
#: ホストOSがWindows x86の場合 : gcc-linaro-7.5.0-2019.12-i686_arm-linux-gnueabihf.tar.xz
#: ホストOSがLinux x64の場合 : gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz
#: ホストOSがLinux x86の場合 : gcc-linaro-7.5.0-2019.12-i686_arm-linux-gnueabihf.tar.xz
# ダウンロードしたGCC ARMツールチェインを解凍する。
# 任意のソフトウェアをRaspberry Pi 3B向けにビルドするため、以下のコマンドを実行する。
#: <code>ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes \</code>
#: <code>../configure --prefix=<ソフトウェアのインストールディレクトリ> \</code>
#: <code>CC=/<GCC_ARMのインストールディレクトリ>/bin/arm-linux-gnueabihf-gcc-7.5.0 \</code>
#: <code>CXX=/<GCC_ARMのインストールディレクトリ>/bin/arm-linux-gnueabihf-g++ \</code>
#: <code>--build=x86_64-unknown-linux-gnu --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf</code>
#: <br>
#: <code>make -j 8 LDFLAGS="-L/<GCC_ARMのインストールディレクトリ>/arm-linux-gnueabihf/lib" \</code>
#: <code>CFLAGS="-I/<GCC_ARMのインストールディレクトリ>/arm-linux-gnueabihf/include"</code>
#: <br>
#: <code>make install</code>
<br><br>
<br><br>