mint12 编译安装fcitx

Chinese Forum

mint12 编译安装fcitx

Postby bellszhu on Sat Dec 24, 2011 3:59 am

1. ./configure --prefix=/opt/fcitix
2. sudo apt-get install libxpm-dev
3. sudo ln -s /usr/lib/libXtst.so.6.1.0 /usr/lib/libXtst.so
4. make && make install

output:
make all-recursive
make[1]: Entering directory `/home/bells/tools/fcitx-3.6.3'
Making all in doc
make[2]: Entering directory `/home/bells/tools/fcitx-3.6.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bells/tools/fcitx-3.6.3/doc'
Making all in xpm
make[2]: Entering directory `/home/bells/tools/fcitx-3.6.3/xpm'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bells/tools/fcitx-3.6.3/xpm'
Making all in lib
make[2]: Entering directory `/home/bells/tools/fcitx-3.6.3/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bells/tools/fcitx-3.6.3/lib'
Making all in src
make[2]: Entering directory `/home/bells/tools/fcitx-3.6.3/src'
gcc -DPKGDATADIR=\"/opt/fcitx/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -MT InputWindow.o -MD -MP -MF .deps/InputWindow.Tpo -c -o InputWindow.o InputWindow.c
mv -f .deps/InputWindow.Tpo .deps/InputWindow.Po
gcc -DPKGDATADIR=\"/opt/fcitx/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DPKGDATADIR=\"/opt/fcitx/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -MT tools.o -MD -MP -MF .deps/tools.Tpo -c -o tools.o tools.c
tools.c: In function ‘ConvertGBKSimple2Tradition’:
tools.c:1879:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/tools.Tpo .deps/tools.Po
gcc -DPKGDATADIR=\"/opt/fcitx/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -MT about.o -MD -MP -MF .deps/about.Tpo -c -o about.o about.c
mv -f .deps/about.Tpo .deps/about.Po
gcc -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -lXpm -lXtst -lpthread -o fcitx IC.o ime.o InputWindow.o KeyList.o main.o MainWindow.o MyErrorsHandlers.o punc.o py.o PYFA.o pyMapTable.o pyParser.o sp.o tools.o ui.o table.o xim.o qw.o tray.o TrayWindow.o DBus.o vk.o about.o QuickPhrase.o AutoEng.o extra.o internalVersion.o ImeRemote.o ../lib/libXimd.a -lXft -lX11
main.o: In function `main':
/home/bells/tools/fcitx-3.6.3/src/main.c:216: undefined reference to `pthread_create'
InputWindow.o: In function `DrawInputWindow':
/home/bells/tools/fcitx-3.6.3/src/InputWindow.c:450: undefined reference to `XpmCreateImageFromData'
/home/bells/tools/fcitx-3.6.3/src/InputWindow.c:458: undefined reference to `XpmCreateImageFromData'
MainWindow.o: In function `DrawMainWindow':
/home/bells/tools/fcitx-3.6.3/src/MainWindow.c:259: undefined reference to `XpmCreateImageFromData'
/home/bells/tools/fcitx-3.6.3/src/MainWindow.c:202: undefined reference to `XpmCreateImageFromData'
/home/bells/tools/fcitx-3.6.3/src/MainWindow.c:207: undefined reference to `XpmCreateImageFromData'
MainWindow.o:/home/bells/tools/fcitx-3.6.3/src/MainWindow.c:250: more undefined references to `XpmCreateImageFromData' follow
TrayWindow.o: In function `CreateTrayWindow':
/home/bells/tools/fcitx-3.6.3/src/TrayWindow.c:32: undefined reference to `XpmCreatePixmapFromData'
/home/bells/tools/fcitx-3.6.3/src/TrayWindow.c:41: undefined reference to `XpmCreatePixmapFromData'
/home/bells/tools/fcitx-3.6.3/src/TrayWindow.c:60: undefined reference to `XShapeCombineMask'
vk.o: In function `DrawVKWindow':
/home/bells/tools/fcitx-3.6.3/src/vk.c:150: undefined reference to `XpmCreateImageFromData'
about.o: In function `setIcon':
/home/bells/tools/fcitx-3.6.3/src/about.c:193: undefined reference to `XpmCreatePixmapFromData'
/home/bells/tools/fcitx-3.6.3/src/about.c:195: undefined reference to `XpmGetErrorString'
collect2: ld returned 1 exit status
make[2]: *** [fcitx] Error 1
make[2]: Leaving directory `/home/bells/tools/fcitx-3.6.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bells/tools/fcitx-3.6.3'
make: *** [all] Error 2



什么安装不成功呀 ? 我觉得红色部分给出错误提示了,但不知道怎么解决。。。
怎么解决呢??
bellszhu
Level 1
Level 1
 
Posts: 1
Joined: Sat Dec 24, 2011 3:38 am

Linux Mint is funded by ads and donations.
 

Re: mint12 编译安装fcitx

Postby xunxing on Sun Jan 01, 2012 4:55 am

直接在命令行下安装就可以了
给你个地址
linuxmint安装小企鹅输入法
http://www.linuxmint.net/forum.php?mod= ... &fromuid=1
xunxing
Level 1
Level 1
 
Posts: 3
Joined: Wed Jun 29, 2011 7:54 am


Return to 中文 (Chinese)

Who is online

Users browsing this forum: No registered users and 2 guests