Skip to content

Instantly share code, notes, and snippets.

@chisaato
Last active May 14, 2022 16:41
Show Gist options
  • Save chisaato/b71c2e128c2baacb9156f1b9752c450e to your computer and use it in GitHub Desktop.
Save chisaato/b71c2e128c2baacb9156f1b9752c450e to your computer and use it in GitHub Desktop.
为 Davinci Resolve 构建 fcitx5 支持
# 首先去获取闭源程序对应的 Qt 版本,主要是获取 GCC 编译器
# 然后拿 fcitx5-qt 源码
# 在源码根目录执行下面的命令,别忘了修改路径
# cmake -DCMAKE_PREFIX_PATH=$QT_PATH/Qt5.9.6/5.9.6/gcc_64 -DENABLE_QT4=0 .
# 来做第一次构建
# make -j$(nproc)
# 然后来到 qt5/platforminputcontext 目录执行下面的一长串代码
# 请自行更改系统库路径
c++ -fPIC -Wall -Wextra -Wl,--no-undefined -Wl,--as-needed -shared -o libfcitx5platforminputcontextplugin.so \
CMakeFiles/fcitx5platforminputcontextplugin.dir/fcitx5platforminputcontextplugin_autogen/mocs_compilation.cpp.o \
CMakeFiles/fcitx5platforminputcontextplugin.dir/qfcitxplatforminputcontext.cpp.o \
CMakeFiles/fcitx5platforminputcontextplugin.dir/fcitxcandidatewindow.cpp.o \
CMakeFiles/fcitx5platforminputcontextplugin.dir/fcitxtheme.cpp.o \
CMakeFiles/fcitx5platforminputcontextplugin.dir/font.cpp.o \
CMakeFiles/fcitx5platforminputcontextplugin.dir/qtkey.cpp.o \
CMakeFiles/fcitx5platforminputcontextplugin.dir/main.cpp.o \
-Wl,-rpath,/opt/resolve/libs:../dbusaddons: \
../dbusaddons/libFcitx5Qt5DBusAddons.so \
/usr/lib64/libxcb.so \
/usr/lib64/libxkbcommon.so \
/opt/resolve/libs/libQt5Gui.so.5 \
/opt/resolve/libs/libQt5DBus.so.5 \
/opt/resolve/libs/libQt5Core.so.5
@awaybird
Copy link

你好,请问fcitx5能成功在Davinci Resolve上输入中文了么,是否可以出一下比较详细的操作步骤呢?我按照你的步骤操作了,但是仍然无法输入中文?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment