【问题标题】:Unable to install gobject-introspection - symbol lookup error: and undefined symbol: g_unicode_type_get_type无法安装 gobject-introspection - 符号查找错误:和未定义的符号:g_unicode_type_get_type
【发布时间】:2020-06-05 12:30:41
【问题描述】:

无法安装 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

【问题讨论】:

    标签: linux gobject-introspection


    【解决方案1】:

    我解决了这个问题,找到了解决方案here

    您可能缺少开发包。包名 因分布而异,但它包含 /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

    【讨论】:

      猜你喜欢
      • 2012-06-19
      • 2017-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-02
      • 2017-05-04
      • 1970-01-01
      相关资源
      最近更新 更多