当前位置:网站首页>Solution to qt5.12 unable to input Chinese (unable to switch Chinese input method) in deepin system
Solution to qt5.12 unable to input Chinese (unable to switch Chinese input method) in deepin system
2022-06-13 10:19:00 【Just a little bit】
One . What happened
The process was installed yesterday deepin System to QT Development , Everything is going well , But when inputting Chinese , You can't input any switch , That is to say, the Chinese input method cannot be switched , The input method status changes to the default keyboard type and any operation of switching input methods does not work . I had a headache all afternoon yesterday , Can't do it .
Two . Why is this problem ?
For the use of fcitx Framework of the Chinese input method , Need to compile manually fcitx-qt5 Generate Chinese input method Library file ,qt There is no configuration in it , Need to be in qt You can only configure these files in some directories of .
Check the information and see that many people use git clone github Download under fcitx-qt5.git, But my computer doesn't work
git clone https://github.com/fcitx/fcitx-qt5.git
After returning home, I will use my own computer to remotely log in to my Alibaba cloud server , Use this command remotely to download , When the download is complete , I copy the downloaded file to my computer , And then upload QQ mailbox .
I put this plug-in directly under the network disk link : There is a problem like me , Just download it directly
link : https://pan.baidu.com/s/1gP1LQr_W7lR9O7x4wcgYcA
Extraction code : 8ypp
After returning to the company the next day , Log in right now QQ mailbox , take fcitx-qt5, Download to deepin In the system , Follow these steps to compile :
For the use of fcitx Chinese input method of frame ( Such as Sogou input method ), Need to compile manually fcitx-qt5 Generate the library file of Chinese input method
3、 ... and . How to solve it ?
1. install cmake, Used to compile fcitx-qt5
First, check whether it is installed cmake:
cmake --verison
If the version information is displayed, it indicates that it has been installed , Then you can go to the next step ; If not installed , First install :
sudo apt install cmake
2. install fcitx-libs-dev
sudo apt install fcitx-libs-dev
3. Download the fcitx-qt5 after , decompression fcitx-qt5
4. Get into fcitx-qt5 Unpack the directory
cd fcitx-qt5
5. Set up qmake environment variable
export PATH="$HOME/Qt/Qt5.12.0/5.12.0/gcc_64/bin":$PATH
Be careful : The specific path is determined according to your installation directory
6. Generate makefile file
cmake .
If the result shown in the figure below appears , It was successful , You can skip the following steps
If something goes wrong , Pay attention to the error message
For me, the file in the path shown in the figure is missing libcomposeplatforminputcontextplugin.so
Let's go directly to the system to find , See if there are... Anywhere else
use find command
find / -name libcomposeplatforminputcontextplugin.so
And will find libcomposeplatforminputcontextplugin.so Copy the library file to , The error prompt is in the missing path
Re execution
cmake .
Look at the error prompt , What's less , Use... In the system directory find Just find the command , Until no error is reported , As shown in the figure below
That's what I mean cmake success , Successfully generated makefile file
7. compile
make
Can compile to 100%, The compilation is successful
We see the ficitx-qt5 The catalog of , The discovery produced qt5 and qt6 Two files of two
Because I'm using qt5.12.0 Version of Qt, So what I want to use is qt5 In the catalog libfcitxplatforminputcontextplugin.so The library files
8. copy to Qt In the specified two directories
cp -f libfcitxplatforminputcontextplugin.so /home/yicaobao/Qt5.12.0/5.12.0/gcc_64/plugins/platforminputcontexts/
cp -f libfcitxplatforminputcontextplugin.so /home/yicaobao/Qt5.12.0/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
Be careful : The specific path is determined according to your installation directory
ok, Everything is open !
9. restart Qt, that will do
边栏推荐
猜你喜欢
[51nod 3062] n queen problem V2 [bit operation DFS]
冗余码题型--后面加0的区别
QTcpServer. QTcpSocket. QUdpSocket之间的区别
首个Laravel工作流引擎发布 V1.0正式版
Smart210 uses SD card to burn uboot
It was so simple to implement system call
【轴承故障分解】基于matlab ITD轴承故障信号分解【含Matlab源码 1871期】
C# 11 更加实用的 nameof
[51nod 2493] sum of binary distances [bit operation]
IDEA 续命插件
随机推荐
[51nod p3047] displacement operation [bit operation]
IDEA 续命插件
Write pytoch model in five minutes
C# 11 更加实用的 nameof
Wait for someone with "source" | openharmony growth plan student challenge registration to start
Memory management -- Viewing memory space from the perspective of executing programs and processes
Oracle自定义数据类型Type疑问
go-zero微服务实战系列(三、API定义和表结构设计)
Matplotlib learning notes
C# Oracle 多表查询
Leetcode (question 15) - sum of three numbers
架构师必备:系统容量现状checklist
Implementation of fruit mall wholesale platform based on SSM
检验冗余码是否出错题型解法-摘录
【工具链系列】 Notepad++
一文读懂简单查询代价估算【这次高斯不是数学家】
Learning makefile with me
vivo大规模 Kubernetes 集群自动化运维实践
Node-RED系列(二四):在Node-RED中使用mysql节点实现数据库的增删改查
GCC compilation process