readme.txt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. wxWidgets PDA/Embedded System Emulator
  2. ======================================
  3. This is a simple display emulator for embedded
  4. applications (wxWidgets or other) that use
  5. an X server. The Familiar Linux distribution
  6. is one such environment, using Tiny-X.
  7. wxEmulator uses Xnest, which is the XFree86
  8. X server compiled to show a virtual X desktop
  9. in a window. wxEmulator hijacks the Xnest
  10. window by reparenting its window, and shows
  11. this window with appropriate PDA-style decorations
  12. surrounding it.
  13. No real emulation is done, apart from the work
  14. that Xnest does. You compile your apps on your
  15. host as usual and test them out with the emulator
  16. to get an idea of the constraints of the embedded
  17. system display. Then compile the apps for your
  18. target system with a suitable cross-compiler,
  19. or if you have the luxury of lots of space on
  20. your target device, compile natively on the
  21. target.
  22. It is intended to create a tarball of the
  23. emulator, wxX11 and maybe some other useful
  24. components such as a simple window manager so that
  25. people can quickly start developing embedded
  26. GUI applications without the need for actual
  27. target hardware.
  28. Running wxEmulator
  29. ==================
  30. Make sure Xnest is in your PATH. You can download
  31. a binary from the XFree86 ftp server or a mirror,
  32. or you can compile Xnest from source -- but this
  33. downloading XFree86 source in its entirety and
  34. compiling it. Say goodbye to half a gig of disk
  35. space if you take this option.
  36. Then run wxEmulator:
  37. % emulator &
  38. or
  39. % emulator mydevice.wxe &
  40. to specify a configuration file. Run emulator --help
  41. to show what options are available, such as --use-display
  42. for specifying a display other than :100.
  43. After a brief flicker in which wxEmulator steals
  44. Xnest's window, you should see an emulated iPAQ with
  45. a checked screen that indicates raw X with nothing else
  46. running.
  47. Running any X applications with the Xnest display
  48. number (currently 100) will show those applications
  49. in the emulator window instead of the normal desktop.
  50. For example:
  51. % xeyes -display :100 &
  52. Before running any other programs, run a window
  53. manager such as twm:
  54. % twm -display :100 &
  55. If the X program or WM you want to run doesn't support the
  56. -display argument, try exporting the DISPLAY variable
  57. before running it. E.g.:
  58. % export DISPLAY=:100
  59. % xterm &
  60. For details on the configuration file format, please
  61. see default.wxe. Eventually it will support
  62. device buttons.
  63. Compiling wxEmulator
  64. ====================
  65. You need to use wxX11 -- no other port is supported.
  66. Configure and make wxX11 in the usual way (see docs/x11/install.txt
  67. at the wxWidgets top level), then compile wxEmulator
  68. using the makefile that configure created.
  69. Have fun!
  70. Julian Smart, March 2002