Qt Creator editing and application in Ubuntu system using Chinese Input Method

Source: Internet
Author: User

In the Ubuntu system GUI development process encountered in the editor can not use the Chinese input method, the premise I have installed Sogou ime, but still can not use, the reason is that the QT library does not have the latest FCIX library,,

Does not install Sogou input method of Https://pan.baidu.com/s/1pLNo9fX I here Baidu cloud has link download down install very simple configuration according to Http://www.cnblogs.com/zxouxuewei/p/4987215.h Tml

I have compiled a new version of the Input method library Https://pan.baidu.com/s/1gf69VpD download down to the corresponding directory restart can

1./opt/qt5.7.0/tools/qtcreator/lib/qt/plugins/platforminputcontexts

2.Qt5.7.0/5.7/gcc_64/plugins/platforminputcontexts/

Put it in the above two directories.

The first thing we need to do:

Install both the fcitx-libs-qt and fcitx-libs-qt5 libraries.

sudo apt-get install FCITX-LIBS-QT fcitx-libs-qt5

And then after the installation has been found there is no way to enter Chinese, Baidu a method, you need to copy the library file, but the directory given is probably such a location:/opt/qt5.7.0/tools/qtcreator/bin/plugins/ platforminputcontexts/, but I found that there is no such directory, after the creation of the directory will still not work.

No above directories are placed in the/opt/qt5.7.0/tools/qtcreator/lib/qt/plugins/platforminputcontexts/

cp/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so/opt/ Qt5.7.0/tools/qtcreator/lib/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so

Need to change permissions after completion

Cd/opt/qt5.7.0/tools/qtcreator/lib/qt/plugins/platforminputcontexts/chmod +x Libfcitxplatforminputcontextplugin.so

If you compile a program that has no way to enter Chinese, then you need to copy the library file toQt5.7.0/5.7/gcc_64/plugins/platforminputcontexts/

However, the new version of the QT library needs to be added to the FCIX library, so it will be finished or not

Then we install the new version of the FCIX library installation CMake

sudo apt-get install CMake

Installing Fcitx-libs-dev

sudo apt-get install Fcitx-libs-dev

Set environment variables for Qmake:

Export path= $PATH:/opt/qt5.7.0/5.7gcc_64/bin

Download Fcitx-libs Source: https://pan.baidu.com/s/1nuS2emd, compiling

CD Fcitx-qt5cmake. Makesudo make Install

Will encounter the following error

To resolve the above error download EXTRA-CMAKE-MODULES_1.4.0.ORIG.TAR.XZ and unzip, https://pan.baidu.com/s/1skZL3Oh after decompression, enter the following command:

CD Extra-cmake-modules-1.4.0cmake. Makesudo make Install

The compiler will have the bottom-up error when you finish solving the

Resolve the above error needs

sudo apt-get install Libgl1-mesa-dev Libglu1-mesa-dev

The error below will be resolved with the error above

To resolve the error above, download Libxkbcommon-0.5.0.tar.xz https://pan.baidu.com/s/1hsxe0N6

Tar XF libxkbcommon-0.5.0.tar.xzcd Libxkbcommon-0.5.0./configure-prefix=/usr-libdir=/usr/lib/x86_64-linux-gnu- Disable-x11makesudo make Install

There's another mistake, and that's the last mistake.

To fix this error, it compiles properly.

After compiling the installation, a libfcitxplatforminputcontextplugin.so file will be generated to copy the latest library file to qt corresponding directory, restart the computer can

Qt Creator editing and application in Ubuntu system using Chinese Input Method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.