PDA

View Full Version : rockbox with wikipedia, along with the wiki convert guide~


JoshuaChang
04-29-2010, 13:05
rockbox with wikiviewer support dl link:
http://rapidshare.com/files/381624929/rockbox-cowond2_r25753_wiki-100429.7z

the tools & libs that need for convert wiki xml files:
http://rapidshare.com/files/381622301/d2_wiki.rar

english wikipedia dl link:
http://download.wikimedia.org/enwiki/20100312/enwiki-20100312-pages-articles.xml.bz2

wikipedia xml convert guide(sorry for my poor english:P):

the easy way(use an old version converter):
1. download the wiki file and extract it along with the convert_old.rar to a certain directory, like c:\converter
2.start a command prompt, change to the directory that you have created in step 1
3.using xmlconv to convert the xmlfile ,suppose the file name is:enwiki-20100312-pages-articles.xml, then you should enter :'xmlconv enwiki-20100312-pages-articles.xml enwiki-20100312', this should take a long time to convert...
4.use btcreate to convert the wwt and wwr file into wwi file, like this;'btcreate enwiki-20100312.wwt enwiki-20100312.wwr enwiki-20100312.wwi', this procedure may take a lot of memory, for example, the enwiki file eat around 800M...
5.well, it's done, the wwa file(s) generated in step3 and wwi file generated in step4 are we need, put then into a sdhc, along with the wiki_rockbox, start the d2, you should find it now.



the hard way(build you own new version converter):
1.download and install vmware workstation(yeah~don't ask me the link, you should knew:D)
2.download the linux dev environment peovided by rockbox:http://download.rockbox.org/vmware/Debian-4.7z, extract to a certain directory, like c:\Debian-4
3.download the wiki file and extract it along with the converter_new.rar into a certain directory, like c:\converter, NOTE: DO NOT extract the deb files!
4.run vmware, choose open existing vm, find the rockbox.vmx that we have extracted in step2(c:\Debian-4?), edit the setting, adjust the max memory usage to 1024M or above, in options page, add a new shared folder(in this sample, the share name is conv), and link it to the wiki xml's directory(c:\converter?)
5.start the rockbox env, using 'id:root | pwd:rockbox' to login
6.Xshells>Eterm enter the command prompt, change the directory into the shared folder we have created in step4, ie:i use the 'conv' as the share name, then i should enter:'cd ../mnt/hgfs/conv'
7.using 'dpkg -i libpcre3.deb /usr' and 'dpkg -i libpcre3-dev.deb /usr' to install the lib files needed by compiling
8.well, enter make, if you have follow the correct step, the files should compiled without error, after this, using 'install xmlconv /usr/bin', 'install btcreate /usr/bin', 'install btsearch /usr/bin' to install the tools we have just compiled
9.like the easy way, using 'xmlconv enwiki-20100312-pages-articles.xml enwiki-20100312' to convert the xml file, still, longtime to wait~~~
10.'btcreate enwiki-20100312.wwt enwiki-20100312.wwr enwiki-20100312.wwi' to create the wwi file, this procedure may eat up to 800m memory, that's why we need configure the vm's memory to 1024M or above:)
11.finally, you've done!!,the wwa file(s) and wwi file are we need, put then into a sdhc, along with the wiki_rockbox, start the d2, you should find it now.

have fun~~

ps:i don't know how much times the files can be downloaded in rapidshare, maybe someone can upload these small files into a more stable site?

cougarten
06-09-2010, 08:30
thank you :)
how can I tell which rockbox version you compiled?
I'd like to have 3.6 because it allready has the fft plugin and still supports the old themes...