Re: Issue 81 in ucimf: 編譯通過,無法使用

9 views
Skip to first unread message

uc...@googlecode.com

unread,
Apr 14, 2011, 11:13:23 PM4/14/11
to uc...@googlegroups.com
Updates:
Summary: 編譯通過,無法使用
Status: Accepted
Owner: MatLinuxer2
Labels: Distro-Fedora Type-Defect Part-libucimf

Comment #2 on issue 81 by MatLinuxer2: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

感謝你的 Bug report!.

目前猜測和編譯時下的參數跟設定路徑有關,希望可以再跟你詢問一下下列幾項資訊:

1. 各套件編譯時產生的 config.log
2. `ldd fbterm_ucimf`
3. openvanilla.so 的位置 ( 預設是: /usr/lib/ucimf/openvanilla.so )

sincerely, Mat.

uc...@googlecode.com

unread,
Apr 14, 2011, 11:42:33 PM4/14/11
to uc...@googlegroups.com

Comment #3 on issue 81 by yaf...@gmail.com: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

好的,大大你回应速度真是快,赞一个

1. 各套件編譯時產生的 config.log
------------------------------------------------------------------
附件已上传


2. `ldd fbterm_ucimf`
------------------------------------------------------------------
我在编译的目录下使用了两次这个命令,输出在附件


3. openvanilla.so 的位置 ( 預設是: /usr/lib/ucimf/openvanilla.so )
------------------------------------------------------------------
没有安装到预设位置,而是在/usr/local/lib/ucimf/openvanilla.so



Attachments:
libucimf-2.3.8_config.log 36.4 KB
openvanilla-modules-0.8.0_14_config.log 42.3 KB
ucimf-openvanilla-2.10.11_config.log 32.2 KB
fbterm_ucimf-0.2.9_config.log 36.8 KB
ldd_fbterm_cimf_mesg_0 581 bytes
ldd_fbterm_cimf_mesg_1 581 bytes
ldd_fbterm_cimf_mesg_diff 80 bytes

uc...@googlecode.com

unread,
Apr 15, 2011, 7:44:11 AM4/15/11
to uc...@googlegroups.com

Comment #4 on issue 81 by MatLinuxer2: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

非常感謝你提供的除錯訊息跟 feedback!!

目前想到有 4 項可能的線索:
1. test.png 快照圖中,ucimf 有啟動起來,不知道你在該 Ctrl-Space on 的模式
下,按 "F9" 的鍵,會不會有其他反應。還是按 Ctrl-Space 開啟後,程式就中止了?

2. fbterm_ucimf 所在的目錄是否在 PATH 的搜尋路徑裡?

3. 我想再問一下 ~/.ucimf-log 的訊息內容。(正常啟動的訊息大概如附件)

4. openvanilla-modules-0.8.0_14 是相對較舊的版本,不確定是否相容於
ucimf-openvanilla-2.10.11? 為此我剛剛更新了 openvanilla-modules 至新版的
0.9.1 不知道是否願意更新一試?



编译fbterm_ucimf时报错找不到libucimf,但是我已经安装了
然后查看libucimf安装信息,发现在/usr/lib/pkgconfig里,于是加
./configure --prefix=/usr/lib/pkgconfig 就能编译通过
------------------------------------------------------------------
fbterm_ucimf 在編譯時,會用到 `pkg-config --cflags --libs libucimf` 的部
分,有可能是 libucimf.pc 的設定檔沒有裝在 /usr/lib/pkgconfig 裡面,因此而找
不到相關設定



结果Ctrl + Space 报错, can't execute IM program fbterm_ucimf
------------------------------------------------------------------
這個錯誤訊息,應該是找不到 fbterm_ucimf 這個指令的關係。將 fbterm_ucimf 的所
在目錄加進 PATH 的環境參數,或是將 fbterm_ucimf 安裝進預設會搜尋到的目錄
下,如 /usr/bin/, /usr/local/bin ,應該可以解決路徑問題



Attachments:
.ucimf-log 755 bytes

uc...@googlecode.com

unread,
Apr 16, 2011, 10:51:09 AM4/16/11
to uc...@googlegroups.com

Comment #5 on issue 81 by yaf...@gmail.com: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

1. 启动后进程还是在运行,只是无法录入中午,还有整个框架模糊不清

2. /usr/local/bin是在$PATH里,不过我确实遇到过类似的困扰
就是安装的h3c客服端linux1x命令也在此路径下,只有root权限才能找到,普通
sudoer用户能自动补全,运行却报错说命令为找到

3. ucimf-log和正常的确实不同,见附件

4. 好的,我待会就编译测试

----------------------------------------------------------------------------------
我感觉是lib那个地方出的问题,也不知对不对


Attachments:
ucimf-log 116 bytes

uc...@googlecode.com

unread,
Apr 16, 2011, 11:24:29 AM4/16/11
to uc...@googlegroups.com

Comment #6 on issue 81 by yaf...@gmail.com: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

我编译openvanilla-modules时./configure
发现输出显示没有开启对zh-CN的支持,只有asia什么的

