Page 1 of 1

StarDict 2.4.1 Complie error!

Posted: Tue Jul 20, 2004 8:53 pm
by dxcdxc

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall  -DORBIT2=1 -pthread -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/libxml2   -DDATADIR=\""/usr/share"\" -DGNOME_ICONDIR=\""/usr/share/pixmaps"\" -DSTARDICT_LOCALEDIR=\""/usr/share/locale"\" -DSTARDICT_DATA_DIR=\""/usr/share/stardict"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED  -I/usr/X11R6/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -c -o mainwin.o `test -f 'mainwin.cpp' || echo './'`mainwin.cpp
In file included from stardict.h:26,
                 from stardict.cpp:35:
prefsdlg.h:42: error: `GtkOptionMenu' was not declared in this scope
prefsdlg.h:42: error: `option_menu' was not declared in this scope
prefsdlg.h:42: error: parse error before `*' token
stardict.cpp: In static member function `static gboolean
   AppCore::on_window_state_event(GtkWidget*, GdkEventWindowState*, AppCore*)':
stardict.cpp:246: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp:246: 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:327: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In member function `void AppCore::TopWinEnterWord(const gchar*)':
stardict.cpp:1050: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In member function `void AppCore::ListClick(const gchar*)':
stardict.cpp:1133: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In function `gint client_die_cb(GnomeClient*, void*)':
stardict.cpp:1416: warning: no return statement in function returning non-void
stardict.cpp: In function `gint save_yourself_cb(GnomeClient*, int,
   GnomeRestartStyle, int, GnomeInteractStyle, int, void*)':
stardict.cpp:1439: error: `GTK_COMBO' undeclared (first use this function)
make[3]: *** [stardict.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from stardict.h:26,
                 from mainwin.cpp:6:
prefsdlg.h:42: error: `GtkOptionMenu' was not declared in this scope
prefsdlg.h:42: error: `option_menu' was not declared in this scope
prefsdlg.h:42: error: parse error before `*' token
mainwin.cpp: In member function `void TopWin::Create(GtkWidget*)':
mainwin.cpp:71: error: `gtk_combo_new' undeclared (first use this function)
mainwin.cpp:71: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
mainwin.cpp:74: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp:74: error: `gtk_combo_set_case_sensitive' undeclared (first use
   this function)
mainwin.cpp:75: error: `gtk_combo_disable_activate' undeclared (first use this
   function)
mainwin.cpp:76: error: `gtk_combo_set_use_arrows' undeclared (first use this
   function)
mainwin.cpp: In static member function `static gboolean
   TopWin::on_back_button_press(GtkWidget*, GdkEventButton*, TopWin*)':
mainwin.cpp:165: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `void TopWin::do_back()':
mainwin.cpp:262: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `void TopWin::SetText(const gchar*)':
mainwin.cpp:581: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `void TopWin::SetText_without_notify(const
   gchar*)':
mainwin.cpp:592: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `const gchar* TopWin::GetText()':
mainwin.cpp:598: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `void TopWin::GrabFocus()':
mainwin.cpp:603: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `void TopWin::TextSelectAll()':
mainwin.cpp:608: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `gboolean TopWin::TextSelected()':
mainwin.cpp:613: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In member function `void TopWin::InsertHisList(const gchar*)':
mainwin.cpp:657: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp:665: error: `gtk_combo_set_popdown_strings' undeclared (first use
   this function)
mainwin.cpp: In member function `void TopWin::InsertBackList(const gchar*)':
mainwin.cpp:684: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In static member function `static void
   BottomWin::on_internetsearch_menu_item_activate(GtkMenuItem*, gchar*)':
mainwin.cpp:1860: error: `GTK_COMBO' undeclared (first use this function)
mainwin.cpp: In static member function `static void
   BottomWin::InternetSearchCallback(GtkButton*, BottomWin*)':
mainwin.cpp:1898: error: `GTK_COMBO' undeclared (first use this function)
make[3]: *** [mainwin.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/stardict-2.4.1/work/stardict-2.4.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/stardict-2.4.1/work/stardict-2.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/stardict-2.4.1/work/stardict-2.4.1'
make: *** [all] Error 2

!!! ERROR: app-dicts/stardict-2.4.1 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure
到底哪出問題了~~~ :roll:

Posted: Tue Jul 20, 2004 11:38 pm
by scsi
stardict已經出到2.4.3版了…
你可以抓新到的下來compile試試

Posted: Fri Aug 06, 2004 5:10 pm
by cyberia46
我也出現同樣的問題
emerge stardict不行
用stardict2.4.3 tarball安裝也不行
出現跟上一位前輩同樣的錯誤


libgnome 裝了
libgnomeui 裝了
libbonobo 裝了
bonobo-activation 怪了跟我說沒有libbonobo明明就裝了^^|||

先前用icewm都沒問題後來換成kde就一堆問題出現
到底是那邊出問題呢

Posted: Sat Aug 07, 2004 2:19 pm
by scsi
cyberia46 wrote:我也出現同樣的問題
emerge stardict不行
用stardict2.4.3 tarball安裝也不行
出現跟上一位前輩同樣的錯誤


libgnome 裝了
libgnomeui 裝了
libbonobo 裝了
bonobo-activation 怪了跟我說沒有libbonobo明明就裝了^^|||

先前用icewm都沒問題後來換成kde就一堆問題出現
到底是那邊出問題呢
你看看這幾個套件是不是都有裝到

Code: Select all

RDEPEND=">=gnome-base/libbonobo-2.2.0
    >=gnome-base/libgnome-2.2.0
    >=gnome-base/libgnomeui-2.2.0
    >=sys-libs/zlib-1.1.4
    >=gnome-base/gconf-1.2
    >=dev-libs/popt-1.7
    >=gnome-base/ORBit2-2.6
    >=x11-libs/gtk+-2"


Posted: Sat Aug 07, 2004 9:16 pm
by dxcdxc
或許可以試試這裡的修正

另 我的電腦現在是WIN當下無法測試 :)

Posted: Sat Aug 07, 2004 10:37 pm
by benny
解決方法:
cat /etc/portage/package.keywords
app-dicts/stardict ~x86
stardict-xdict-en-zh-big5 ~x86
然後 emerge 就好了

Posted: Wed Oct 20, 2004 8:38 am
by lundi
請問它的字典有cdict 跟 xdict,有何不同嗎?

Posted: Wed Oct 20, 2004 11:03 am
by d2207197
lundi wrote:請問它的字典有cdict 跟 xdict,有何不同嗎?
就是不同套字典阿
我自己都是看 oxford,內容比較多