【问题标题】:Problems while compiling glib on ubuntu amd64在 ubuntu amd64 上编译 glib 时出现问题
【发布时间】:2011-07-05 20:41:41
【问题描述】:

我正在尝试在需要 glib 作为其依赖项之一的 ubuntu 11.04 amd64 机器上构建最新的 gtkmm。但是在 ./configure 之后尝试使用 make 命令时出现此错误。

错误是:

./.libs/libgobject-2.0.so: undefined reference to `g_cclosure_marshal_BOOLEAN__BOXED_BOXED'
./.libs/libgobject-2.0.so: undefined reference to `g_cclosure_marshal_VOID__PARAM'
./.libs/libgobject-2.0.so: undefined reference to `g_cclosure_marshal_BOOLEAN__FLAGS'
collect2: ld returned 1 exit status
make[4]: *** [gobject-query] Error 1
make[4]: Leaving directory `/home/test/glib/gobject'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/test/glib/gobject'
make[2]: *** [all] Error 2

./configure 命令的输出是: http://pastebin.com/DSyQrF1c

make command 的错误输出是: http://pastebin.com/bAgd3UiK

【问题讨论】:

  • 所提到的 glib 是从 gnome-project 的 git 仓库中获取的

标签: ubuntu gnome glib


【解决方案1】:

你可以试试

find .|grep libgobject-2.0.so|xargs ldd

fgrep -r g_cclosure_marshal_ *

并尝试找出对应的代码在哪里。

也许一个额外的库 -l.. 可能会有所帮助 或者缺少 -D...,因此不包含某些代码。

我想尝试一下,但我不知道你说的是存储库还是发布

  git clone git://git.gnome.org/glib

wget http://ftp.acc.umu.se/pub/gnome/sources/glib/2.29/glib-2.29.10.tar.bz2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-18
    • 2012-05-05
    • 2020-07-21
    • 2012-05-11
    • 2010-12-13
    • 1970-01-01
    • 1970-01-01
    • 2010-12-11
    相关资源
    最近更新 更多