created_date: 2020-02-18T02:14:03+08:00
update_date: 2020-02-18T02:21:06+08:00
comment_url: https://github.com/ferstar/blog/issues/17
- 装Qt,注意安装的时候要选择桌面开发环境,默认没有选
http://mirrors.ustc.edu.cn/qtproject/archive/qt/5.9/5.9.0/qt-opensource-linux-x64-5.9.0.run
1
|
sudo apt-get install git build-essential cmake zlib1g-dev extra-cmake-modules fcitx-libs-dev mesa-common-dev libjasper-dev libxkbcommon-dev
|
1
2
3
4
5
6
|
cd ~
mkdir WizTeam
cd WizTeam
git clone https://github.com/ferstar/WizQTClient.git
cd WizQTClient
git checkout 2.8.2
|
1
2
3
4
5
6
|
git clone https://github.com/fcitx/fcitx-qt5.git
cd fcitx-qt5
cmake .
make
sudo make install
# 拷贝platforminputcontext/libfcitxplatforminputcontextplugin.so到Qt安装目录的Tools/QtCreator/lib/Qt/plugins/platforminputcontexts目录内
|
1
2
3
|
chmod a+x linuxdeployqt
export PATH="$HOME/Qt5.9.0/5.9/gcc_64/bin":$PATH
./linux-package.sh
|
以上步骤成功完成后会生成一个AppImage文件,双击即可运行,但登录会报错Failed to exec json request, network error=99, message=
Google一番发现是openssl库的问题导致其联网同步时安全验证失败,官网上提供了解决方案
1
2
3
4
|
sudo apt-get install aptitude
# 安装aptitude
sudo aptitude install libssl1.0-dev
# aptitude会自动解决依赖,这里我们需要降级系统默认的ssl包,选择接受即可
|
重新打开为知笔记即可正常登录
预编译版本见:https://github.com/ferstar/WizQTClient/releases/tag/v2.8.2