2013-05-03 20:25:57 +00:00
## Introduction
< b > GoldenDict< / b > is a feature-rich dictionary lookup program, supporting multiple dictionary formats (StarDict/Babylon/Lingvo/Dictd/AARD/MDict/SDict) and online dictionaries, featuring perfect article rendering with the complete markup, illustrations and other content retained, and allowing you to type in words without any accents or correct case.
## Requirements
This code has been run and tested on Windows XP/Vista/7, Ubuntu Linux, Mac OS X.
### External Deps
2013-07-11 20:15:47 +00:00
* Make, GCC, Git
2018-03-21 17:49:34 +00:00
* Qt framework. Minimum required version is 4.6. But Qt 4.7 or 4.8 is recommended.
2013-05-03 20:25:57 +00:00
* Qt Creator IDE is recommended for development
* Various libraries on Linux (png, zlib, etc)
* On Mac and Windows all the libraries are already included in the repository
### Installing External Deps on Ubuntu Linux
2013-07-11 20:15:47 +00:00
sudo apt-get install git pkg-config build-essential qt4-qmake \
2013-06-18 01:11:21 +00:00
libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
2013-08-16 17:17:08 +00:00
libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \
2015-05-27 11:59:23 +00:00
libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev
2013-05-03 20:25:57 +00:00
2016-12-19 08:22:59 +00:00
#### Installing External Deps on Ubuntu Linux for Qt5
sudo apt-get install git pkg-config build-essential qt5-qmake \
libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
2019-03-22 13:26:40 +00:00
qtdeclarative5-dev libxtst-dev liblzo2-dev libbz2-dev \
2016-12-19 08:22:59 +00:00
libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev \
libqt5webkit5-dev libqt5svg5-dev libqt5x11extras5-dev qttools5-dev \
2018-03-29 17:00:53 +00:00
qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins
2016-12-19 08:22:59 +00:00
2013-05-03 20:25:57 +00:00
## How to build
First, clone this repository, e.g.:
git clone git://github.com/goldendict/goldendict.git
2013-07-09 09:07:27 +00:00
And then invoke `qmake-qt4` and `make` :
2013-05-03 20:25:57 +00:00
2013-07-09 09:07:27 +00:00
cd goldendict & & qmake-qt4 & & make
2013-05-03 20:25:57 +00:00
2016-12-19 08:22:59 +00:00
In case when `qmake-qt4` does not exist, try using `qmake` but make sure it is indeed from the Qt 4 installation.
On the other hand, if you want to use `qt5` , make sure that `qmake` is from Qt 5 installation. If not, you can try
finding it at a path like `/usr/lib/x86_64-linux-gnu/qt5/bin/qmake` .
2013-05-03 20:25:57 +00:00
Alternatively, you might want to load `goldendict.pro` file from within Qt Creator, especially on Windows.
2017-07-05 14:58:43 +00:00
Note: To compile with `libhunspell` older than 1.5 pass `"CONFIG+=old_hunspell"` to `qmake` .
2015-10-25 13:54:38 +00:00
### Building with Chinese conversion support
To add Chinese conversion support you need at first install libopencc-dev package:
sudo apt-get install libopencc-dev
Then pass `"CONFIG+=chinese_conversion_support"` to `qmake`
qmake "CONFIG+=chinese_conversion_support"
2014-05-05 14:01:50 +00:00
### Building with Zim dictionaries support
2015-01-22 15:17:05 +00:00
To add Zim and Slob formats support you need at first install lzma-dev package:
2014-05-05 14:01:50 +00:00
2015-10-25 13:54:38 +00:00
sudo apt-get install liblzma-dev
2014-05-05 14:01:50 +00:00
Then pass `"CONFIG+=zim_support"` to `qmake`
qmake "CONFIG+=zim_support"
### Building without extra tiff handler
If you have problem building with libtiff5-dev package, you can pass
`"CONFIG+=no_extra_tiff_handler"` to `qmake` in order to disable extra tiff support
(without such extra support some b/w tiff images will not be displayed):
qmake "CONFIG+=no_extra_tiff_handler"
2014-05-20 13:59:56 +00:00
### Building without Epwing format support
If you have problem building with libeb-dev package, you can pass
`"CONFIG+=no_epwing_support"` to `qmake` in order to disable Epwing format support
qmake "CONFIG+=no_epwing_support"
2018-03-29 17:00:53 +00:00
### Building without internal audio players
2013-06-18 01:11:21 +00:00
If you have problem building with FFmpeg/libao (for example, Ubuntu older than 12.04), you can pass
2018-03-29 17:00:53 +00:00
`"CONFIG+=no_ffmpeg_player"` to `qmake` in order to disable FFmpeg+libao internal audio player back end:
2013-06-18 01:11:21 +00:00
2018-03-29 17:00:53 +00:00
qmake "CONFIG+=no_ffmpeg_player"
If you have problem building with Qt5 Multimedia or experience GStreamer run-time errors (for example, Ubuntu 14.04), you can pass
`"CONFIG+=no_qtmultimedia_player"` to `qmake` in order to disable Qt Multimedia internal audio player back end:
qmake "CONFIG+=no_qtmultimedia_player"
2013-06-18 01:11:21 +00:00
2014-05-05 14:01:50 +00:00
< b > NB:</ b > All additional settings for `qmake` that you need must be combined in one `qmake` launch, for example:
2018-03-29 17:00:53 +00:00
qmake "CONFIG+=zim_support" "CONFIG+=no_extra_tiff_handler" "CONFIG+=no_ffmpeg_player"
2014-05-05 14:01:50 +00:00
2013-06-18 01:11:21 +00:00
Then, invoke `make clean` before `make` because the setting change:
make clean & & make
2016-04-07 21:45:27 +00:00
### Building under Windows with MS Visual Studio
To build GoldenDict with Visual Studio take one of next library packs and unpack it to `"winlibs/lib/msvc"` folder in GoldenDict sources folder.
2017-07-05 15:12:41 +00:00
[GoldenDict_libs_VS2013_x86_v4.7z ](http://www.mediafire.com/file/3il4vr1l8299nxn/GoldenDict_libs_VS2013_x86_v4.7z ) - for MS Visual Studio 2013, 32 bit
[GoldenDict_libs_VS2013_x64_v4.7z ](http://www.mediafire.com/file/2itgg8bafppg6lw/GoldenDict_libs_VS2013_x64_v4.7z ) - for MS Visual Studio 2013, 64 bit
[GoldenDict_libs_VS2015_x86_v4.7z ](http://www.mediafire.com/file/0a7ygy9rn99oevm/GoldenDict_libs_VS2015_x86_v4.7z ) - for MS Visual Studio 2015, 32 bit
[GoldenDict_libs_VS2015_x64_v4.7z ](http://www.mediafire.com/file/yoy2q8af0s1467m/GoldenDict_libs_VS2015_x64_v4.7z ) - for MS Visual Studio 2015, 64 bit
2016-04-07 21:45:27 +00:00
To create project files for Visual Studio you can pass `"-tp vc"` option to `qmake` .
Note: In Qt 5.6.0 and later the `Webkit` module was removed from official release builds. You should to build it from sources to compile GoldenDict.
2013-05-03 20:25:57 +00:00
## Installation
Installation is an optional step since the built binary can be used as-is without installation. But you can properly install via:
make install
< b > NB:< / b > Don't do that on Windows!
## License
This project is licensed under the < b > GNU GPLv3+</ b > license, a copy of which can be found in the `LICENSE.txt` file.
## Support
2013-06-13 19:17:12 +00:00
Users looking for support should file an issue in the official [GoldenDict issue tracker ](https://github.com/goldendict/goldendict/issues ),
or even better: submit a [pull request ](https://github.com/goldendict/goldendict/pulls ) if you have a fix available.
General questions should be asked on the [official GoldenDict forum ](http://goldendict.org/forum/ ).