GoldenDict 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
Make, GCC, Git
Qt framework. Minimum required version is 4.6. But Qt 4.7 or 4.8 is recommended.
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
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.
Alternatively, you might want to load goldendict.pro file from within Qt Creator, especially on Windows.
Note: To compile with libhunspell older than 1.5 pass "CONFIG+=old_hunspell" to qmake.
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"
Building with Zim dictionaries support
To add Zim and Slob formats support you need at first install lzma-dev and zstd-dev packages:
sudo apt-get install liblzma-dev libzstd-dev
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"
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"
Building without internal audio players
If you have problem building with FFmpeg/libao (for example, Ubuntu older than 12.04), you can pass
"CONFIG+=no_ffmpeg_player" to qmake in order to disable FFmpeg+libao internal audio player back end:
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"
NB: All additional settings for qmake that you need must be combined in one qmake launch, for example:
请发表评论