[lazarus] native Win32 Interface

Marco van de Voort marcov at stack.nl
Tue Aug 27 18:09:20 EDT 2002


> It appears that Lazarus has three main thrusts Linux, windows and bsd (the
> poll on the site). There is a win32 api interface, and gtk seems to be for
> Linux. (I don't know about bsd). 

BSD is in nearly everything 99.9% like Linux. Linux partly inherited from
BSD (see various manpages), and both lean heavily on GNU.

Most of nearly all differences needed are in the command names for the build
process, not in the actual code. (e.g. 

- GNU make, that Linux packages as default is called "gmake" under *BSD, 

- bash is not mandatory in /bin and symlinked to /bin/sh, but in
   /usr/local/bin, and /bin/sh is a the original bourne shell.
  #!/usr/bin/env bash is the good way to start a script. Half of the scripts
   would run with sh anyways.

- Most programs should install to /usr/local, since /usr/* is
   generally considered off limits

- libgcc isn't autolinked, and needs sometimes an explicit addition.
)

A nice example are the GTK2 headers on sourceforge. Didn't change a single
letter sourcecode, but had to patch all compile scripts, and fiddle a bit
with the link options to get it running.






More information about the Lazarus mailing list