在 ubuntu amd64 上编译 glib 时出现问题

发布于 2024-11-19 03:04:26 字数 899 浏览 3 评论 0原文

我正在尝试在 ubuntu 11.04 amd64 机器上构建最新的 gtkmm,它需要 glib 作为其依赖项之一。但是在./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 命令 的输出是: http://pastebin.com/bAgd3UiK

I am trying to build latest gtkmm on ubuntu 11.04 amd64 machine which requires glib as one of its dependency. But there is this error while trying to use make command after ./configure.

The error is :

./.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

The output of ./configure command is:
http://pastebin.com/DSyQrF1c

The output of make command with errors is:
http://pastebin.com/bAgd3UiK

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢烬 2024-11-26 03:04:26

你可以尝试

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

You could try

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

and

fgrep -r g_cclosure_marshal_ *

and try to figure out where the corresponding code is.

Perhaps an additional library -l.. might help
or there is a -D... missing, so that some code isn't included.

I wanted to try it but I don't know if you're talking about repository or release

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

or

wget http://ftp.acc.umu.se/pub/gnome/sources/glib/2.29/glib-2.29.10.tar.bz2
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文