awtk/docs/mingw.md
2021-03-16 17:32:35 +08:00

25 lines
645 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 在 windows 下使用 gcc 编译 AWTK
在 windows 下,如果不想使用 Visual C++编译,也可以使用 gcc 编译。
* 下载并安装 [mingw](https://udomain.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe)
> 64 位系统安装时 architecturex 选择 x86_64。
> 安装之后将 gcc 的路径加入系统环境变量 PATH 中。默认路径如下:
```
C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
```
* 修改 awtk_config.py放开注释掉的 TOOLS_NAME。
```
TOOLS_NAME = 'mingw'
```
* 编译
```
scons
```