linux 编译安装 goldendict 解决翻译剪切板闪退

2019-10-13  本文已影响0人  杆菌大祭司

没啥感想,因为感想都在另一文抒发完了,想吃瓜的可以去看看。
上干货。

1. 安装依赖

一般大家都是Qt4框架,搞下面这个命令

sudo apt-get install git pkg-config build-essential qt4-qmake \
     libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
     libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \
     libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev

如果是Qt5 框架

sudo apt-get install git pkg-config build-essential qt5-qmake \
     libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
     qtdeclarative5-dev libxtst-dev liblzo2-dev libbz2-dev \
     libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev \
     libqt5webkit5-dev libqt5svg5-dev libqt5x11extras5-dev qttools5-dev \
     qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins

2. 克隆仓库

打开你想要安装的位置

cd /usr/local

克隆仓库

git clone git://github.com/goldendict/goldendict.git

成功后提示信息(无 "Dnoe" 提示说明没成功,下一步会报错)

Cloning into 'goldendict'...
remote: Enumerating objects: 111, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 15974 (delta 23), reused 46 (delta 14), pack-reused 15863
Receiving objects: 100% (15974/15974), 66.95 MiB | 800.00 KiB/s, done.
Resolving deltas: 100% (11416/11416), done.

cd goldendict

添加中文支持

sudo apt-get install libopencc-dev && sudo qmake-qt4 "CONFIG+=chinese_conversion_support" && sudo make && sudo make install

坐等安装完成。

上一篇下一篇

猜你喜欢

热点阅读