linw1995
12/4/2017 - 6:16 AM

window development 环境配置

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"

参考链接