1. Background introduction GoldenDict is an excellent cross-platform electronic dictionary software that supports various dictionaries such as StarDict and Babylon. Its PC version is based on Qt and is completely free, open-source, and has no advertisement. The Android version of GoldenDict is another completely new implementation system. It uses the paid version to advertise and the free version to display the advertisement. We will not discuss it in detail here. The address of GoldenDict on GitHub is https: // githu
1. Background
GoldenDict is an excellent cross-platform electronic dictionary software that supports various dictionaries such as StarDict and Babylon. Its PC version is based on Qt and is completely free, open-source, and has no advertisement. The Android version of GoldenDict is another completely new implementation system. It uses the paid version to advertise and the free version to display the advertisement. We will not discuss it in detail here.
The address of GoldenDict on GitHub is https://github.com/goldendict/goldendict. at present (), there are already 1872 commit, 36-bit contributor, and 184 Fork, and development is still very active.
However, the problem is that the release and maintenance of the software is not perfect. Download link GodenDict 1.0.1 on the official website http://goldendict.org/was released in 2010, from now on there are 1337 commit.
If you are a Windows user and want to quickly install the latest development version of GoldenDict, you can open this link: https://github.com/goldendict/goldendict/wiki/early-access-builds-for-windows. This Wiki Page is continuously updated, saving you the trouble of manual compilation.
Linux users are not so lucky. Although there is also a page. The Ubuntu software warehouse is not much better. The above software package has also stopped updating since 2013, and there are no active PPA maintainers.
Therefore, in Linux, if you experience the latest GoldenDict, manual compilation is the only option.
2. Download, compile, and install
Next, let's take a look at how to install the GodenDict development edition in Ubuntu. The following description appliesUbuntu 14.04If the release version you are using is different, you may need to make some necessary adjustments.
First install the necessary software package:
123 |
sudo apt-get install git g++ libqt4-dev sudo apt-get install libvorbis-dev libhunspell-dev libao-dev libavutil-dev libavformat-dev sudo apt-get install libxtst-dev libeb16-dev zlib1g-dev libbz2-dev liblzo2-dev libtiff5-dev |
Then download the latest source code:
12 |
cd ~ git clone https: //github .com /goldendict/goldendict .git |
Go to the godendict directory and start compiling:
123 |
cd goldendict qmake make |
Finally, install the compiled binary file:
After that, the master program of GoldenDict is located in the/usr/local/bin directory and can be manually added to the desktop.
3. simple configuration and User Guide
If you have never used GoldenDict before, you can take a look at this section.
3.1 prepare dictionary files
GodenDict requires a plug-in to run the dictionary. First, put the dictionary you need into any directory:
3.2 add dictionary files
Then open the Edit/Dictionaries menu of GodenDict, add the directory just now, and selectRecursiveAnd then clickRescan now.
After completion, you can see the newly added dictionary on the Dictionaries page:
Here, you can drag and drop to change the display sequence of the dictionary.
3.3 set your favorite theme styles
Open the Edit/Preferences menu of GodenDict, and switch the Display style to your preferred style. For example, the Lingvo topic is displayed:
3.4 configure Wikipedia
By default, the integrated English Wikipedia in GodenDict will prompt every query:
1 |
Query error: XML parse error: unexpected end of file at 1,1 |
This is caused by the failure of the HTTP protocol. The solution is simple: Open the Edit/Dictionaries menu, click Wikipedia, and then change the Address of English Wikipedia to https://en.wikipedia.org/w:
Now, GoldenDict can display the content of Wikipedia normally:
3.5 Add a phonetic alphabet font
I often put a Kingsoft Concise English-Chinese dictionary at the top of the query results to display the phonetic symbols. This dictionary is called when displaying the phonetic alphabet.Kingsoft Phonetic Plain. Because the font is not installed yet, the above phonetic symbols are incorrectly displayed. However, if you copy the fonts in Windows to Linux, you will find all the boxes, which are caused by the differences between ttf file encoding in Windows and Linux. To display the phonetic symbols normally in Linux, You need to encode the original ttf file. Here is a dedicated ttf file prepared by a netizen:
Save the image to your local, and then change the extension to. rar unzip, you can get the file kingsoft-phonetic-unicode.ttf. Copy the file to the/usr/share/fonts/truetype directory, change the permission to 644, and then log on again to make the font take effect.
If the image is invalid, you can download the font file from here:
------------------------------------------ Split line ------------------------------------------
Free onHttp://linux.linuxidc.com/
Both the user name and password areWww.linuxidc.com
The specific download directory is in/October 14.04/October 23/October 23/Ubuntu/compile, install, and configure the latest development version of GoldenDict/
Download Method see http://www.linuxidc.com/Linux/2013-07/87684.htm
------------------------------------------ Split line ------------------------------------------
The final result is shown in:
4. compilation problems
TheoreticallyAs long as you follow the prompts above to installThe following issues will not occur. If this occurs, the corresponding development file is basically missing. Some situations are listed here, just to help people who encounter problems locate the problem through the search engine.
A) if the following prompt is displayed during compilation:
12345 |
hotkeywrapper.hh:11:35: fatal error: X11/extensions/record.h: No such file or directory #include ^ compilation terminated. make: *** [build/main.o] Error 1 |
Make sure that this package has been installed: libxtst-dev
B) if the following prompt is displayed during compilation:
12345 |
epwing_book.hh:21:19: fatal error: eb/eb.h: No such file or directory #include ^ compilation terminated. make: *** [build/mainwindow.o] Error 1 |
Make sure that this package is installed with: libeb16-dev
C) if the following prompt is displayed during compilation:
12345 |
bgl_babylon.hh:25:18: fatal error: zlib.h: No such file or directory #include ^ compilation terminated. make: *** [build/bgl_babylon.o] Error 1 |
Make sure that this package is installed with: zlib1g-dev
D) if the following prompt is displayed during compilation:
12345 |
decompress.cc:3:19: fatal error: bzlib.h: No such file or directory #include "bzlib.h" ^ compilation terminated. make: *** [build/decompress.o] Error 1 |
Make sure that this package is installed with: libbz2-dev
E) if the following prompt is displayed during compilation:
12345 |
mdictparser.cc:26:23: fatal error: lzo/lzo1x.h: No such file or directory #include <.zo/lzo1x.h> ^ compilation terminated. make: *** [build/mdictparser.o] Error 1 |
Make sure that this package is installed with: liblzo2-dev
F) if the following prompt is displayed during compilation:
12345 |
tiff.cc:12:18: fatal error: tiff.h: No such file or directory #include "tiff.h" ^ compilation terminated. make: *** [build/tiff.o] Error 1 |
Make sure that this package is installed with: libtiff5-dev
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-10/124459.htm