[問題] 自行編譯安裝 libchewing 和 ibus-chewing,無法打中文

1,396 views
Skip to first unread message

彭聖嚴

unread,
Apr 15, 2016, 2:30:03 PM4/15/16
to Chewing IM Development
大家好,

我想要 自行編譯 libchewing 和 ibus-chewing, 不過發現編譯、安裝完後的輸入法無法打中文。
因此想要詢問大家,看是不是有某個地方做錯,或是沒有link好.

系統:  全新灌在 VMware Workstation 12 player 的 lubuntu-15.10-desktop-amd64

步驟:
1.剛灌完的lubuntu會進行軟體更新,更新完後內建的 Fcitx 有 新酷音輸入法,也可以打中文.

 2.安裝相關的函式庫:
 
sudo apt-get install ibus-clutter ibus-doc ibus-qt4 ibus
sudo apt-get install build-essential
sudo apt-get install libsqlite3-dev
sudo apt-get install cmake
sudo apt-get install git
 
    此時 ibus 沒有  新酷音輸入法

3.安裝 libchewing
 
git clone https://github.com/chewing/libchewing.git
cmake .
make
sudo make install

4.安裝 ibus-chewing
 
必需的函示庫
sudo apt-get install gob2
sudo apt-get install pkg-config
sudo apt-get install libgtk2.0-dev
sudo apt-get install libibus-1.0-dev
sudo apt-get install libxtst-dev

安裝流程 
git clone https://github.com/chewing/ibus-chewing.git
git submodule init
git submodule update
ln -s cmake-fedora/Modules ./
cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DLIBEXEC_DIR='/usr/libexec'
 //提示訊息
[Off] zanata (python client) not found! zanata support disabled.
[Off] zanata.ini is not found! Zanata support disabled.
 
make
sudo make install
make install_schemas
 
5.登出 

6.ibus設定 
 
ibus-setup
新增 chewing

7.結果

ibus: 
可以順利切換英語和新酷音,新酷音也可以開啟輸入法的設定功能,
不過新酷音無法輸入中文字, 只能輸入英文字母

fctix:
原先的新酷音消失了!

想請問大家上面的安裝過程有那一步設定錯誤,或是安裝完後還需要進一步的設定呢?

謝謝大家 

ChangZhuo Chen (陳昌倬)

unread,
Apr 16, 2016, 3:03:11 AM4/16/16
to chewin...@googlegroups.com
On Fri, Apr 15, 2016 at 11:30:03AM -0700, 彭聖嚴 wrote:
> 大家好,
>
> 我想要 自行編譯 libchewing 和 ibus-chewing, 不過發現編譯、安裝完後的輸入法無法打中文。
> 因此想要詢問大家,看是不是有某個地方做錯,或是沒有link好.

Please help to check if linker can find libchewing via the following
command:

ldconfig -p|grep chewing
--
ChangZhuo Chen (陳昌倬) <czc...@czchen.org>
http://czchen.info/
Key fingerprint = EC9F 905D 866D BE46 A896 C827 BE0C 9242 03F4 552D
BA04 346D C2E1 FE63 C790 8793 CC65 B0CD EC27 5D5B
signature.asc

彭聖嚴

unread,
Apr 16, 2016, 10:20:49 AM4/16/16
to Chewing IM Development, czc...@czchen.org
謝謝您的回覆!
我輸入指令可以得到下面的資訊:

ldconfig -p|grep chewing
    libchewing.so.3 (libc6,x86-64) => /usr/local/lib/libchewing.so.3
    libchewing.so.3 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libchewing.so.3
    libchewing.so (libc6,x86-64) => /usr/local/lib/libchewing.so



ChangZhuo Chen (陳昌倬)於 2016年4月16日星期六 UTC+8下午3時03分11秒寫道:

彭聖嚴

unread,
Apr 21, 2016, 7:55:34 AM4/21/16
to Chewing IM Development, czc...@czchen.org
我改用 automake 成功了!

