「インストール - Code Composer Studio」の版間の差分

ナビゲーションに移動 検索に移動
170行目: 170行目:
  CPPFLAGS="-P"
  CPPFLAGS="-P"
   
   
  make -j $(nproc)
  # pkgconfファイルは強制的に/usr/lib/pkgconfigディレクトリにインストールされるため、
make install
# スーパーユーザ権限で実行する
sudo make install.libs
# pkgconfigファイルをインストールディレクトリに移動する
mkdir /<libncurses5のインストールディレクトリ>/lib64/pkgconfig
sudo mv \
        /usr/lib/pkgconfig/formw.pc      \
        /usr/lib/pkgconfig/menuw.pc      \
        /usr/lib/pkgconfig/ncurses++w.pc \
        /usr/lib/pkgconfig/ncursesw.pc  \
        /usr/lib/pkgconfig/panelw.pc    \
        /usr/lib/pkgconfig/ticw.pc      \
        /<libncurses5のインストールディレクトリ>/lib64/pkgconfig
# スーパーユーザでインストールしているため、オーナーを一般ユーザに変更する
sudo chown -R $USER:$(id -gn) <libncurses5のインストールディレクトリ>
   
   
  # 不要なファイルを削除する
  # 不要なファイルを削除する
179行目: 194行目:
  (4) 64bit版 非ワイド文字
  (4) 64bit版 非ワイド文字
  ../configure \
  ../configure \
  CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc" \
  CC="/<GCC6.5以前のインストールディレクトリ>/bin/gcc"     \
  CXX="/<GCC6.5以前のインストールディレクトリ>/bin/g++" \
  CXX="/<GCC6.5以前のインストールディレクトリ>/bin/g++"   \
--prefix=<libncurses5のインストールディレクトリ>        \
--libdir=/<libncurses5のインストールディレクトリ>/lib64 \
  --with-shared --with-cxx-shared --with-normal --with-ticlib --with-debug --with-termlib \
  --with-shared --with-cxx-shared --with-normal --with-ticlib --with-debug --with-termlib \
  --without-tests --without-manpages              \
  --without-tests --without-manpages              \
  --disable-widec --enable-pc-files              \
  --disable-widec --enable-pc-files              \
--prefix=<libncurses5のインストールディレクトリ>        \
--libdir=/<libncurses5のインストールディレクトリ>/lib64 \
  CPPFLAGS="-P"
  CPPFLAGS="-P"
   
   
  make -j $(nproc)
  make -j $(nproc)
  make install
   
# pkgconfファイルは強制的に/usr/lib/pkgconfigディレクトリにインストールされるため、
# スーパーユーザ権限で実行する
sudo make install.libs
# pkgconfigファイルをインストールディレクトリに移動する
mkdir /<libncurses5のインストールディレクトリ>/lib64/pkgconfig
sudo mv \
        /usr/lib/pkgconfig/form.pc      \
        /usr/lib/pkgconfig/form_g.pc    \
        /usr/lib/pkgconfig/menu.pc      \
        /usr/lib/pkgconfig/menu_g.pc    \
        /usr/lib/pkgconfig/ncurses.pc  \
        /usr/lib/pkgconfig/ncurses_g.pc \
        /usr/lib/pkgconfig/ncurses++.pc \
        /usr/lib/pkgconfig/panel.pc    \
        /usr/lib/pkgconfig/panel_g.pc  \
        /usr/lib/pkgconfig/tic.pc      \
        /usr/lib/pkgconfig/tic_g.pc    \
        /usr/lib/pkgconfig/tinfo.pc    \
        /usr/lib/pkgconfig/tinfo_g.pc  \
        /<libncurses5のインストールディレクトリ>/lib64/pkgconfig
# スーパーユーザでインストールしているため、オーナーを一般ユーザに変更する
sudo chown -R $USER:$(id -gn) <libncurses5のインストールディレクトリ>
<br>
<br>
~/.profileファイル等に、以下の環境変数を追記する。<br>
~/.profileファイル等に、以下の環境変数を追記する。<br>

案内メニュー