183行目: 183行目:
==== Linux PCの初期設定 ====
==== Linux PCの初期設定 ====
Linux PCにおいて、以下の依存関係のライブラリをインストールする。<br>
Linux PCにおいて、以下の依存関係のライブラリをインストールする。<br>
sudo zypper install libicu-devel Mesa-devel Mesa-libGL-devel libXinerama-devel libxslt-devel \
                    libopenssl-devel libXcursor-devel libXcomposite-devel libXdamage-devel libXrandr-devel fontconfig-devel \
                    libcap-devel libXtst-devel libpulse-devel libudev-devel pciutils-devel mozilla-nss-devel libXss-devel \
                    Mesa-libEGL-devel
  sudo zypper install autoconf automake cmake unzip tar git wget pkg-config gperf gcc gcc-c++ libgfortran5 \
  sudo zypper install autoconf automake cmake unzip tar git wget pkg-config gperf gcc gcc-c++ libgfortran5 \
                     gawk bison openssl flex figlet pigz ncurses-devel ncurses5-devel texinfo  
                     gawk bison openssl flex figlet pigz ncurses-devel ncurses5-devel texinfo  
193行目: 189行目:
https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/<br>
https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/<br>
<center>
<center>
表. GCC ARMツールチェーンのダウンロード<br>
{| class="wikitable" style="background-color:#fefefe;"
{| class="wikitable" style="background-color:#fefefe;"
|+ 表. GCC ARMツールチェーンのダウンロード
|-
|-
! style="background-color:#00ffff;" | Raspberry Piの種類  
! style="background-color:#00ffff;" | Raspberry Piの種類  
214行目: 210行目:
</center>
</center>
<br>
<br>
また、古いコンパイラではあるが、LINEROからGCC ARMツールチェーンをダウンロードできる。<br>
また、Linero社が提供しているGCC ARMツールチェーンも使用することができる。<br>
https://releases.linaro.org/components/toolchain/binaries/<br>
https://releases.linaro.org/components/toolchain/binaries/<br>
  wget https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz
  wget https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz
230行目: 226行目:
<br>
<br>
<center>
<center>
表. Raspberry PiとLTO(Link Time Optimization)フラグの関係<br>
{| class="wikitable" style="background-color:#fefefe;"
{| class="wikitable" style="background-color:#fefefe;"
|+ 表. Raspberry PiとLTO(Link Time Optimization)フラグの関係
|-
|-
! style="background-color:#00ffff;" | Raspberry Piの種類  
! style="background-color:#00ffff;" | Raspberry Piの種類