Ubuntu10.10 install the hacker's back word Reciteword

Source: Internet
Author: User
Reciteword is a Chinese interface of the back word software (also known as hackers back words), powerful functions. Installing Ubuntu may encounter some minor difficulties. This article describes how to compile and install the source code. TableofContents1 download and installation (reprinted part) 1.1 download program 1.2 prepare tool 1.3 install hacker back words 2 compile errors 3 problems solved 1 download and installation (reprinted part) 1.1 download program recit

Reciteword is a Chinese interface of the back word software (also known as hackers back words), powerful functions. Installing Ubuntu may encounter some minor difficulties.

This article describes how to compile and install the source code.

Table of Contents
1. Download and install (reprinted)
1.1 download the program
1.2 prepare tools
1.3 install the hacker's back words
2. Compilation Error
3. Problem Solving
1. Download and install (reprinted)
1.1 download the program

The reciteword website is: http://reciteword.cosoft.org.cn/reciteword/index.html

The author provides the following packages. Download the source package as needed:

Source code of the main program (required) reciteword

  • Textbook (important) reciteword-books
  • Dictionary (optional) reciteword-dicts
  • Skin (optional) reciteword-skins-rw
  • Real-person pronunciation wyabdcrealreceivletts (optional, real-person voice of stardict)
1.2 prepare tools

Install the required package

Apt-get install libesd0-dev pkg-config libgtk2.0-dev esound

For Ubuntu 8.04, The pulseaudio-esound-compat and ubuntu-desktop files may be deleted during installation. install them later. If not, after entering the desktop, the desktop is not working properly. After restarting, press ctrl + alt + f1 to enter the console and run the following command:

Sudo apt-get install ubuntu-desktop will install these two files, www.linuxidc.com after restarting the normal installation of libesd0-alsa0, ensure that after the esd is enabled, still can use alsa.

Apt-get install libesd-alsa0 enables esd, which is required for reciteword sound playback :( assuming it is a gnome environment)

Choose system> preference> sound effect. In the displayed window, choose sound> allow software sound mixing (ESD ).

To make the settings take effect, we recommend that you restart the system.

1.3 install the hacker's back words

There is nothing special about the installation process. After Entering the file containing reciteword:

Tar-xvfj reciteword-* .tar.bz2

Cd reciteword-0 .*

./Configure-prefix =/usr

Make

Sudo make install

2. Compilation Error

This compilation error occurs in ubuntu.

Bookfile. cpp: In function 'gchar * rw_book_get_value (const gchar *, gchar *, gint )':
Bookfile. cpp: 95: error: invalid conversion from 'const char * 'to 'gchar *'
Bookfile. cpp: In function 'gint rw_book_get_file_info (gchar *, gchar **, gchar **)':
Bookfile. cpp: 140: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 153: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 154: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 155: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 156: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 157: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: In function 'bookfile * rw_book_open_file (gchar *)':
Bookfile. cpp: 228: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 229: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 230: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 231: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 232: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 233: warning: deprecated conversion from string constant to 'gchar *'
Bookfile. cpp: 209: warning: ignoring return value of 'size _ t fread (void *, size_t, size_t, FILE *) ', declared with attribute warn_unused_result
Make [3]: *** [bookfile. o] Error 1
Make [3]: Leaving directory '/tmp/word/reciteword-0.8.4/src'
Make [2]: *** [all-recursive] Error 1
Make [2]: Leaving directory '/tmp/word/reciteword-0.8.4/src'
Make [1]: *** [all-recursive] Error 1
Make [1]: Leaving directory '/tmp/word/reciteword-0.8.4'
Make: *** [all] Error 2
3. Problem Solving

Bookfile. cpp: 95: error: invalid conversion from 'const char * 'to 'gchar *

Based on the above error, find bookfile. cpp and add two lines of code to the header file.

# Include"Bookfile. h"
# Include
# Include
# Include
# Include
# Include

Const gchar * str1;
Const gchar * str2 = strchr (str1, 'A ');
Find the function (about 90 rows)
Static gchar *
Rw_book_get_value (const gchar * str1, gchar * str2, gint utf8)
-----------------------------------------------------
Set the original tmp1 = strstr (str1, str2 );
Change tmp1 = (gchar *) strstr (str1, str2 );

After the above changes, compile again.

For the same question, see Http://gcc.gnu.org/gcc-4.4/porting_to.html

Access: http://ljp.9t9t.info

Author: Li Junpeng 

Date: 2010-10-30 23:34:45 CST

HTML generated by org-mode 6.21b in emacs 23

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.