To compile stardict3.0.0 correctly in debian4.0 (etch)

Source: Internet
Author: User
In debian4.0 (etch), follow the steps to correctly compile stardict3.0.0-Linux Release Technology-Debian information. For more information, see the following. By default, startdict 3.0.0 compiles several required function libraries. The version is later than the one included in debian 4.0. Therefore, some additional modifications are required for compilation. because stardict is based on the Program gtk2.0, first confirm that you have installed the libgtk2.0-dev package. Next:

0) download the source code http://sourceforge.net/project/s... 79 & package_id = 82452 what we need is the stardict-3.0.0.tar.bz2 file. Then extract it to a temporary directory, such as/tmp/stardict-3.0.0/

1) export PKG_CONFIG =/usr/bin/pkg-config

2)./configure -- disable-espeak -- disable-gucharmap -- disable-spell -- disable-festival

(Because my desktop is xfce, I also added a parameter -- disable-gnome-support when compiling. If this parameter is added, an additional file needs to be modified, which will be detailed below ).

3) Modify./src/dictmanagedlg. cpp row 1939th and change the red part to the green part.

Image = gtk_image_new_from_stock (GTK_STOCK_SELECT_ALL, GTK_ICON_SIZE_MENU );

==>

Image = gtk_image_new_from_stock ("gtk_select_all", GTK_ICON_SIZE_MENU );

4) Modify./src/Makefile, find the line starting with STARDICT_LIBS = (a long line), and add-lgthread-2.0 at the end of the line

5) make

6) make install

Note: If you have added -- disable-gnome-support during configuration, You need to modify./src/prefsdlg. cpp

First find
GtkWidget * label = gtk_label_new (_ ("real‑letts search path :"));

Change
Label = gtk_label_new (_ ("real‑letts search path :"));

Then, locate the 20 rows above.
Void PrefsDlg: setup_dictionary_sound_page ()
{
GtkWidget * vbox = prepare_page (GTK_NOTEBOOK (notebook), _ ("Sound"), GTK_S
TOCK_YES );
GtkWidget * vbox1 = gtk_vbox_new (false, 6 );
Gtk_box_pack_start (GTK_BOX (vbox), vbox1, false, false, 0 );

GtkWidget * check_button;

Add a line under this Code
GtkWidget * label;
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.