页次: 1
编译到gnome-control-center-ubuntu时出错,去Google查过也没解决问题,官方的论坛上有人出现这个问题,但是他重新全部编译就好了,我已经全部重新编译过了还是不行
CC libkeyboard_la-keyboard-general.lo
CC libkeyboard_la-keyboard-shortcuts.lo
keyboard-shortcuts.c: In function 'setup_dialog':
keyboard-shortcuts.c:1748:62: error: 'GTK_CELL_RENDERER_ACCEL_MODE_MODIFIER_TAP' undeclared (first use in this function)
"accel-mode", GTK_CELL_RENDERER_ACCEL_MODE_MODIFIER_TAP,
修改gtk3-ubuntu的PKGBUILD文件
加入echo 'bzg_gtkcellrenderer_grabbing_modifier.patch' >> "${srcdir}/debian/patches/series"
因为GTK_CELL_RENDERER_ACCEL_MODE_MODIFIER_TAP是在bzg_gtkcellrenderer_grabbing_modifier.patch这个补丁里的,而gtk3-ubuntu编译时并没有打这个补丁,手动打补丁再重新安装下就行了
prepare() {
cd "${srcdir}/gtk+-${pkgver}"
# Apply Ubuntu Patches
echo > "${srcdir}/debian/patches/series"
# Enable patches
# https://bugs.launchpad.net/indicator-messages/+bug/1088162
# Dependency check: grep -R ubuntu-private.h * | cut -d/ -f1
echo 'ubuntu_gtk_custom_menu_items.patch' >> "${srcdir}/debian/patches/series"
# Do not allow offscreen widgets to grab the cursor
echo '016_no_offscreen_widgets_grabbing.patch' >> "${srcdir}/debian/patches/series"
echo '017_no_offscreen_device_grabbing.patch' >> "${srcdir}/debian/patches/series"
# Allow printing to printers advertised using Avahi/Bonjour when CUPS 1.6
echo 'print-dialog-show-options-of-remote-dnssd-printers.patch' >> "${srcdir}/debian/patches/series"
#bug gtkcellrendereraccel
echo 'bzg_gtkcellrenderer_grabbing_modifier.patch' >> "${srcdir}/debian/patches/series"
for i in $(grep -v '#' "${srcdir}/debian/patches/series"); do
msg "Applying ${i} ..."
patch -p1 -i "${srcdir}/debian/patches/${i}"
done
}
最近编辑记录 majia7 (2013-11-29 12:27:22)
离线
页次: 1