From 16ca831ddc9df0d42e124936dc8ca1d0ddf17507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=C3=A2jinzhongjia?= Date: Tue, 19 Dec 2023 23:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B0=91=E9=87=8F=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- learn/engineering/build-system.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/learn/engineering/build-system.md b/learn/engineering/build-system.md index 67e092f3..6d52e8ac 100644 --- a/learn/engineering/build-system.md +++ b/learn/engineering/build-system.md @@ -576,7 +576,14 @@ pub fn build(b: *std.Build) !void { ### 构建纯 C 项目 -在这里我们使用 [GTK4](https://www.gtk.org/) 的官方示例 [Hello-World](https://www.gtk.org/docs/getting-started/hello-world/) 来作为演示: +在这里我们使用 [GTK4](https://www.gtk.org/) 的官方示例 [Hello-World](https://www.gtk.org/docs/getting-started/hello-world/) 来作为演 +示: + +::: warning + +在进行本部分教程前请先安装好 GTK4 的依赖,具体安装方法见 GTK 的指南。 + +::: :::code-group @@ -697,6 +704,12 @@ main (int argc, 由于 GTK 的 C++ 构建过于复杂(需要手动编译gtkmm),故我们这里选择构建一个 [tinytetris](https://github.com/taylorconor/tinytetris): +::: warning + +注意:由于依赖了 curses 库,故只能在 linux 进行编译! + +::: + ::: code-group ```zig [build.zig]