Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[問題] 自行編譯 fcitx-chewing 和 libchewing #3

Closed
ShengYenPeng opened this issue Apr 19, 2016 · 1 comment
Closed

[問題] 自行編譯 fcitx-chewing 和 libchewing #3

ShengYenPeng opened this issue Apr 19, 2016 · 1 comment

Comments

@ShengYenPeng
Copy link

我想要自行編譯 libchewing 和 fcitx-chewing,
不過我發現編譯、安裝後的輸入法無法打出中文,
想要詢問是否我的安裝流程有問題呢?

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

步驟:
安裝完 &軟體自動更新
sudo apt-get purge ibus-chewing
sudo apt-get autoremove // 移除 libchewing3
sudo apt-get install build-essential libsqlite3-dev cmake git pkg-config
sudo apt-get install fcitx fcitx-libs-dev

libchewing installation

git clone https://github.com/chewing/libchewing.git
cmake . -DCMAKE_INSTALL_PREFIX='/usr'
make
sudo make install

fcitx-chewing install

git clone https://github.com/taylorchu/fcitx-chewing.git
cmake . -DCMAKE_INSTALL_PREFIX='/usr'
make
sudo make install

登出後再登入
sudo ldconfig

輸入法設定裡頭找不到 新酷音 可以新增。

輸入下列兩個指令也可以得到對應的訊息:

ldconfig -p|grep chewing
        libchewing.so.3 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libchewing.so.3
        libchewing.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libchewing.so
 ldd /usr/lib/x86_64-linux-gnu/fcitx/fcitx-chewing.so 
        linux-vdso.so.1 =>  (0x00007ffdfac79000)
        libchewing.so.3 => /usr/lib/x86_64-linux-gnu/libchewing.so.3 (0x00007f1c9c733000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1c9c36e000)
        libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f1c9c0b4000)
        /lib64/ld-linux-x86-64.so.2 (0x00005561566ac000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1c9be96000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1c9bc92000)

想請問是我那一步有做錯嗎?

@ShengYenPeng
Copy link
Author

ShengYenPeng commented Apr 21, 2016

我改用 automake 成功了!

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

    1.安裝完 &軟體自動更新

    2. sudo apt-get install fcitx fcitx-libs-dev

    3. 切換鍵盤輸入法系統 從 ibus => fcitx  ( 右上角齒輪 > 系統設定值 > 語言支援 )

    4. 登入再登出

    5. sudo apt-get purge ibus-chewing

    6. sudo apt-get autoremove // 移除 libchewing3

    7. 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

    8. libchewing installation (不要用cmake! )

                git clone https://github.com/chewing/libchewing.git

                cd libchewing

                ./autogen.sh

                ./configure --prefix=/usr

                 make

                 sudo make install


    9. fcitx-chewing installation

                  git clone https://github.com/fcitx/fcitx-chewing.git

                  cd fcitx-chewing

                  mkdir build; cd build

                  cmake .. 

                  make

                  sudo make install


   10.  點擊右上角小鍵盤 > 重新啟動

   11.  應該就可以在右上角小鍵盤 > 輸入法 看到新酷音了(灑花)

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant