Permalink
Fetching contributors…
Cannot retrieve contributors at this time
107 lines (74 sloc) 3.06 KB
Quick start instructions
========================
This is only rough at the moment, need to expand it somewhat
To obtain a list of targets use the command:
make help
A. Compiling WikiReader program and QT4 simulator
=================================================
1) make sure samo-lib/include/config.h is setup
copy from samo-lib/include/config.h-default
The make files will do the copy, but the
BOARD_SAMO_V1 must be uncommented by manual editing
2) make clean
There maybe errors because of missing programs, these will be
indicated by an apt-get install message to show the Ubuntu 9.10
package(s) to install.
3) make
B. Compiling a test database (single language version for an old kernel.elf)
============================
** This section is now deprecated **
Requires Python2.6 ocaml PHP5 LaTeX and dvipng
1) mkdir -p image work
make DESTDIR=image WORKDIR=work \
XML_FILES="XML-Licenses/en/license.xml XML-Licenses/en/terms.xml xml-file-samples/japanese_architects.xml" iprch
#Note: iprch => index parse render combine hash
2) Optionally: simulate using qt4-simulator:
make DESTDIR=image fonts-install sim4
3) make DESTDIR=image install
4) Format a microSD card as FAT32 and copy the contents on image to it
e.g. mkfs.vfat -F 32 -n wikird /dev/sd<id-and-partition>
mount /dev/sd<id-and-partition> /mnt
cp image/* /mnt/
C. Compiling a test database (multiple language version - latest kernel.elf)
============================
1) mkdir -p image work
make DESTDIR=image WORKDIR=work WIKI_LANGUAGE=en \
XML_FILES="XML-Licenses/en/license.xml XML-Licenses/en/terms.xml xml-file-samples/japanese_architects.xml" \
cleandirs createdirs iprc
#Note: iprc => index parse render combine
2) Optionally: simulate using qt4-simulator:
make DESTDIR=image fonts-install nls-install sim4
4) Install fonts and programs
make DESTDIR=image install
5) format a microSD card as FAT32 and copy the contents on image to it
e.g. mkfs.vfat -F 32 -n wikird /dev/sd<id-and-partition>
mount /dev/sd<id-and-partition> /mnt
cp -r image/* /mnt/
D. Ubuntu Server 12.10
======================
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server mg lynx bash-completion
sudo apt-get install git build-essential flex bison
sudo apt-get install xfonts-utils ocaml guile-2.0 gforth
sudo apt-get install sqlite3 qt4-qmake libqt4-dev
sudo apt-get install cjk-latex
sudo apt-get install php5-cli
sudo apt-get install dvipng
sudo apt-get install mecab-ipadic-utf8
sudo apt-get install php5-sqlite php5-tidy
sudo apt-get install gawk
sudo apt-get install python-gd python-mecab python-lzma
git clone https://github.com/wikireader/wikireader.git
cd wikireader/
make clean
make requirements
make
# binutils fails ... add -i386 if 32bit system
cp SavedCaches/config.cache-binutils-12.10 host-tools/binutils-2.10.1/build/config.cache
make
# gcc fails ... add -i386 if 32bit system
cp SavedCaches/config.cache-gcc-12.10 host-tools/gcc-3.3.2/build/config.cache
make
# system should build
ls -l wiki/wiki.app