Open vimforscheme opened 3 years ago
QtCreater 输入中文的问题
#!/bin/bash
CMD_PATH=`dirname $0`
userdir=`env | grep ^HOME= | cut -c 6-`
qt5Creator=${userdir}/Qt5.14.2/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
qt5gcc_64=${userdir}/Qt5.14.2/5.14.2/gcc_64/plugins/platforminputcontexts
export Qt5_DIR=${userdir}/Qt5.14.2/5.14.2/gcc_64/lib/cmake/Qt5
//sudo apt install git
//git clone http://github.com/fcitx/fcitx-qt5.git
apt source fcitx-qt5
rm -r ~/fcitx-qt5/build
mkdir ~/fcitx-qt5/build
cd ~/fcitx-qt5/build
sudo apt install gcc g++ cmake extra-cmake-modules
sudo apt install libgl1-mesa-dev libglu1-mesa-dev libxkbcommon-dev fcitx-libs-dev
cmake ../
make
libfcix=~/fcitx-qt5/build/platforminputcontext/libfcitxplatforminputcontextplugin.so
sudo cp $libfcix ${qt5Creator}
sudo cp $libfcix ${qt5gcc_64}
sudo chmod +x ${qt5Creator}/libfcitxplatforminputcontextplugin.so
sudo chmod 777 ${qt5Creator}/libfcitxplatforminputcontextplugin.so
sudo chmod +x ${qt5gcc_64}/libfcitxplatforminputcontextplugin.so
sudo chmod 777 ${qt5gcc_64}/libfcitxplatforminputcontextplugin.so
#!/bin/bash
userdir=`env | grep ^HOME= | cut -c 6-`
qt5Creator=${userdir}/Qt5.14.2/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
qt5gcc_64=${userdir}/Qt5.14.2/5.14.2/gcc_64/plugins/platforminputcontexts
# 静态库文件
libfcix=~/fcitx-qt5/build/platforminputcontext/libfcitx5platforminputcontextplugin.so
sudo cp $libfcix ${qt5Creator}
sudo cp $libfcix ${qt5gcc_64}
sudo chmod +x ${qt5Creator}/libfcitx5platforminputcontextplugin.so
sudo chmod 777 ${qt5Creator}/libfcitx5platforminputcontextplugin.so
sudo chmod +x ${qt5gcc_64}/libfcitx5platforminputcontextplugin.so
sudo chmod 777 ${qt5gcc_64}/libfcitx5platforminputcontextplugin.so
还要注意下环境变量。
im-condig设置成fcitx 并重启机器
百度谷歌不到任何解决方案,蚌埠住了
CMake Error in qt5/dbusaddons/CMakeLists.txt: The CXX_STANDARD property on target "FcitxQt5DBusAddons" contained an invalid value: "17".
CMake Error in qt5/widgetsaddons/CMakeLists.txt: The CXX_STANDARD property on target "FcitxQt5WidgetsAddons" contained an invalid value: "17".
CMake Error in qt5/guiwrapper/CMakeLists.txt: The CXX_STANDARD property on target "fcitx-qt5-gui-wrapper" contained an invalid value: "17".
CMake Error in qt5/quickphrase-editor/CMakeLists.txt: The CXX_STANDARD property on target "fcitx-quickphrase-editor5" contained an invalid value: "17".
CMake Error in qt5/platforminputcontext/CMakeLists.txt: The CXX_STANDARD property on target "fcitxplatforminputcontextplugin" contained an invalid value: "17".
百度谷歌不到任何解决方案,蚌埠住了
CMake Error in qt5/dbusaddons/CMakeLists.txt: The CXX_STANDARD property on target "FcitxQt5DBusAddons" contained an invalid value: "17".
CMake Error in qt5/widgetsaddons/CMakeLists.txt: The CXX_STANDARD property on target "FcitxQt5WidgetsAddons" contained an invalid value: "17".
CMake Error in qt5/guiwrapper/CMakeLists.txt: The CXX_STANDARD property on target "fcitx-qt5-gui-wrapper" contained an invalid value: "17".
CMake Error in qt5/quickphrase-editor/CMakeLists.txt: The CXX_STANDARD property on target "fcitx-quickphrase-editor5" contained an invalid value: "17".
CMake Error in qt5/platforminputcontext/CMakeLists.txt: The CXX_STANDARD property on target "fcitxplatforminputcontextplugin" contained an invalid value: "17".
编译不过吗?什么发行版debian系还是fedora系,
debian系的话, 需要在vim /etc/apt/sources.list 把deb-src前面的#号去掉。 保存文件。
sudo apt update sudo apt upgrade
apt source fcitx-qt5 apt build-dep fcitx-qt5 这样试试。
然后在fcitx-qt5源码根目录打包。
dpkg-buildpackage -b 就可以了
你要是用 git 的话,需要的 c++ 标准太高你系统太老了,建议用老一些的发布版 https://download.fcitx-im.org/fcitx-qt5/
百度谷歌不到任何解决方案,蚌埠住了 CMake Error in qt5/dbusaddons/CMakeLists.txt: The CXX_STANDARD property on target "FcitxQt5DBusAddons" contained an invalid value: "17". CMake Error in qt5/widgetsaddons/CMakeLists.txt: The CXX_STANDARD property on target "FcitxQt5WidgetsAddons" contained an invalid value: "17". CMake Error in qt5/guiwrapper/CMakeLists.txt: The CXX_STANDARD property on target "fcitx-qt5-gui-wrapper" contained an invalid value: "17". CMake Error in qt5/quickphrase-editor/CMakeLists.txt: The CXX_STANDARD property on target "fcitx-quickphrase-editor5" contained an invalid value: "17". CMake Error in qt5/platforminputcontext/CMakeLists.txt: The CXX_STANDARD property on target "fcitxplatforminputcontextplugin" contained an invalid value: "17".
编译不过吗?什么发行版debian系还是fedora系,
debian系的话, 需要在vim /etc/apt/sources.list 把deb-src前面的#号去掉。 保存文件。
sudo apt update sudo apt upgrade
apt source fcitx-qt5 apt build-dep fcitx-qt5 这样试试。
然后在fcitx-qt5源码根目录打包。
dpkg-buildpackage -b 就可以了
楼上和我遇到的问题一样吗,我的环境是ubuntu16.04桌面版,谢谢反馈,我再试下吧
qt6.3.2,qtcreator7.0.2, compile link succeed, get libfcitxplatforminputcontextplugin6.so, copy to destination dir, still cannot input sougou pinyin in qtcreator
您好,我在ubuntu上编译动态库和静态库都没任何问题,只是关于使用上有点疑问。 我查了一些资料都说动态库只需要放到platforminputcontexts即可。 但是不论动态库还是静态库,我都无法使用,即使是在qt creator中也无法切换中文。 想咨询下使用的前置条件除了 1、fcitx版本为4.2.9.1 。 2、搜狗输入法 。3、将动态库加到指定插件目录中。还应该有别的操作么。 还是说和Qt版本或是和输入法版本有关呢。 因为限定无法使用的要素过多,而且我在网络上找不到更好的解决方案,所以特地来这边请教。