Skip to content

Instantly share code, notes, and snippets.

@linw1995
Created December 4, 2017 06:16
Show Gist options
  • Save linw1995/e8e7eb09faedbba23d0b6439dfaa39d8 to your computer and use it in GitHub Desktop.
Save linw1995/e8e7eb09faedbba23d0b6439dfaa39d8 to your computer and use it in GitHub Desktop.
window development 环境配置

MinGW64 + MSYS2 环境

下载地址,官网

www.msys2.org

pacman

安装完成后,可以用pacman命令安装程序,类似于ubuntu的apt-get命令

# 安装
pacman -S [full-package-name]
# 搜索
pacman -Ss [partial-package-name]

安装开发大礼包

pacman -S --needed base-devel

This will install make, pkg-config and many others useful tools.

pacman -S --needed mingw-w64-i686-toolchain

This will install the 32 bit compiler.

pacman -S --needed mingw-w64-x86_64-toolchain

This will install the 64 bit compiler.

pacman -S --needed mingw-w64-i686-cmake mingw-w64-x86_64-cmake

This will install CMake for both 32 and 64 bit.

cmake 使用

cmake -G "MSYS Makefiles"

参考链接

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment