[fpc-pascal] How to compile Lazarus program using only FPC?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Sep 25 09:14:19 CEST 2015


On 2015-09-25 02:52, Bo Berglund wrote:
> If absolutely necessary I will have to set up the RPi with a monitor,
> keyboard and mouse and install Lazarus and compile from there.

No need. Simply follow my instructions from my first reply in this
thread. Use the "show options" on your Linux system. Save those to a
file, tweak some paths to match your RPi, make the file executable on
the RPi and run.

Threads support under Unix-like systems is enabled by including the
cthreads unit as the first unit in your program.

uses
  {$IFDEF UNIX}
  cthreads,
  {$ENDIF}
  Classes,
  SysUtils,
  ...snip...


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list