summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/ptc/docs/INSTALL.txt
blob: 07cad0a57619860da4989ee7f820b0a029d36807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
The supported platforms are Linux, FreeBSD, Windows, Windows Mobile and DOS.

Generally you need the latest stable version of the Free Pascal Compiler, which
currently means version 2.6.2.

 - Compiling the library:
Before starting make sure the FPCDIR environment variable is set correctly.
For example: (windows, fpc version 2.6.2, default install dir)

  set FPCDIR=c:\fpc\2.6.2

To compile the library type:

  fpcmake -r
  make

Then you can do:

  make examples

And then try to run the programs in the demos/ and examples/ dirs.

If compiling the library fails, make sure you're using the GNU make and not
some other make! (e.g. GNU make is usually called 'gmake' on *BSD)

'make -v' should report:
  GNU Make version x.xx.x, ... etc. :)

On Windows and DOS this is the 'make' that comes with Free Pascal.