How to cross-platform compile stardict for Nokia N770
I am still staying in S'pore, where Nokia just begin n800 trial session, and the unknown date to sell. Last week, I booked a N800 from Amazon and my wife will goto US to pick up it for me. Interesting, the second day woot promoted Nokia N770 at $130. Wow, what price! So, canceled the 800 and I booked two 770 for my wife and me. What even more interesting is I found online shop all around the world begin to promote the N770, and expansys even deliver to S'pore with lower price. It's OK. The reason I love Nokia internet tablets is they are using Linux as OS, so that I can compile software I am interested in. Although I can only get the 770 next mth, I can not resist to do sth. for it. Due to my native language (Chinese), I think a good dictionary is a good startpoint. Guoyong has write a brief description of how to compile it. It's a great article, however, for a beginner, more details may be better. So, I add several points here.
- install cross-platform environment (scratchbox): please follow the instruction to install scratchbox (here)
- adjust auto build tools in scratchbox: please refer to this article to add a exectuable script autogen.sh into scratchbox.
- download a proper stardict source deb package: the reason to download a PROPER version of stardict is that the latest version need more dependences unsupported on the tablet. It's OK to use older version, as the new eye candy is not very important for me. We can get 2.4.5 from http://packages.ubuntu.com/.
- unpackage the source deb and apply patch: after download [dsc] [stardict_2.4.5.orig.tar.gz] [stardict_2.4.5-1.1.diff.gz], untar orig.tar.gz and zcat ../stardict_2.4.5-1.1.diff.gz | patch -p1
- modify configure.in in the source to disable some dependences unsupported on scratchbox
- modify debian/rules and debian/control in source to help debian package build system work
- dpkg-buildpackage
No comments:
Post a Comment