haulm 发表于 2008-8-25 14:05:38

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

如何编译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: *** 错误 1
make: Leaving directory `/root/rpmbuild/BUILD/pygobject-2.14.1/gobject'
make: *** 错误 1
make: Leaving directory `/root/rpmbuild/BUILD/pygobject-2.14.1'
make: *** 错误 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

libffi:http://sourceware.org/libffi/

sejishikong 发表于 2008-8-25 14:51:41

编译服务器上有libffi
页: [1]
查看完整版本: 为了重编译pygtk2该如何编译pygobject