コマンドプロンプトを管理者として実行: 別ページ »で説明
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 ."
次のコマンドを実行
powershell -command "$oldpath = [System.Environment]::GetEnvironmentVariable(\"Path\", \"Machine\"); $oldpath += \";c:\pkg-config\bin\"; [System.Environment]::SetEnvironmentVariable(\"Path\", $oldpath, \"Machine\")"