LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 891|回复: 6

archlinux编译stardict出错

[复制链接]
发表于 2004-9-20 20:50:51 | 显示全部楼层 |阅读模式
是不是少编译了什么库?哪位兄弟帮帮我。
[php]
stardict.cpp:334: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In member function `void AppCore::TopWinEnterWord(const gchar*)':
stardict.cpp:1065: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In member function `void AppCore:istClick(const gchar*)':
stardict.cpp:1148: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In function `gint save_yourself_cb(GnomeClient*, gint, GnomeRestartStyle, gint, GnomeInteractStyle, gint, void*)':
stardict.cpp:1457: error: `GTK_COMBO' undeclared (first use this function)
make[3]: *** [stardict.o] 错误 1
make[3]: Leaving directory `/temp/stardict-2.4.3/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/temp/stardict-2.4.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/temp/stardict-2.4.3'
make: *** [all] 错误 2
[/php]
发表于 2004-9-20 22:43:12 | 显示全部楼层
打补丁
http://www.gnome-cn.org/developm ... 2.4.patch/file_view

这个问题太普遍了,我没记错的话我已经回答了5遍,建议版主置顶。
 楼主| 发表于 2004-9-21 11:39:39 | 显示全部楼层
谢谢,我去试试看,成了我再上来跟大家说一下。
 楼主| 发表于 2004-9-21 13:09:43 | 显示全部楼层
我试了半天没能试出来怎么用,        不好意思,我是新手,请问Neo.K这个path要怎么用啊?

我在源码目录下patch <  stardict-2.4.3_gtk+-2.4.patch出错:
[PHP]
patching file Makefile.am
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej
patching file Makefile.in
Hunk #1 FAILED at 195.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.in.rej
[/PHP]
发表于 2004-9-21 13:33:22 | 显示全部楼层
patch -p0< stardict-2.4.3_gtk+-2.4.patch

不行的话把-p0改成-p1,-p2-p3试一试。
 楼主| 发表于 2004-9-21 13:47:57 | 显示全部楼层
已解决,谢谢Neo.K。
请问这个p0,p1,p2,p3是什么意思?有什么区别。
发表于 2004-9-21 18:56:41 | 显示全部楼层
# Contributor: ganlu <iamganlu@21cn.com>
pkgname=stardict
pkgver=2.4.3
pkgrel=1
pkgdesc="Dictionary"
url="http://stardict.sourceforge.net/"
depends=('xorg' 'gtk2' 'libgnomeui')
backup=()
source=(http://belnet.dl.sourceforge.net/sourceforge/stardict/$pkgname-$pkgver.tar.bz2 \http://61.153.200.30/lucida/linu ... ct-2.4.3-gtk24.diff)
md5sums=( 'a578782c9df8e985a32069d19bae0960' '1f1a4dbf41d9ec76a5af9499c7451dc4')

build() {
  cd $startdir/src/$pkgname-$pkgver
# enable stardict can be compiled under gtk 2.4.x
  patch -p1 < ../../stardict-2.4.3-gtk24.diff
# ox dict patch
#  patch -p1 < ../../stardict-ox-fix.diff
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$startdir/pkg install
}


Arch很少有编译问题的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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