QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1592|回复: 1

求助,关于MurphyPinyin移植到x86上的问题

[复制链接]
发表于 2005-9-24 16:42:10 | 显示全部楼层 |阅读模式
我的Qtopia环境已经弄好了,konqueror-embedded也弄好了,现在要弄MurphyPinyin,
我先去下载了:
MurphyPinyin-0.03-src.tgz
murphytalk.pinyin_0.03_arm.ipk
因为我要弄的是X86的,所以只用到MurphyPinyin-0.03-src.tgz
我的环境如下:
Mandrake Linux 10.1
gcc version 3.3.2 (Mandrakelinux 10.0 3.3.2-9mdk)
2.6.8.1-12mdk(kernel)
tmake 1.13
qt-x11-free-2.3.2
qt-embedded-free-2.3.10
qtopia-free-2.1.1
我的过程大概如下:
tar xfvz MurphyPinyin-0.03-src.tgz
cd MurphyPinyin
mv Makefile.x86 Makefile
tmake -o Makefile MurphyPinyin.pro
make
信息如下,不知道是不是成功了:

g++ -c -pipe -Wall -W -O2 -fPIC -DNO_DEBUG -I/home/denixleen/Trolltech/qtopia-free-2.1.1-debug/include -I/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/include -o PinyinFrame.o PinyinFrame.cpp
In file included from /usr/include/c++/3.3.2/backward/algo.h:59,
                 from scim/scim_pinyin.h:32,
                 from PinyinEngine.h:29,
                 from PinyinFrame.h:24,
                 from PinyinFrame.cpp:20:
/usr/include/c++/3.3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
PinyinFrame.cpp: In member function `virtual bool QPinyinFrame::filter(int, int, int, bool, bool)':
PinyinFrame.cpp:210: warning: unused parameter `int modifiers'
PinyinFrame.cpp:210: warning: unused parameter `bool autoRepeat'
g++ -c -pipe -Wall -W -O2 -fPIC -DNO_DEBUG -I/home/denixleen/Trolltech/qtopia-free-2.1.1-debug/include -I/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/include -o PinyinImpl.o PinyinImpl.cpp
In file included from /usr/include/c++/3.3.2/backward/algo.h:59,
                 from scim/scim_pinyin.h:32,
                 from PinyinEngine.h:29,
                 from PinyinFrame.h:24,
                 from PinyinImpl.cpp:25:
/usr/include/c++/3.3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
g++ -c -pipe -Wall -W -O2 -fPIC -DNO_DEBUG -I/home/denixleen/Trolltech/qtopia-free-2.1.1-debug/include -I/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/include -o PinyinEngine.o PinyinEngine.cpp
In file included from /usr/include/c++/3.3.2/backward/algo.h:59,
                 from scim/scim_pinyin.h:32,
                 from PinyinEngine.h:29,
                 from PinyinEngine.cpp:24:
/usr/include/c++/3.3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
g++ -c -pipe -Wall -W -O2 -fPIC -DNO_DEBUG -I/home/denixleen/Trolltech/qtopia-free-2.1.1-debug/include -I/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/include -o scim/scim_pinyin.o scim/scim_pinyin.cpp
In file included from /usr/include/c++/3.3.2/backward/algo.h:59,
                 from scim/scim_pinyin.h:32,
                 from scim/scim_pinyin.cpp:33:
/usr/include/c++/3.3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
scim/scim_pinyin.cpp:56: warning: missing initializer for member `utf8_table::cval'
scim/scim_pinyin.cpp:56: warning: missing initializer for member `utf8_table::shift'
scim/scim_pinyin.cpp:56: warning: missing initializer for member `utf8_table::lmask'
scim/scim_pinyin.cpp:56: warning: missing initializer for member `utf8_table::lval'
scim/scim_pinyin.cpp: In member function `bool PinyinTable:utput(std:stream&, bool) const':
scim/scim_pinyin.cpp:966: warning: unused variable `unsigned char bytes[8]'
scim/scim_pinyin.cpp: In member function `void PinyinTable::refresh(short unsigned int, unsigned int, PinyinKey)':
scim/scim_pinyin.cpp:1249: warning: unused variable `uint32 freq'
scim/scim_pinyin.cpp:1249: warning: unused variable `uint32 delta'
scim/scim_pinyin.cpp: In member function `int PinyinTable::find_keys(PinyinKeyVector&, short unsigned int)':
scim/scim_pinyin.cpp:1299: warning: unused parameter `ucs4_t code'
/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/bin/moc PinyinFrame.h -o moc_PinyinFrame.cpp
g++ -c -pipe -Wall -W -O2 -fPIC -DNO_DEBUG -I/home/denixleen/Trolltech/qtopia-free-2.1.1-debug/include -I/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/include -o moc_PinyinFrame.o moc_PinyinFrame.cpp
In file included from /usr/include/c++/3.3.2/backward/algo.h:59,
                 from scim/scim_pinyin.h:32,
                 from PinyinEngine.h:29,
                 from PinyinFrame.h:24,
                 from moc_PinyinFrame.cpp:16:
/usr/include/c++/3.3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
rm -f libmurphypinyin.so.0.0.1 libmurphypinyin.so libmurphypinyin.so.0 libmurphypinyin.so.0.0
g++ -shared -Wl,-soname,libmurphypinyin.so.0 -o libmurphypinyin.so.0.0.1 PinyinFrame.o PinyinImpl.o PinyinEngine.o scim/scim_pinyin.o moc_PinyinFrame.o  -L/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib -L/usr/X11R6/lib -lqpe -lqt -lXext -lX11 -lm
ln -s libmurphypinyin.so.0.0.1 libmurphypinyin.so
ln -s libmurphypinyin.so.0.0.1 libmurphypinyin.so.0
ln -s libmurphypinyin.so.0.0.1 libmurphypinyin.so.0.0
rm -f DIST/libmurphypinyin.so.0.0.1
rm -f DIST/libmurphypinyin.so
rm -f DIST/libmurphypinyin.so.0
rm -f DIST/libmurphypinyin.so.0.0
mv libmurphypinyin.so.0.0.1 libmurphypinyin.so libmurphypinyin.so.0 libmurphypinyin.so.0.0 DIST/

这样是不是把muiphypinyin编译成功了?!
然后,我把DIST目录下的so都拷贝到qtopia-free-2.1.1/image/opt/Qtopia/plugins/inputmethods下,
然后运行,出错了,信息如下:

Connected to VFB server: 240 x 320 x 32
Debug: QMemoryFile::QMemoryFile("/home/denixleen/Trolltech/qtopia-free-2.1.1-debug/image/opt/Qtopia/etc/dict/words-en_US.dawg")
Debug: Created QMemoryfile for /home/denixleen/Trolltech/qtopia-free-2.1.1-debug/image/opt/Qtopia/etc/dict/words-en_US.dawg with a size of 422452
Debug: QDawg: Reading new dawg file format
qpe: symbol lookup error: /home/denixleen/Trolltech/qtopia-free-2.1.1-debug/image/opt/Qtopia/plugins/inputmethods/libmurphypinyin.so: undefined symbol: _ZN15PinyinPhraseKeyC1Ev

请问怎么解决,谢谢了,
发表于 2005-9-24 21:54:31 | 显示全部楼层
I think you can make great efforts on this and give us a response about the detailed steps. We will appreciate your donation.  
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 16:39 , Processed in 0.065651 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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