ubuntu pygtk install 编译

来源:互联网 发布:国外网络加速 编辑:程序博客网 时间:2024/05/17 03:49
export GTKHOME=/home/shen/pygtk-build
#make separate lib dependencies together fot build pygtk lastly
cp $GTKHOME/*/* $GTKHOME/unit -r


export PATH="$GTKHOME/bin:$PATH"
export PATH="$GTKHOME/bin:$PATH"
export LIBRARY_PATH="$GTKHOME/lib:$LIBRARY_PATH"
export LD_LIBRARY_PATH="$GTKHOME/lib:$LD_LIBRARY_PATH"
export CPPFLAGS="-I$GTKHOME/include $CPPFLAGS"
export LDFLAGS="-L$GTKHOME/lib $LDFLAGS"
export PKG_CONFIG_PATH="$GTKHOME/lib/pkgconfig"


tar jxvf zxvf
xz -d XX.tar.xz
tar -xf XX.tar
cd pygobject-2.21.0
./configure -prefix=$GTKHOME/pygobject-2.21.0
make
make install


PKG_CONFIG_PATH=/home/shen/pygtk-build/pygobject-2.21.0/lib/pkgconfig:




5
down voteaccepted

from gi.repository import Gtk uses the new PyGObject instead of the older PyGTK that is used with import gtk.

shareimprove this answer

0 0
原创粉丝点击