/components/codetools/examples/README.txt

http://github.com/graemeg/lazarus · Plain Text · 39 lines · 31 code · 8 blank · 0 comment · 0 complexity · 982e0ab6717d4977d8f524aeb9b907a3 MD5 · raw file

  1. Examples for the CodeTools
  2. Some basic examples run out of the box.
  3. Some examples require the path of the FPC sources, which can be given via the
  4. environment variable FPCDIR.
  5. If you see an error message like this:
  6. Scanning FPC sources may take a while ...
  7. TDefinePool.CreateFPCSrcTemplate FPCSrcDir does not exist: ...
  8. Then you must set the FPCDIR variable and start the example again. For example:
  9. Under linux:
  10. export FPCDIR=/home/username/freepascal/fpc
  11. For instance the FPC 2.4.2 source directory contains the following files:
  12. compiler
  13. ide
  14. installer
  15. Makefile
  16. Makefile.fpc
  17. packages
  18. rtl
  19. tests
  20. utils
  21. See here for more information:
  22. http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources
  23. The examples will scan the directories and store the result in a file named
  24. 'codetools.config'. So the next time you start any of the examples it does
  25. not need to scan.
  26. List of environment variables:
  27. FPCDIR = path to FPC source directory
  28. PP = path of the Free Pascal compiler. For example /usr/bin/ppc386.
  29. LAZARUSDIR = path of the lazarus sources
  30. FPCTARGET = FPC target OS like linux, win32, darwin
  31. FPCTARGETCPU = FPC target cpu like i386, x86_64, arm