INSTALL 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Dependencies
  2. ============
  3. In order to install QStarDict, it is necessary to install its dependencies.
  4. The dependencies:
  5. * Qt 5 (LGPLv3) https://doc.qt.io/qt-5/
  6. * GLib (LGPL-2.1-or-later) https://docs.gtk.org/glib/
  7. is used in the StarDict plugin
  8. * ZLib (License of ZLib) https://zlib.net/
  9. is used in the StarDict plugin
  10. * LibZIM (GPLv2-or-later) https://openzim.org/wiki/Libzim
  11. is used in the Kiwix plugin
  12. * ESpeak (GPLv3-or-later) https://espeak.sourceforge.net/
  13. is used for pronouncing words
  14. On systems based on Debian or Ubuntu all of the dependencies can be
  15. installed using the following command:
  16. sudo apt install build-essential \
  17. qt5-qmake qtbase5-dev qtbase5-private-dev \
  18. qttools5-dev-tools libx11-dev \
  19. libglib2.0-dev zlib1g-dev \
  20. libzim-dev \
  21. espeak
  22. Building and installing QStarDict
  23. =================================
  24. When the dependencies are installed, it is possible to build and install
  25. QStarDict using the following commands:
  26. qmake # to configure the project
  27. make # build
  28. sudo make install
  29. qmake switches
  30. ==============
  31. QStarDict consists of a core and plugins. There are the following plugins:
  32. * kiwix - adds support for Kiwix Wiktionary dictionaries
  33. * stardict - adds support for StarDict 2.x dictionaries
  34. * web - adds support for online web dictionaries
  35. * savetofile - adds a toolbar action for saving translations to files
  36. * print - adds a toolbar action for printing translations
  37. By default, all of these plugins are built, although not all of them
  38. are enabled by default. If you want to select only a subset of the
  39. plugins, add ENABLED_PLUGINS option to the invocation of qmake:
  40. qmake ENABLED_PLUGINS=<selected plugins>
  41. In order to enable the developer mode for plugins, run qmake as
  42. qmake DEV=1
  43. In order to install QStarDict to an install prefix other than /usr,
  44. run qmake as
  45. qmake INSTALL_PREFIX=<install prefix>