33
18

More than 3 years have passed since last update.

MinGW インストール手順

Posted at

調べ方

  1. mingw - Google Search

インストール

  1. MinGW | Minimalist GNU for Windows にアクセスし, 画面左の Downloads をクリックする。
  2. MinGW Installation Manager (mingw-get) - MinGW-Get Version 0.6.3 (Beta) - mingw-get-setup.exe とクリックする。
  3. ダウンロードした mingw-get-setup.exe をダブルクリックする。
    • MinGW Installation Manager Setup Tool が起動する。
  4. Install ボタンを押下する。
    • Step 1: Specify Installation Preferences 画面に遷移する。
  5. そのまま Continue ボタンを押下する。
    • Step 2: Download and Set Up MinGW Installation Manager 画面に遷移する。
    • 必要なファイルがダウンロードされるまで待機する。
  6. そのまま Continue ボタンを押下する。
    • MinGW Installation Manager Setup Tool が終了し, MinGW Installation Manager が起動する。
  7. mingw32-base-bin を右クリックし, Mark for Installation をクリックする。
    • mingw32-base-bin にチェックが入る。
  8. メニューバーの Installation より Apply Changes をクリックする。
    • Schedule of Pending Actions ウィンドウが表示される。
  9. Apply ボタンを押下する。
    • All changes were applied successfully; you may now clone this dialogue. と表示されるまで待機する。
  10. Close ボタンを押下する。
    • Schedule of Pending Actions ウィンドウが閉じ, MinGW Installation Manager 画面に戻る。
  11. メニューバーの Installation より Quit をクリックする。
    • MinGW Installation Manager が終了する。

環境変数設定

  1. スタート - 設定 を開く。
    • Windows の設定 ウィンドウが表示される。
  2. 検索窓に 環境変数 と入力する。
    • 環境変数を編集システム環境変数の編集 が候補として表示される。
  3. 環境変数を編集 をクリックする。
    • 環境変数 ウィンドウが表示される。
  4. ユーザー環境変数新規 ボタンを押下する。
    • 新しいユーザー変数 ウィンドウが表示される。
  5. 以下の通りに入力し, OK ボタンを押下する。
    • 変数名: MINGW_HOME
    • 変数値: C:\MinGW
  6. 環境変数 ウィンドウに戻るので, ユーザー環境変数Path をクリックし, 編集 ボタンを押下する。
    • 環境変数名の編集 ウィンドウが表示される。
  7. 新規 ボタンを押下し, %MINGW_HOME%\bin と入力, OK ボタンを押下する。
    • 環境変数 ウィンドウに戻る。
  8. そのまま OK ボタンを押下する。
    • Windows の設定 ウィンドウは閉じても OK.
  9. コマンドプロンプトを開き, gccgdb コマンドが利用できることを確認する。

    • > gcc --version
    gcc (MinGW.org GCC-8.2.0-5) 8.2.0
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
  • > gdb --version

    GNU gdb (GDB) 7.6.1
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "mingw32".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    

どっとはらい。

33
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33
18