|
|
我的系统是FC3,内核是2.6.9
我开始的时候安装了stardict2.4.5,没有问题,但是在网上找不到2.4.5的词典,大都是2.4.2的,所以我将安装在/usr/share/stardici的目录直接删除了,然后在编译2.4.2的时候出错,下面是编译时的出错信息:
make all-recursive
make[1]: Entering directory `/root/stardict-2.4.2'
Making all in src
make[2]: Entering directory `/root/stardict-2.4.2/src'
Making all in pixmaps
make[3]: Entering directory `/root/stardict-2.4.2/src/pixmaps'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/stardict-2.4.2/src/pixmaps'
Making all in sounds
make[3]: Entering directory `/root/stardict-2.4.2/src/sounds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/stardict-2.4.2/src/sounds'
Making all in tools
make[3]: Entering directory `/root/stardict-2.4.2/src/tools'
make[4]: Entering directory `/root/stardict-2.4.2/src/tools'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/stardict-2.4.2/src/tools'
make[3]: Leaving directory `/root/stardict-2.4.2/src/tools'
Making all in win32
make[3]: Entering directory `/root/stardict-2.4.2/src/win32'
Making all in nsis
make[4]: Entering directory `/root/stardict-2.4.2/src/win32/nsis'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/stardict-2.4.2/src/win32/nsis'
make[4]: Entering directory `/root/stardict-2.4.2/src/win32'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/stardict-2.4.2/src/win32'
make[3]: Leaving directory `/root/stardict-2.4.2/src/win32'
make[3]: Entering directory `/root/stardict-2.4.2/src'
source='stardict.cpp' object='stardict.o' libtool=no \
depfile='.deps/stardict.Po' tmpdepfile='.deps/stardict.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -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/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config -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
In file included from stardict.h:27,
from stardict.cpp:35:
prefsdlg.h:42: error: `GtkOptionMenu' has not been declared
prefsdlg.h:42: error: ISO C++ forbids declaration of `option_menu' with no type
stardict.cpp: In static member function `static gboolean AppCore: n_window_state_event(GtkWidget*, GdkEventWindowState*, AppCore*)':
stardict.cpp:255: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp:255: error: (Each undeclared identifier is reported only once for each function it appears in.)
stardict.cpp: In static member function `static gboolean AppCore::vKeyPressReleaseCallback(GtkWidget*, GdkEventKey*, AppCore*)':
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] Error 1
make[3]: Leaving directory `/root/stardict-2.4.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/stardict-2.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/stardict-2.4.2'
make: *** [all] Error 2
我是个新手,哪位大大能告诉我是什么问题,能解决么? |
|