补充:
你说的“fbterm_ucimf 在編譯時,會用到 `pkg-config --cflags --libs libucimf`
的部分,有可能是 libucimf.pc 的設定檔沒有裝在 /usr/lib/pkgconfig 裡面,因此
而找不到相關設定”
---------------------------------------------------------------------------
我看了下目录, 在/usr/lib/pkgconfig 目录下是有 ibucimf.pc这个文件



uc...@googlecode.com

unread,
Apr 17, 2011, 2:50:30 AM4/17/11
to uc...@googlegroups.com

Comment #7 on issue 81 by MatLinuxer2: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

收到。非常感謝你附上的資訊!

1.我剛剛看了你的 ucimf-log 的內容,發現 /usr/lib/ucimf/ 下只有抓到
dummy.so。我想你可以試試將 openvanilla.so 複製到 /usr/lib/ucimf/ 讓
libucimf 來載入 openvanill 的輸入法。

`cp /usr/local/lib/ucimf/openvanilla.so /usr/lib/ucimf/openvanilla.so`

之後載入後再按 F9 ,我想應該就可以看到 openvanilla 相關的輸入法了。

2. openvanill-modules 在編譯,可以使用

`./configure --enable-zh_CN`

的編譯參數,如此就會掛入 zh_CN 相關的輸入法表格

3. 想請你幫忙執行一下 `pkg-config --cflags --libs libucimf` 的結果如何?
我這裡的執行結果大致像這樣:

====
mat@localhost ~ $ pkg-config --libs --cflags libucimf
-I/usr/include/freetype2 -lucimf -lfreetype -lfontconfig
====

thanks!

uc...@googlecode.com

unread,
Apr 17, 2011, 12:07:57 PM4/17/11
to uc...@googlegroups.com

Comment #8 on issue 81 by yaf...@gmail.com: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

好的,谢谢
1.执行后界面不再闪烁,可是输入完全无反应
用CTRL+SPACE切换会出现两个奇怪的字符,可能是0XFF

2.加参数编译后#make install有报错
/usr/bin/install: will not overwrite just-created
`/usr/local/share/openvanilla/OVIMGeneric/pinyin.cin' with `pinyin.cin'
/usr/bin/install: will not overwrite just-created
`/usr/local/share/openvanilla/OVIMGeneric/pinyin0.cin' with `pinyin0.cin'
/usr/bin/install: will not overwrite just-created
`/usr/local/share/openvanilla/OVIMGeneric/shuangpin.cin' with
`shuangpin.cin'
/usr/bin/install: will not overwrite just-created
`/usr/local/share/openvanilla/OVIMGeneric/wubizixing2.cin' with
`wubizixing2.cin'

make[2]: *** [install-ovimgenericDATA] Error 1
make[2]: Leaving directory
`/home/coldfire/Downloads/openvanilla-modules-0.9.1/DataTables'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory
`/home/coldfire/Downloads/openvanilla-modules-0.9.1/DataTables'
make: *** [install-recursive] Error 1


3.执行结果是一样的
[coldfire@localhost ~]$ pkg-config --cflags --libs libucimf
-I/usr/include/freetype2 -lucimf -lfreetype -lfontconfig


Attachments:
.ucimf-log 3.4 KB

uc...@googlecode.com

unread,
Apr 17, 2011, 1:16:18 PM4/17/11
to uc...@googlegroups.com
Updates:
Labels: user-yafc18

Comment #9 on issue 81 by MatLinuxer2: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

非常感謝你的 Feedback !!

1. 多餘字元的問題我也有遇到, 不過目前還沒有找到解決方法,
http://code.google.com/p/ucimf/issues/detail?id=77

另外,從 .ucimf-log 錯誤訊息來看,應該是舊的 openvanilla-modules 跟新的
ucimf-openvanilla 的不相容,換成新的 openvanilla-modules (0.9.x) 我想應該就
可以了。

2. 很抱歉打包時漏了重複檔名的檢查,請你再加上 --disable-asia 的參數試試如下:

`./configure --enable-zh_CN --disable-asia`

3. 另外,想請你試試下列這一整行指令

echo "int main(){};" > /tmp/test.cc; g++ `pkg-config --libs --cflags
libucimf` /tmp/test.cc; rm /tmp/test.cc

如果出現 "cannot find -lucimf" 之類的錯誤訊息,那可能和系統的
/etc/ld.so.conf 等 linker 相關的設定有關。
如果路徑設定正確,那請試試看執行一次 ldconfig 來更新 linker search
database(有可能新增的 libucimf.so 還沒更新到search database裡)。


uc...@googlecode.com

unread,
Apr 23, 2011, 5:35:22 AM4/23/11
to uc...@googlegroups.com

Comment #10 on issue 81 by yaf...@gmail.com: 編譯通過,無法使用
http://code.google.com/p/ucimf/issues/detail?id=81

不好意思,没有收到邮件通知,我还以为你没有回复呢
明天我测试下大大你的方法,看情况如何
前端时间我的替代方案就是使用emacs和vim输入法扩展


Reply all
Reply to author
Forward
0 new messages