cppblog對firefox的支持很不好啊,相當(dāng)?shù)牟缓?..
使用gcc version 4.4.2編譯stardict時會報類似如下的錯:
data.cpp: In destructor ‘DictBase::~DictBase()’:
data.cpp:40: error: ‘fclose’ was not declared in this scope
data.cpp: In member function ‘gchar* DictBase::GetWordData(guint32, guint32)’:
data.cpp:50: error: ‘fseek’ was not declared in this scope
data.cpp:57: error: ‘fread’ was not declared in this scope
...
官方的patch并不完整,打了之后還會報錯,我重新生成了一個補(bǔ)丁。
注意:由于我disable一些插件,所以這個補(bǔ)丁也有可能是不完整的,但如果你的configure選項和我一樣的話,那應(yīng)該不會有錯了。
我的編譯選項如下:
1> export PKG_CONFIG=/usr/bin/pkg-config
2> ./configure --prefix=/usr --disable-espeak --disable-festival --disable-spell --disable-gucharmap
3> make
4> sudo make install
附件為diff文件。
patchrunsisi@HUST