介绍了在 openSUSE 上编译为知笔记客户端和坚果云客户端的方法。
为知笔记
在编译为知笔记客户端时遇到的主要问题是由于 openssl 版本过高导致的登录时网络错误,解决 openssl 的版本问题之后,按照文档是可以成功登陆账号的。编译完之后我发现为知笔记不能使用 fcitx 输入法,对快捷键的支持也非常有限,在编辑功能上,还不如 web 版,不能像 windows 那样支持第三方编辑器。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| wget https://download.qt.io/official_releases/qt/5.9/5.9.0/qt-opensource-linux-x64-5.9.0.run
sudo zypper in cmake-full
git clone https://github.com/openssl/openssl.git cd openss/ git checkout remotes/origin/OpenSSL_1_0_2-stable
./config enable-shared make -j4 cp libssl.so* libcrypto.so* ~/Qt5.9.0/5.9/gcc_64/lib/
git clone https://github.com/WizTeam/WizQTClient.git cd WizQTClient git checkout 2.8.7
|
然后用 QtCreator 打开 WizQTClient 目录下的 CMakeList.txt,就能正常编译了。
参考文档
https://www.wiz.cn/compile-client.html
坚果云
安装坚果云遇到的问题主要是找不到 gi 的 Notify 库,就是下面的 typelib-1_0-Notify-0_7
这个库,还有一些其他的依赖比较好找。
1 2 3 4 5
| sudo zypper in libappindicator-gtk3 python3-gobject python-gobject-common-devel typelib-1_0-AppIndicator3-0_1 typelib-1_0-Notify-0_7 wget https://www.jianguoyun.com/static/exe/installer/nutstore_linux_dist_x64.tar.gz -O /tmp/nutstore_bin.tar.gz mkdir -p ~/.nutstore/dist && tar zxf /tmp/nutstore_bin.tar.gz -C ~/.nutstore/dist ~/.nutstore/dist/bin/nutstore-pydaemon.py
|
参考文档
https://forum.suse.org.cn/t/topic/10839