Skip to content
topameng edited this page Jul 11, 2019 · 6 revisions

Welcome to the tolua_runtime wiki!

配置mingw

下载http://msys2.github.io/
64位 http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20150916.exe

pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
安装
关闭所有 MSYS2 shell,然后运行 autorebase.bat

pacman -Su
安装
pacman -Sl | grep gcc
可以看到以下:
mingw32 mingw-w64-i686-gcc 5.3.0-2
mingw32 mingw-w64-i686-gcc-ada 5.3.0-2
mingw32 mingw-w64-i686-gcc-fortran 5.3.0-2
mingw32 mingw-w64-i686-gcc-libgfortran 5.3.0-2
mingw32 mingw-w64-i686-gcc-libs 5.3.0-2
mingw32 mingw-w64-i686-gcc-objc 5.3.0-2
mingw64 mingw-w64-x86_64-gcc 5.3.0-2
mingw64 mingw-w64-x86_64-gcc-ada 5.3.0-2
mingw64 mingw-w64-x86_64-gcc-fortran 5.3.0-2
mingw64 mingw-w64-x86_64-gcc-libgfortran 5.3.0-2
mingw64 mingw-w64-x86_64-gcc-libs 5.3.0-2
mingw64 mingw-w64-x86_64-gcc-objc 5.3.0-2
msys gcc 4.9.2-6
msys gcc-fortran 4.9.2-6
msys gcc-libs 4.9.2-6
msys mingw-w64-cross-gcc 4.9.2-3

同样
pacman -Sl | grep make 可找到对应mingw-make 安装包

安装
pacman -S mingw-w64-i686-gcc
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-i686-make
pacman -S mingw-w64-x86_64-make
pacman -S make

注意:msys2 32位和64位是分开的两个环境,32位比如安卓用mingw32_shell.bat编辑。64位用mingw64_shell.bat编译

Clone this wiki locally