12,964
回編集
(→準備) |
(→準備) |
||
61行目: | 61行目: | ||
*# ビルドディレクトリを作成する。 | *# ビルドディレクトリを作成する。 | ||
*#: <code>mkdir build && cd build</code> | *#: <code>mkdir build && cd build</code> | ||
*# libncurses5をビルドおよびインストールする。 | *# libncurses5をビルドおよびインストールする。<br>(1)から順に(4)までビルドおよびインストールする。 | ||
*#: <u>(1) 32bit版 ワイド文字対応</u> | |||
*#: <code>../configure \</code> | |||
*#: <code>CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc -m32" \</code> | |||
*#: <code>CXX="/<GCC6.5以前のインストールディレクトリ>/bin/g++ -m32" \</code> | |||
*#: <u> | |||
*#:<code>../configure \</code> | |||
*#: <code>CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc" \</code> | |||
*#: <code>CXX="/<GCC6.5以前のインストールディレクトリ>/bin/g++" \</code> | |||
*#: <code>--with-shared --with-normal --with-debug --enable-widec \</code> | *#: <code>--with-shared --with-normal --with-debug --enable-widec \</code> | ||
*#: <code>--without-progs --without-termlib --without-tests --without-manpages \</code> | |||
*#: <code>--program-suffix="_32" \</code> | |||
*#: <code>--prefix=<libncurses5のインストールディレクトリ> \</code> | *#: <code>--prefix=<libncurses5のインストールディレクトリ> \</code> | ||
*#: <code>--datadir=<libncurses5のインストールディレクトリ>/share32 \</code> | |||
*#: <code>CPPFLAGS="-P"</code> | *#: <code>CPPFLAGS="-P"</code> | ||
*#: <br> | *#: <br> | ||
84行目: | 76行目: | ||
*#: <code>make install</code> | *#: <code>make install</code> | ||
*#: <br> | *#: <br> | ||
*#: <u>32bit版</u> | *#: <u>(2) 32bit版</u> | ||
*#: <code>../configure \</code> | *#: <code>../configure \</code> | ||
*#: <code>CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc -m32" \</code> | *#: <code>CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc -m32" \</code> | ||
98行目: | 90行目: | ||
*#: <code>make install</code> | *#: <code>make install</code> | ||
*#: <br> | *#: <br> | ||
*#: <u> | *#: <u>次に、不要なインストールファイルを削除する。</u> | ||
*#: <code>../configure \</code> | *#: <code>rm -rf /<libncurses5のインストールディレクトリ>/bin \</code> | ||
*#: <code>CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc | *#: <code>/<libncurses5のインストールディレクトリ>/include \</code> | ||
*#: <code>CXX="/<GCC6.5以前のインストールディレクトリ>/bin/g++ | *#: <code>/<libncurses5のインストールディレクトリ>/share32</code> | ||
*#: <br> | |||
*#: <u>(3) 64bit版 ワイド文字対応</u> | |||
*#:<code>../configure \</code> | |||
*#: <code>CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc" \</code> | |||
*#: <code>CXX="/<GCC6.5以前のインストールディレクトリ>/bin/g++" \</code> | |||
*#: <code>--with-shared --with-normal --with-debug --enable-widec \</code> | *#: <code>--with-shared --with-normal --with-debug --enable-widec \</code> | ||
*#: <code>--prefix=<libncurses5のインストールディレクトリ> \</code> | *#: <code>--prefix=<libncurses5のインストールディレクトリ> \</code> | ||
*#: <code>-- | *#: <code>CPPFLAGS="-P"</code> | ||
*#: <br> | |||
*#: <code>make -j $(nproc)</code> | |||
*#: <code>make install</code> | |||
*#: <br> | |||
*#: <u>(4) 64bit版</u> | |||
*#:<code>../configure \</code> | |||
*#: <code>CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc" \</code> | |||
*#: <code>CXX="/<GCC6.5以前のインストールディレクトリ>/bin/g++" \</code> | |||
*#: <code>--with-shared --with-normal --with-debug \</code> | |||
*#: <code>--prefix=<libncurses5のインストールディレクトリ> \</code> | |||
*#: <code>CPPFLAGS="-P"</code> | *#: <code>CPPFLAGS="-P"</code> | ||
*#: <br> | *#: <br> |