配置qt支持中文(fcitx)
qt6缺少libfcitxplatforminputcontextplugin.so,所以需要自行编译。
git clone http://github.com/fcitx/fcitx-qt5.git
sudo apt install gcc g++ cmake extra-cmake-modules
sudo apt install libgl1-mesa-dev libglu1-mesa-dev libxkbcommon-dev fcitx-libs-dev
#以自己的qt目录为准:*/5.12.8/gcc_64/lib/cmake/Qt5
export Qt5_DIR=/code/qt5_12_8/5.12.8/gcc_64/lib/cmake/Qt5
mkdir build
cd build
cmake ..
make
cd qt5/platforminputcontext
cp libfcitxplatforminputcontextplugin.so /code/qt5_12_8/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/
cp libfcitxplatforminputcontextplugin.so /code/qt5_12_8/5.12.8/gcc_64/plugins/platforminputcontexts/