Sunday, August 22, 2021

Build and install from source GoldenDict on Ubuntu

Kubuntu 21.04 essentials install

git clone --branch master 'https://github.com/goldendict/goldendict.git'

Go to goldendict folder and make project:

cd goldendict

sudo apt install libvorbis-dev libhunspell-dev libao-dev libavutil-dev libavformat-dev libqt5webkit5-dev libqt5x11extras5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5 libbz2-dev liblzo2-dev libtiff5-dev libxtst-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxcomposite-dev libqt5svg5-dev qttools5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5 ffmpeg

Qt QML KF5 essentials for cmake on Kubuntu

qmake

make clean && make -j<YOUR CPU CORES COUNT>

make install

Meta > Discover > GoldenDict > Install

apt depends goldendict
goldendict
  Depends: libao4 (>= 1.1.0)
  Depends: libavcodec59 (>= 7:5.0)
    libavcodec-extra59
  Depends: libavformat59 (>= 7:5.0)
    libavformat-extra59
  Depends: libavutil57 (>= 7:5.0)
  Depends: libbz2-1.0
  Depends: libc6 (>= 2.34)
  Depends: libeb16 (>= 4.4.3)
  Depends: libgcc-s1 (>= 3.3.1)
  Depends: libhunspell-1.7-0
  Depends: liblzma5 (>= 5.1.1alpha+20120614)
  Depends: liblzo2-2 (>= 2.02)
  Depends: libopencc1.1 (>= 1.1.1+git20200624+ds2)
  Depends: libqt5core5a (>= 5.15.1)
 |Depends: libqt5gui5 (>= 5.2.0)
  Depends: libqt5gui5-gles (>= 5.2.0)
  Depends: libqt5help5 (>= 5.6.0~beta)
  Depends: libqt5multimedia5 (>= 5.6.0~beta)
  Depends: libqt5network5 (>= 5.0.2)
  Depends: libqt5printsupport5 (>= 5.0.2)
  Depends: libqt5svg5 (>= 5.6.0~beta)
  Depends: libqt5webkit5 (>= 5.212.0~alpha3)
  Depends: libqt5widgets5 (>= 5.11.0~rc1)
  Depends: libqt5x11extras5 (>= 5.6.0)
  Depends: libqt5xml5 (>= 5.0.2)
  Depends: libstdc++6 (>= 11)
  Depends: libswresample4 (>= 7:5.0)
  Depends: libtiff5 (>= 4.0.3)
  Depends: libvorbisfile3 (>= 1.1.2)
  Depends: libx11-6
  Depends: libxtst6
  Depends: libzstd1 (>= 1.5.2)
  Depends: zlib1g (>= 1:1.2.2.3)
  Depends: libqt5multimedia5-plugins
  Suggests: goldendict-wordnet

apt info goldendict
Package: goldendict
Version: 1.5.0~rc2+git20220602+ds-1build1
Priority: optional
Section: universe/utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Dmitry E. Oboukhov <unera@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 9 187 kB
Depends: libao4 (>= 1.1.0), libavcodec59 (>= 7:5.0), libavformat59 (>= 7:5.0), libavutil57 (>= 7:5.0), libbz2-1.0, libc6 (>=
2.34), libeb16 (>= 4.4.3), libgcc-s1 (>= 3.3.1), libhunspell-1.7-0, liblzma5 (>= 5.1.1alpha+20120614), liblzo2-2 (>= 2.02), l
ibopencc1.1 (>= 1.1.1+git20200624+ds2), libqt5core5a (>= 5.15.1), libqt5gui5 (>= 5.2.0) | libqt5gui5-gles (>= 5.2.0), libqt5h
elp5 (>= 5.6.0~beta), libqt5multimedia5 (>= 5.6.0~beta), libqt5network5 (>= 5.0.2), libqt5printsupport5 (>= 5.0.2), libqt5svg
5 (>= 5.6.0~beta), libqt5webkit5 (>= 5.212.0~alpha3), libqt5widgets5 (>= 5.11.0~rc1), libqt5x11extras5 (>= 5.6.0), libqt5xml5
(>= 5.0.2), libstdc++6 (>= 11), libswresample4 (>= 7:5.0), libtiff5 (>= 4.0.3), libvorbisfile3 (>= 1.1.2), libx11-6, libxtst
6, libzstd1 (>= 1.5.2), zlib1g (>= 1:1.2.2.3), libqt5multimedia5-plugins
Suggests: goldendict-wordnet
Homepage: http://goldendict.org
Download-Size: 3 483 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu kinetic/universe amd64 Packages
Description: feature-rich dictionary lookup program
Features:
 * Use of WebKit for an accurate articles' representation,
   complete with all formatting, colors, images and links.
 * Support of multiple dictionary file formats, namely:
   - Babylon .BGL files, complete with images and resources
   - StarDict .ifo/.dict./.idx/.syn dictionaries
   - Dictd .index/.dict(.dz) dictionary files
   - ABBYY Lingvo .dsl source files, together with abbreviations.
     The files can be optionally compressed with dictzip. Dictionary
     resources can be packed together into a .zip file.
   - ABBYY Lingvo .lsa/.dat audio archives. Those can be indexed
      separately, or be referred to from .dsl files.
 * Support for Wikipedia, Wiktionary, or any other MediaWiki-based
   sites to perform lookups in.
 * Ability to use arbitrary websites as dictionaries via templated
    Url patterns.
 * Hunspell-based morphology system, used for word stemming and
   spelling suggestions.
 * Ability to index arbitrary directories with audio files for
    pronunciation lookups.
 * Full Unicode case, diacritics, punctuation and whitespace folding.
   This means the ability to type in words without any accents,
   correct case, punctuation or spaces (e.g. typing 'Grussen' would
   yield 'grüßen' in German dictionaries).
 * Scan popup functionality. A small window pops up with the
   translation of a word chosen from another application.
 * Support for global hotkeys. You can spawn the program window at
   any point, or directly translate a word from the clipboard.
 * Tabbed browsing in a modern Qt 5 interface.

No comments:

Post a Comment