git clone https://github.com/fcitx/fcitx-qt5.git
cd fcitx-qt5/
sudo apt-get install cmake
sudo apt-get install fcitx-libs-dev
export PATH="/home/user/Qtxxx/xxx/gcc_64/bin":$PATH
camke .
make
sudo make install
cmake錯誤處理:
1.Could not find a package configuration file provided by "Qt5"
export PATH="/home/user/Qtxxx/xxx/gcc_64/bin":$PATH
cmake .
2.Could not find a package configuration file provided by "ECM"
wget https://launchpadlibrarian.net/189487929/extra-cmake-modules_1.4.0.orig.tar.xz
tar -xvf extra-cmake-modules_1.4.0.orig.tar.xz
cd extra-cmake-modules-1.4.0
cmake .
make
sudo make install
3.Failed to find "GL/gl.h" in "/usr/include/libdrm".
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
4.Could NOT find XKBCommon_XKBCommon (missing: XKBCommon_XKBCommon_LIBRARY XKBCommon_XKBCommon_INCLUDE_DIR)
sudo apt install libxkbcommon-dev