If the article is an original article, please indicate the source of the original article when reprinting.
The blog address of this article: https://hpzwl.blog.csdn.net/article/details/131302096
Development of domestic Kylin system and Tongxin UOS system
Previous: " Union UOS System Development Notes (4): Compile and install QtCreator4.11.2 from Qt source code, compile and install QtCreator4.11.2, and configure, compile and test Demo" Next
: " Union UOS System Development Notes (6): Extract Online After installing the software, extract its installation package, and deploy the target machine to install the software using offline software package "
foreword
Chinese input method, the inability to input Chinese in QtCreator is also a common problem in ubuntu, and this problem also exists in the domestic Galaxy Kirin system (PS: it can’t end in the end, use text to paste it yourself), domestic UOS also has this problem, this film needs to solve this problem , mainly to install and use the Fcitx input method.
(PS: The complete processing method of this article, the process is successful, but the result is not successful, and it is reserved for reference in other versions)
Tongxin UOS system version
system version:
Replenish
The original method is the qt plug-in under /usr/lib, but our military version does not have it. This is not clear. It is provided by a specific channel. We only need to solve the problem quickly and steadily until the goal is achieved.
related blog
" About the solution to ubuntu18.04 using QtCcreator to input Chinese "
" About ubuntu14.04 has an input method but cannot input Chinese "
" Linux practical skills: ubuntu18.04 installation and configuration ibus Chinese input method "
" Kylin System Development Notes (6): Install the Chinese input environment Fcitx input method in the QtCreator development IDE "
Fcitx
Little Penguin Input Method is an input method framework that supports extensions. Currently, it supports the Linux operating system, as well as Unix operating systems such as freebsd. Fcitx supports a large number of different languages around the world by using various input method engines. The core implementation of Fcitx itself is very simple, and it provides powerful functions through the use of plug-ins. fcitx can be easily customized to meet different individual needs.
download link
github download address: https://github.com/fcitx/fcitx-qt5
CSDN fan zero point download address: https://download.csdn.net/download/qq21497936/85047501
You can also use the command line git download:
git clone https://github.com/fcitx/fcitx-qt5
Compile and install Fcitx (Union UOS20 military version)
Step 1: Download, install and decompress
cd ~/work/src
git clone https://github.com/fcitx/fcitx-qt5
Install git:
sudo yum install git
Continue to download:
git clone https://github.com/fcitx/fcitx-qt5
Down is the folder, no need to decompress:
(make a package to back up once)
Step 2: Configure cmake
mkdir build
cd build
cmake ..
sudo yum install extra-cmake-modules
Continue to compile, a new error occurs:
add configuration, the compilation command is as follows:
cmake .. -DENABLE_LIBRARY=false
Configuration passed.
Step 3: Compile make
make
Compilation passed.
Step 4: Put the compiled .so library into the qt installation plugin directory
cd ~/Qt5.12.8/5.12.8/gcc_64/plugins/platforminputcontexts/
cp ~/work/src/fcitx-qt5/build/qt5/platforminputcontext/libfcitxplatforminputcontextplugin.so .
chmod +x libfcitxplatforminputcontextplugin.so
cp ~/work/src/fcitx-qt5/build/qt5/platforminputcontext/libfcitxplatforminputcontextplugin.so .
chmod +x libfcitxplatforminputcontextplugin.so
ls -l
cd /usr/lib64/qt5/plugins/platforminputcontexts/
cp ~/work/src/fcitx-qt5/build/qt5/platforminputcontext/libfcitxplatforminputcontextplugin.so .
chmod +x libfcitxplatforminputcontextplugin.so
ls -l
There is no suspense, although they are all successful, the last road is still not realized to input Chinese in QtCreator, it is still a failure. (PS: It is largely suspected that the compiler of the large version of Qt used is different from the compiler used by the local system. Plug-ins compiled using the local compiler cannot be enabled in Qtcreator because the compiler is different).
other attempts
-
Qt is installed directly with the installation package of 5.12.8. This path is currently verified, but it does not work! ! !
-
I also tried the way to install fcitx by ordering, but im-switch has no download, and it doesn’t work! ! !
-
Restored to the time when only qt was installed, and tried all the built-in input methods, but it didn't work! ! !
in conclusion
The result of this article failed, but I don’t want to delve into it further. There are other ways to leave a message, and the author will try again.
Post the final version:
Previous: " Union UOS System Development Notes (4): Compile and install QtCreator4.11.2 from Qt source code, compile and install QtCreator4.11.2, and configure, compile and test Demo" Next
: " Union UOS System Development Notes (6): Extract Online After installing the software, extract its installation package, and deploy the target machine to install the software using offline software package "
If the article is an original article, please indicate the source of the original article when reprinting.
The blog address of this article: https://hpzwl.blog.csdn.net/article/details/131302096