也加入了 Arch Linux 使用的 pacman 來管理安裝 package,
所以過程中會需要透過 pacman 來安裝一些 package
除此之外, MSYS 的 shell 沒有 large file system support, 所以顯示
超過 4GB 以上的檔案大小會有問題, MSYS2 的 shell 是
bash, 顯示超過 4GB 以上的檔案大小沒問題.
MSYS2 可以從 https://msys2.github.io/ 下載安裝檔案,
完成安裝之後, 會安裝一些基本的 packages,
接著會開啟一個 MSYS2 shell window,
在 shell 底下執行
pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
關掉目前的 MSYS2 shell 之後, 然後再重開一個,
接下來執行
pacman -Syu如果要安裝 package, 可以用 "pacman -S package_name" 來安裝,
例如安裝 Mingw,
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-make有哪些 packages 可以安裝, 可以參考 http://sourceforge.net/p/msys2/wiki/Packages/
或者下
pacman -Ss keyword
來查詢有關 keyword 的套件列表
如果要執行 MingW, 需要啟動 MingW64 或 MingW32 shell,
如果需要安裝package, 則啟動 MSYS2 shell
pacman -S mingw-w64-x86_64-pkg-config
pacman -S mingw-w64-x86_64-gtk3
when compiling the GTK+ source code, using :
gcc -o test1 test1.c $(pkg-config --cflags --libs gtk+-win32-3.0 gmodule-2.0)
沒有留言:
張貼留言