QuickStart 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Quick start instructions
  2. ========================
  3. This is only rough at the moment, need to expand it somewhat
  4. To obtain a list of targets use the command:
  5. make help
  6. A. Compiling WikiReader program and QT4 simulator
  7. =================================================
  8. 1) make sure samo-lib/include/config.h is setup
  9. copy from samo-lib/include/config.h-default
  10. The make files will do the copy, but the
  11. BOARD_SAMO_V1 must be uncommented by manual editing
  12. 2) make clean
  13. There maybe errors because of missing programs, these will be
  14. indicated by an apt-get install message to show the Ubuntu 9.10
  15. package(s) to install.
  16. 3) make
  17. B. Compiling a test database (single language version for an old kernel.elf)
  18. ============================
  19. ** This section is now deprecated **
  20. Requires Python2.6 ocaml PHP5 LaTeX and dvipng
  21. 1) mkdir -p image work
  22. make DESTDIR=image WORKDIR=work \
  23. XML_FILES="XML-Licenses/en/license.xml XML-Licenses/en/terms.xml xml-file-samples/japanese_architects.xml" iprch
  24. #Note: iprch => index parse render combine hash
  25. 2) Optionally: simulate using qt4-simulator:
  26. make DESTDIR=image fonts-install sim4
  27. 3) make DESTDIR=image install
  28. 4) Format a microSD card as FAT32 and copy the contents on image to it
  29. e.g. mkfs.vfat -F 32 -n wikird /dev/sd<id-and-partition>
  30. mount /dev/sd<id-and-partition> /mnt
  31. cp image/* /mnt/
  32. C. Compiling a test database (multiple language version - latest kernel.elf)
  33. ============================
  34. 1) mkdir -p image work
  35. make DESTDIR=image WORKDIR=work WIKI_LANGUAGE=en \
  36. XML_FILES="XML-Licenses/en/license.xml XML-Licenses/en/terms.xml xml-file-samples/japanese_architects.xml" \
  37. cleandirs createdirs iprc
  38. #Note: iprch => index parse render combine
  39. 2) Optionally: simulate using qt4-simulator:
  40. make DESTDIR=image fonts-install nls-install sim4
  41. 4) Install fonts and programs
  42. make DESTDIR=image install
  43. 5) format a microSD card as FAT32 and copy the contents on image to it
  44. e.g. mkfs.vfat -F 32 -n wikird /dev/sd<id-and-partition>
  45. mount /dev/sd<id-and-partition> /mnt
  46. cp -r image/* /mnt/