0

无法安装 gobject-introspection - 符号查找错误:和未定义的符号:g_unicode_type_get_type

我尝试编译 Gtk4,并下载 gobject-introspection 1.30、1.40、1.50、1.64.1。除了最后一个产生另一个错误的错误之外,所有错误都失败了。

gobject-introspection 1.30、1.40、1.50 的错误,

 CCLD     _giscanner.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       g_ir_compiler-compiler.o
  CCLD     g-ir-compiler
  CC       g_ir_generate-generate.o
  CCLD     g-ir-generate
  CC       g_ir_inspect-g-ir-inspect.o
  CCLD     g-ir-inspect
  CC       gi_dump_types-gdump.o
  CC       gi_dump_types-gi-dump-types.o
  CCLD     gi-dump-types
  CC       glib_print-glib-print.o
  CCLD     glib-print
  GEN      g-ir-scanner
  GEN      g-ir-annotation-tool
  GEN      g-ir-doc-tool
  GISCAN   GLib-2.0.gir
g-ir-scanner: GLib: warning: 736 warnings suppressed (use --warn-all to see them)
  GISCAN   GObject-2.0.gir
/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0: symbol lookup error: /home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0: undefined symbol: g_unicode_type_get_type
Command '[u'/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0', u'--introspect-dump=/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/functions.txt,/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/dump.xml']' returned non-zero exit status 127
Makefile:3520: recipe for target 'GObject-2.0.gir' failed
make[2]: *** [GObject-2.0.gir] Error 1
make[2]: Leaving directory '/home/elias/Downloads/gobject-introspection-1.50.0'
Makefile:2810: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/elias/Downloads/gobject-introspection-1.50.0'
Makefile:1570: recipe for target 'all' failed
make: *** [all] Error 2
4

1 回答 1

0

我解决了这个问题,在这里找到了解决方案:

您可能缺少开发包。软件包名称因发行版而异,但它包含 /usr/lib/pkgconfig/gobject-introspection-1.0.pc (或 /usr/lib64/pkgconfig/gobject-introspection-1.0.pc 对于某些 64 位发行版):

Fedora、CentOS、RHEL 等:gobject-introspection-devel

Debian、Ubuntu、Mint 等:libgirepository1.0-dev Arch:gobject-introspection

FreeBSD:gobject-introspection

Cygwin:libgirepository1.0-devel msys2:

mingw-w64-x86_64-gobject-introspection 和/或 mingw-w64-i686-gobject-introspection

于 2020-06-05T12:32:42.110 回答