QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1535|回复: 2

为了重编译pygtk2该如何编译pygobject

[复制链接]
发表于 2008-8-25 14:05:38 | 显示全部楼层 |阅读模式
如何编译pygobject,cannot find -lffi 是缺少什么库呢?

gcc -shared  .libs/_gobject_la-gobjectmodule.o .libs/_gobject_la-pygboxed.o .libs/_gobject_la-pygenum.o .libs/_gobject_la-pygflags.o .libs/_gobject_la-pygobject.o .libs/_gobject_la-pygmaincontext.o .libs/_gobject_la-pygmainloop.o .libs/_gobject_la-pygparamspec.o .libs/_gobject_la-pygpointer.o .libs/_gobject_la-pygiochannel.o .libs/_gobject_la-pygsource.o .libs/_gobject_la-pygtype.o .libs/_gobject_la-pygoptioncontext.o .libs/_gobject_la-pygoptiongroup.o .libs/_gobject_la-ffi-marshaller.o  -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lffi  -march=i686 -pthread -Wl,-soname -Wl,_gobject.so -Wl,-version-script -Wl,.libs/_gobject.ver -o .libs/_gobject.so
/usr/bin/ld: cannot find -lffi
collect2: ld returned 1 exit status
make[2]: *** [_gobject.la] 错误 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/pygobject-2.14.1/gobject'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/pygobject-2.14.1'
make: *** [all] 错误 2
error: Bad exit status from /var/tmp/rpm-tmp.rOv6EM (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.rOv6EM (%build)
发表于 2008-8-25 14:31:41 | 显示全部楼层
回复

使用道具 举报

发表于 2008-8-25 14:51:41 | 显示全部楼层
编译服务器上有libffi
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-27 11:40 , Processed in 0.047972 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表