[Linux Tips] Ubuntu 14.04 Compile, install, configure the latest development version Goldendict

Source: Internet
Author: User
Tags parse error git clone

1. Background information

Goldendict is a very good cross-platform electronic dictionary software, support StarDict, Babylon and many other dictionaries. Its PC version is based on Qt and is completely free, open source and no ads. Goldendict's Android version is another new implementation of the system, using the paid version of the ads, the free version of the strategy to display ads, here is not discussed in detail.

Goldendict's address on GitHub is https://github.com/goldendict/goldendict, and as of Now (2015-10-17) There have been 1872 commits, 36-bit contributor, 184 times Fork, development is still very active.

But one problem is that the release of the software is not very well maintained. The download link on the official website http://goldendict.org/Godendict 1.0.1 was released in 2010 and now has 1337 commits.

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 constantly being updated, so it's not a hassle to compile manually.

Users under Linux are less fortunate. Although there is also a page https://github.com/goldendict/goldendict/wiki/Early-Access-Builds-for-Linux-Portable, but has not been maintained for more than two years. The Ubuntu software warehouse is not much better, the above package has been discontinued since 2013, and there is currently no active PPA maintainer.

So under Linux, if you experience the latest goldendict, manual compilation is the only option.

2. Download, compile, install

The following will not nonsense, introduce the Ubuntu installation godendict development version of the method. The following description applies to Ubuntu 14.04, and if you are using a different distribution, you may need to make some necessary adjustments.

Install the necessary packages first:

sudo apt-get install git g++ libqt4-devsudo apt-get install Libvorbis-dev libhunspell-dev libao-dev Libavutil-dev libavfor Mat-devsudo apt-get Install Libxtst-dev libeb16-dev zlib1g-dev libbz2-dev liblzo2-dev Libtiff5-dev

Then download the latest source code:

CD ~git clone Https://github.com/goldendict/goldendict.git

Go to the Godendict directory and start compiling:

CD Goldendictqmakemake

Finally, install the compiled binaries:

sudo make install

After completion, Goldendict's main program is located in the/usr/local/bin directory, which can then be manually added to the desktop.

3. Simple configuration, User Guide

If you haven't used Goldendict before, take a look at this section.

3.1 Preparing the dictionary file

Godendict need to run the external dictionary, first put the dictionary you need to use in any directory:

3.2 Adding a dictionary file

Then open the Godendict edit/dictionaries menu, add just the directory, tick Recursive, then click Rescannow.

When you're done, you'll see the newly added dictionary in the Dictionaries page:

Here you can change the order in which the dictionaries are displayed by dragging and dropping.

3.3 Set the theme style you like

To open the Godendict edit/preferences menu, you can toggle the display style to choose the style you prefer, such as the Lingvo theme:

3.4 Configuring Wikipedia

By default, the integrated English Wikipedia in godendict will prompt for each query:

Query Error:xml Parse error:unexpected end of file at

This is caused by the HTTP protocol not working. The workaround is simple: Open the Edit/dictionaries menu, click wikipedia, and then change the address of the English Wikipedia to https://en.wikipedia.org/w:

Now Goldendict will be able to display Wikipedia's content normally:

3.5 Adding phonetic fonts

I often put a golden hill on top of the query results a concise English-Chinese dictionary used to display the phonetic transcription. The dictionary uses a font called Kingsoft Phonetic Plain When it displays the phonetic transcription. Because the font has not been installed, the phonetic transcription shown above is incorrect. However, if you copy the fonts under Windows directly to Linux, you will find a box, which is caused by the TTF file encoding under Windows and the Linux difference. In order to display the phonetic transcription normally under Linux, the original TTF file needs to be encoded and adjusted. Here is a dedicated TTF file made by netizens:

Save the picture locally, and then change the extension to. rar to extract, you can get the file Kingsoft-phonetic-unicode.ttf. Copy this file to the/usr/share/fonts/truetype directory, then change the permissions to 644 and then log back in to make the font work.

If this image fails, you can download the font file from here: Http://pan.baidu.com/s/1qWnC9Gw. The resulting effect is as follows:

4. Compilation issues

In theory, the following questions will not appear as long as you follow the instructions above . If it does, it is basically missing the corresponding development file. Here are some things listed, just for the convenience of people who encounter problems can be identified by the search engine search for the corresponding problem.

A) If you encounter the following prompt at compile time:

Hotkeywrapper.hh:11:35:fatal error:x11/extensions/record.h:no such file or directory #include <x11/extensions/ Record.h>                                   ^compilation Terminated.make: * * * [BUILD/MAIN.O] Error 1

Then you need to make sure that the package is installed: Libxtst-dev

b) If you encounter the following prompt at compile time:

Epwing_book.hh:21:19:fatal error:eb/eb.h:no such file or directory #include <eb/eb.h>                   ^compilation terminate D.make: * * * [BUILD/MAINWINDOW.O] Error 1

Then you need to make sure that the package is installed: Libeb16-dev

c) If you encounter the following prompt at compile time:

Bgl_babylon.hh:25:18:fatal error:zlib.h:no such file or directory #include <zlib.h>                  ^compilation terminated. Make: * * * [BUILD/BGL_BABYLON.O] Error 1

Then you need to make sure that the package is installed: Zlib1g-dev

D) If you encounter the following prompt at compile time:

Decompress.cc:3:19:fatal error:bzlib.h:no such file or directory #include "bzlib.h"                   ^compilation terminated.make: * * * [BUILD/DECOMPRESS.O] Error 1

Then you need to make sure that the package is installed: Libbz2-dev

e) If you encounter the following prompt at compile time:

Mdictparser.cc:26:23:fatal error:lzo/lzo1x.h:no such file or directory #include <.zo/lzo1x.h>                       ^compilation t Erminated.make: * * * [BUILD/MDICTPARSER.O] Error 1

Then you need to make sure that the package is installed: Liblzo2-dev

f) If you encounter the following prompt at compile time:

Tiff.cc:12:18:fatal error:tiff.h:no such file or directory #include "tiff.h"                  ^compilation terminated.make: * * * [Bui LD/TIFF.O] Error 1

Then you need to make sure that the package is installed: Libtiff5-dev

[Linux Tips] Ubuntu 14.04 Compile, install, configure the latest development version Goldendict

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.