系統: 全新灌在 VMware Workstation 12 player 的 lubuntu-14.04.4-desktop-amd64

  1. 安裝完 &軟體自動更新
  1. sudo apt-get install fcitx fcitx-libs-dev
  1. 切換鍵盤輸入法系統 從 ibus => fcitx  ( 右上角齒輪 > 系統設定值 > 語言支援 )
  1. 登入再登出
  1. sudo apt-get purge ibus-chewing
  1. sudo apt-get autoremove // 移除 libchewing3
  1. sudo apt-get install autoconf automake libtool cmake libclang-dev 
  • sudo apt-get install  build-essential libsqlite3-dev cmake git  pkg-config
  • sudo apt-get install texinfo

  1. libchewing installation (不要用cmake! )
  • cd libchewing
  • ./autogen.sh
  • ./configure --prefix=/usr
  • make
  • sudo make install

  1. fcitx-chewing installation
  • cd fcitx-chewing
  • mkdir build; cd build
  • cmake .. 
  • make
  • sudo make install

  1. 點擊右上角小鍵盤 > 重新啟動
  1. 應該就可以在右上角小鍵盤 > 輸入法 看到新酷音了(灑花)

================================================================

想請問要怎麼知道 automake 跟 cmake 有哪些地方有差別,

看能不能修改CMakeList , 讓cmake 也可以用.


彭聖嚴於 2016年4月16日星期六 UTC+8下午10時20分49秒寫道:

陳媁涵

unread,
Apr 26, 2016, 3:57:49 AM4/26/16
to Chewing IM Development
Hello:

I have encountered some problems when i tried to build ibus-chewing from git:
 when i tried to do this and i got this message :

$ make install_schemas 

 make: *** No rule to make target 'install_schemas'. Stop.

and there was something wrong with "/usr/libexec/ibus-setup-chewing" (internal error) when i added chewing in Text Entity:


 i also tried to check the linker:

$ ldconfig -p|grep chewing 
  • libchewing.so.3 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libchewing.so.3 libchewing.so.3 (libc6,x86-64) => /usr/lib/libchewing.so.3 libchewing.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libchewing.so libchewing.so (libc6,x86-64) => /usr/lib/libchewing.so

does i do something wrong, or miss anything? 

i can't type Chinese by using chewing now.

thanks. 

彭聖嚴於 2016年4月16日星期六 UTC+8上午2時30分03秒寫道:

彭聖嚴

unread,
Apr 26, 2016, 10:37:59 AM4/26/16
to Chewing IM Development
Hi,

make install_schemas  , 應該要是 sudo make install_schemas 

然後看libchewing.so 的位置,應該是用 cmake install libchewing, (我用cmake 都會失敗...)

下面是我剛剛安裝 ibus-chewing 的步驟, 提供你參考

系統: 全新灌在 VMware Workstation 12 player 的 ubuntu-14.04.4-desktop-amd64


1.安裝完 &軟體自動更新
2.新增英文輸入法(確保等等把ibus-chewing移除後,還有輸入法可以用!?)
3.sudo apt-get purge ibus-chewing
4.sudo apt-get autoremove // 移除 libchewing3
5.sudo apt-get install autoconf automake libtool cmake libclang-dev 
   sudo apt-get install  build-essential libsqlite3-dev cmake git  pkg-config
   sudo apt-get install texinfo

6.libchewing installation (不要用cmake! 怒!)
   cd libchewing
   ./autogen.sh
   ./configure --prefix=/usr
   make
   sudo make install

7.sudo apt-get install gob2 pkg-config libgtk2.0-dev libibus-1.0-dev libxtst-dev

8.ibus-chewing
   cd ibus-chewing
   git submodule init
   git submodule update
   ln -s cmake-fedora/Modules ./
   cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DLIBEXEC_DIR='/usr/libexec'
   make 
   sudo make install
   sudo make install_schemas

9.ibus-setup 應該就可以看到 新酷音的icon出現了
10.點選右上角的輸入法符號,文字輸入設定,新增 chewing(可以搜尋得到)
     可以用新酷音了~

陳媁涵於 2016年4月26日星期二 UTC+8下午3時57分49秒寫道:

陳媁涵

unread,
Apr 27, 2016, 9:01:47 AM4/27/16
to Chewing IM Development
Hi: 

Thanks for your reply.

I checked the process and I noticed that the only difference between us is the different git source.

At first, I tried the definite's version (https://github.com/definite/ibus-chewing)
but it would have an error after "sudo make install_schemas" which is "make: *** No rule to make target 'install_schemas'. Stop."

However, when I tried the git source that you used  ( https://github.com/chewing/ibus-chewing ), it worked. 

The reason that I choose the definite/ibus-chewing first is that there are some update information recently while the chewing/ibus-chewing just updated in several years ago.  

Should I make an issue to definite/ibus-chewing about this? 

or there is something i didn't notice so that I can't build it successfully? 

彭聖嚴於 2016年4月16日星期六 UTC+8上午2時30分03秒寫道:
Reply all
Reply to author
Forward
0 new messages