Building Tagaini Jisho on Ubuntu Hardy 8.04

Asked by computermacgyver

I am able to successfully build and run on Ubuntu Hardy, and I wanted to post here for anyone else looking to do this:

Download src tar.
http://www.tagaini.net/download

Enable Hardy Backports
In the System->Administration->Software Origins->Updates dialog, place a check mark in the box for "hardy-backports"
See https://help.ubuntu.com/community/UbuntuBackports for reference and other options
Be sure to select reload to the dialog that pops up after you click close to rebuild your software lists.

Run update manager, install any updates related to qt4/phyton. Make sure that the following are installed

In a terminal, execute the following to get the required packages for building:

sudo apt-get install python-qt4-common python-qt4 python-qt4-sql pythyon-qt4-dev libqt4-dev scons

Go to the directory with the tar file and untar it.
tar -xvf tagainijisho-0.2.1a.tar.gz
cd tagainijisho-0.2.1a

Edit the SConstruct file
Even though I have scons v0.97.0d20071203.r2509 in Hardy, which should meet the requirements given in the README file, a few changes were necessary.
Here is a diff between the file and my changes:

26c26
< opts = Options()
---
> opts = Variables()
29,30c29,30
< opts.Add(BoolOption('release', 'Build an optimized binary without debugging symbols', False))
< opts.Add(ListOption('lang', 'Languages to include when building the dictionary files', 'en', ['en', 'fr', 'de', 'es', 'ru']))
---
> opts.Add(BoolVariable('release', 'Build an optimized binary without debugging symbols', False))
> opts.Add(ListVariable('lang', 'Languages to include when building the dictionary files', 'en', ['en', 'fr', 'de', 'es', 'ru']))

Basically, I needed to change "Options()" to "Variables()" on line 26, and change "BoolVariable" to "BoolOption" and "List Variable" to "ListOption" on lines 29 and 30 respectively.

Save the file and then at the command prompt type:
scons release=yes

Eat dinner. Come back and and run:
sudo scons release=1 install

You're done. Tagaini Jisho is now in /usr/bin/tagainijisho . Create a launcher in the Applications menu if you like.

Question information

Language:
English Edit question
Status:
Solved
For:
Tagaini Jisho Edit question
Assignee:
No assignee Edit question
Solved by:
computermacgyver
Solved:
Last query:
Last reply:
Revision history for this message
computermacgyver (computermacgyver) said :
#1

Solved.

Revision history for this message
Gnurou (gnurou) said :
#2

Thanks, I've changed the SConstruct file to be compatible with earlier versions of SCons, too.