LinuxSir.cn,穿越时空的Linuxsir!

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

安装stardict的问题

[复制链接]
发表于 2003-12-25 14:39:57 | 显示全部楼层 |阅读模式
  1. make[3]: Entering directory `/tmp/stardict-2.4.2/src'
  2. source='stardict.cpp' object='stardict.o' libtool=no \
  3. depfile='.deps/stardict.Po' tmpdepfile='.deps/stardict.TPo' \
  4. depmode=gcc3 /bin/sh ../depcomp \
  5. g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall  -DORBIT2=1 -pthread -I/usr/X11R6/include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/libxml2   -DDATADIR=""/usr/local/share"" -DGNOME_ICONDIR=""/usr/local/share/pixmaps"" -DSTARDICT_LOCALEDIR=""/usr/local/share/locale"" -DSTARDICT_DATA_DIR=""/usr/local/share/stardict"" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED  -I/usr/X11R6/include  -g -O2 -c -o stardict.o `test -f 'stardict.cpp' || echo './'`stardict.cpp
  6. In file included from stardict.h:27,
  7.                  from stardict.cpp:35:
  8. prefsdlg.h:42: error: `GtkOptionMenu' was not declared in this scope
  9. prefsdlg.h:42: error: `option_menu' was not declared in this scope
  10. prefsdlg.h:42: error: parse error before `*' token
  11. stardict.cpp: In static member function `static gboolean
  12.    AppCore::on_window_state_event(GtkWidget*, GdkEventWindowState*, AppCore*)':
  13. stardict.cpp:255: error: `GTK_COMBO' undeclared (first use this function)
  14. stardict.cpp:255: error: (Each undeclared identifier is reported only once for
  15.    each function it appears in.)
  16. stardict.cpp: In static member function `static gboolean
  17.    AppCore::vKeyPressReleaseCallback(GtkWidget*, GdkEventKey*, AppCore*)':
  18. stardict.cpp:334: error: `GTK_COMBO' undeclared (first use this function)
  19. stardict.cpp: In member function `void AppCore::TopWinEnterWord(const gchar*)':
  20. stardict.cpp:1065: error: `GTK_COMBO' undeclared (first use this function)
  21. stardict.cpp: In member function `void AppCore::ListClick(const gchar*)':
  22. stardict.cpp:1148: error: `GTK_COMBO' undeclared (first use this function)
  23. stardict.cpp: In function `gint save_yourself_cb(GnomeClient*, int,
  24.    GnomeRestartStyle, int, GnomeInteractStyle, int, void*)':
  25. stardict.cpp:1457: error: `GTK_COMBO' undeclared (first use this function)
  26. make[3]: *** [stardict.o] 错误 1
  27. make[3]: Leaving directory `/tmp/stardict-2.4.2/src'
  28. make[2]: *** [all-recursive] 错误 1
  29. make[2]: Leaving directory `/tmp/stardict-2.4.2/src'
  30. make[1]: *** [all-recursive] 错误 1
  31. make[1]: Leaving directory `/tmp/stardict-2.4.2'
  32. make: *** [all] 错误 2
复制代码

这是什么问题呀?GTK应该没有问题,都装了呀
发表于 2003-12-25 15:22:36 | 显示全部楼层
库版本不对,估计是太老了.装新的gnome2库.
 楼主| 发表于 2003-12-25 16:20:42 | 显示全部楼层
我都是下载的最新的,应该是差了东西,因为我本来只装了kde,根本没装gnome,只是为了装stardict才装了需要的gnome库
主要装了libgnomeui-2.5.0及它所需要的库,大致如下:
libgnomeui-2.5.0
libgnome-2.5.0
libgnome-canvas-2.5.0
libglade-2.3.1
gnome-mime-data-2.4.0
gnome-vfs-2.5.2
GConf-2.5.1
ORBit2-2.9.1
libIDL-0.8.2
版本应该都是很新的了,当然最近又出了新的gnome,就没再下载了
 楼主| 发表于 2003-12-25 16:23:33 | 显示全部楼层
哦,还有
libbonobo-2.4.2.tar.bz2
libbonoboui-2.4.1.tar.bz2
 楼主| 发表于 2003-12-25 17:38:15 | 显示全部楼层
把这些包全部下载了最新的版本来装,还是不行。。。
到底是差什么东西呢?
发表于 2003-12-26 03:22:38 | 显示全部楼层
安装gnome的库,因为关系比较复杂,最好的办法是全都安装,要不然有些装不对你也不知道。现在gnome最好安装2.4.1版的,不要安装2.5.0或2.5.1。
发表于 2004-2-14 02:31:25 | 显示全部楼层

同样的问题( 我另发新贴了 )。

stardict 在怎么安不上呢 ?

[root@tt-ueb1ndrrxfem include]# cd /usr/include/
[root@tt-ueb1ndrrxfem include]# ls libgnome
libgnome-2.0        libgnomecanvas-2.0  libgnomeui-2.0
[root@tt-ueb1ndrrxfem include]# ln -s libgnome-2.0/  libgnome
[root@tt-ueb1ndrrxfem include]# ln -s libgnomeui-2.0/  libgnomeui
[root@tt-ueb1ndrrxfem include]# ls -l libgnome
libgnome            libgnomecanvas-2.0  libgnomeui-2.0
libgnome-2.0        libgnomeui         

#switch directiory
[root@tt-ueb1ndrrxfem stardict-2.4.2]# pwd
/mnt/win_e/2.13dn/stardict-2.4.2
[root@tt-ueb1ndrrxfem stardict-2.4.2]# ls
stardict-2.4.2-1.i386.rpm*
stardict-cdict-gb-2.4.2-1.noarch.rpm*
stardict-cedict-big5-2.4.2-1.noarch.rpm*
stardict-langdao-ce-gb-2.4.2-1.noarch.rpm*
stardict-langdao-ec-gb-2.4.2-1.noarch.rpm*
stardict-oxford-gb-2.4.2-1.noarch.rpm*
stardict-xdict-ce-gb-2.4.2-1.noarch.rpm*
stardict-xdict-gb-2.1.0-1.noarch.rpm*
[root@tt-ueb1ndrrxfem stardict-2.4.2]# rpm -ihv *.rpm
error: Failed dependencies:
        libgnome >= 2.2.0 is needed by stardict-2.4.2-1
        libgnomeui >= 2.2.0 is needed by stardict-2.4.2-1
[root@tt-ueb1ndrrxfem stardict-2.4.2]#
发表于 2004-2-14 05:47:11 | 显示全部楼层
rpm的话,直接--force就行了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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