当前位置:网站首页>4.1 It is super simple to install QT without using Sogou Chinese input method
4.1 It is super simple to install QT without using Sogou Chinese input method
2022-07-27 01:37:00 【kui9702】
1. Simple method :
# Copy file libfcitxplatforminputcontextplugin.so To the following installation directory ,Qt The directory needs to be modified by yourself !Qt The directory needs to be modified by yourself !Qt The directory needs to be modified by yourself !
sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so /home/kile/Qt5.9.0/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/
sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so /home/kile/Qt5.9.0/5.9/gcc_64/plugins/platforminputcontexts/
2. The above method fails
If the above problems are configured well, they still cannot be solved , So you need to recompile libfcitxplatforminputcontextplugin.so
1、 install :extra-cmake-modules
git clone https://github.com/KDE/extra-cmake-modules.git
After downloading, enter the corresponding directory :
make
sudo make installperhaps sudo apt install extra-cmake-modules
2、 install :xkbcommon
https://lists.freedesktop.org/archives/wayland-devel/2019-February/040102.html
After downloading, enter the corresponding directory :
./configure --disable-x11
make
sudo make install3、 To github Upload and download :fcitx-qt5 The source package
git clone https://github.com/fcitx/fcitx-qt5.git After decompression ,export PATH=/home/jackie/Qt5.8.0/5.8/gcc_64/bin:$PATH
mkdir build
cd build
cmake -DENABLE_LIBRARY=false …
make
There are the following problems
CMake Error at CMakeLists.txt:46 (find_package):
By not providing “FindFcitx.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “Fcitx”, but
CMake did not find one.Could not find a package configuration file provided by “Fcitx” (requested
version 4.2.8) with any of the following names:FcitxConfig.cmake fcitx-config.cmakeAdd the installation prefix of “Fcitx” to CMAKE_PREFIX_PATH or set
“Fcitx_DIR” to a directory containing one of the above files. If “Fcitx”
provides a separate development package or SDK, be sure it has been
installed.
take cmake … It is amended as follows cmake -DENABLE_LIBRARY=false …
error: no matching function for call to ‘QMetaObject::invokeMethod(QFcitxPlatformInputContext*, QFcitxPlatformInputContext::setFocusObject(QObject*)::<lambda()>, Qt::ConnectionType)’
Replace /fcitx-qt5-master/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp Under the same directory as qfcitxplatforminputcontext.h , again make that will do
File download link that needs to be replaced :https://url25.ctfile.com/f/34628125-616663558-6a6901?p=3005 ( Access password : 3005)
stay /build/qt5/platforminputcontext Lower bound libfcitxplatforminputcontextplugin.so Copied to the /home/kile/Qt5.9.0/5.9/gcc_64/plugins/platforminputcontexts/ /home/kile/Qt5.9.0/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
边栏推荐
猜你喜欢
随机推荐
DNS
ESP8266 AP_ TCP_ Client
ESP8266 STA_ Mode
Understanding and learning of internal classes
MakeFile
十五、expect
Summary of heap sorting related knowledge
Unity[1] learning directory
Finding the greatest common divisor
8、 Definition of array
Buuctf casual note, exec, easysql, secret file
Traversing binary trees in non recursive pre -, middle -, and post order
LAMP.
VirtualBox VMS extended disk space
Jenkins -- Basic -- 5.1 -- system configuration -- plug-in management
Producer consumer model of concurrent programming
13、 Command gadget
ESP8266-----SNTP获取网络时间
ESP8266 AP_ UDP_ Server
Data storage summary of C language




![[SQL injection] extended injection method](/img/a1/d4218281bfc83a080970d8591cc6d4.png)






