使用命令 ninja -C _build 构建 GLib 失败

使用命令 ninja -C _build 构建 GLib 失败

根据来自的 INSTALL.md 指南安装 GLib 时https://download.gnome.org/sources/glib/2.76/(继续这里 ->如何正确地 tar xf glib-*.tar.gz?

我在终端上输入了以下内容ninja -C _build 但在构建时出现错误:

ninja: Entering directory `_build'
[980/1499] Generating gio/tests/plugin-resources.c with a custom command
FAILED: gio/tests/plugin-resources.c 
/home/User/Desktop/GLib/glib-2.76.3/_build/gio/glib-compile-resources --compiler=gcc --target=gio/tests/plugin-resources.c --sourcedir=/home/User/Desktop/GLib/glib-2.76.3/gio/tests --internal --generate-source --c-name _g_plugin ../gio/tests/test4.gresource.xml
/home/User/Desktop/GLib/glib-2.76.3/_build/gio/glib-compile-resources: symbol lookup error: /home/User/Desktop/GLib/glib-2.76.3/_build/gio/glib-compile-resources: undefined symbol: g_task_set_static_name
[989/1499] Compiling C object gio/test...required-2-64.p/gdbus-test-codegen.c.o
ninja: build stopped: subcommand failed.

此错误从何而来以及如何修复它?

相关内容