libgtk2.0-common无法使用Gdk-2.0.gir构建错误,未找到类型引用’GdkPixbuf’

我正在尝试构建gtk,但它失败了。 这就是我正在做的事情:

sudo apt-get build-dep libgtk2.0-common apt-get source libgtk2.0-common cd gtk+2.0-2.22.0/ gedit gtk/gtktreeview.c & #...editing a few files (or not, it's the same error) ./configure --prefix=/usr make 

编译运行一段时间然后退出:

 Gdk-2.0.gir: error: Type reference 'GdkPixbuf' not found ... make: *** [all] Error 2 

我究竟做错了什么?

如果要使用包源,则应使用包debian构建规则进行编译,而不是像使用原始源一样使用plain configure / make。 要使用包构建规则进行构建,请从源目录运行:

 debuild 

由于从包构建规则中应用了所需的补丁,手动构建可能会失败。