pkg-config のインストール(Windows 上)
pkg-config のインストール(Windows 上)
-
Windows で,コマンドプロンプトを管理者権限で起動する(例:Windowsキーを押し,「cmd」と入力し,「管理者として実行」を選択).
コマンドプロンプトを管理者として実行: 別ページ »で説明
- 次のコマンドを実行
cd c:\ mkdir pkg-config cd pkg-config curl -L -O https://download.gnome.org/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip curl -L -O https://download.gnome.org/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip curl -L -O https://download.gnome.org/binaries/win64/dependencies/pkg-config_0.23-2_win64.zip powershell -command "Expand-Archive -Path glib_2.26.1-1_win64.zip ." powershell -command "Expand-Archive -Path gettext-runtime_0.18.1.1-2_win64.zip ." powershell -command "Expand-Archive -Path pkg-config_0.23-2_win64.zip ."
- Windows のシステム環境変数 Path に,c:\pkg-config\bin を追加することにより,パスを通す.
次のコマンドを実行
powershell -command "$oldpath = [System.Environment]::GetEnvironmentVariable(\"Path\", \"Machine\"); $oldpath += \";c:\pkg-config\bin\"; [System.Environment]::SetEnvironmentVariable(\"Path\", $oldpath, \"Machine\")"