2020年4月7日 星期二

如何在Windows使用 Meson Build 別人寫好的程式

摸了老半天才搞定
以後大概會忘,給自己程式0基礎留個筆記

前置作業

 1.下載 meson 安裝
https://github.com/mesonbuild/meson

2.下載 MinGW-W64 安裝
https://sourceforge.net/projects/mingw-w64/files/mingw-w64/

選 MinGW-W64 Online Installer

安裝選項
x86_64
win32
seh







 安裝完設定環境變數>系統變數>Path>編輯>新增
C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin

測試MinGW-W64是否安裝成功
用PowerShell或cmd指令 gcc -v

3.下載 Git 安裝
https://git-scm.com/

================
用PowerShell或cmd到程式碼資料夾
執行指令 meson build
之後會產生build資料夾

繼續用PowerShell或cmd到build資料夾
執行指令 ninja

完成

沒有留言: