[lazarus] Win32, make and Makefiles

Marc Weustink weus at quicknet.nl
Mon Apr 24 11:22:33 EDT 2000



>The story continues....

If finally got something to compile at the winNT platform. Now I only get 
some errors of missing gtk functions but that will be solved.

I think what follows next should be part of the win32 HowTo

WinNT Howto.

For building Lazarus on a WinNT sytem follow the win32 Howto. AFTER you 
installed fpc (Step 1), keep the following in mind:

*) Long filenames on WinNT behave different than on win95/98.
    As a result of this, the make distributed with fpc doesn't
    work. Please go to the cywin site an grab the latest copy of
    make and ash (this version make uses sh) Copy make.exe and
    sh.exe to the pp\bin\win32 dir

    http://sourceware.cygnus.com/cygwin/mirrors.html

    /pub/cygwin/latest/ash
    /pub/cygwin/latest/make

*) Don't try to cycle the compiler (Step 5). For reasons I don't
    (want) to know, a make cycle fails. Please go to the fpc
    developer site and grab the latest build. Extract the
    basew32.zip, utilw32.zip ubasw32.zip, ufclw2.zip, ugtkw32.zip
    to you pp dir.

    ftp://ftp.freepascal.org/fpc/snapshot/win32/basew32.zip
    ftp://ftp.freepascal.org/fpc/snapshot/win32/utilw32.zip
    ftp://ftp.freepascal.org/fpc/snapshot/win32/ubasw32.zip
    ftp://ftp.freepascal.org/fpc/snapshot/win32/ufclw2.zip
    ftp://ftp.freepascal.org/fpc/snapshot/win32/ugtkw32.zip

*) Copy the pp\units\win32 files to the source dir (as created
    in step 4 of the Howto).

*) Forget step 7. You already have the latest compiler binaries.
    Do a make ide in the lazarus dir instead.

*) NOTE: If you store your source tree on a Samba share (like I
    do), you might not be able to link lazarus (also other
    binaries).
    Fpc creates a linker input scripts with 8.3 filenames. Samba
    has a different rule to create 8.3 filenames than M$ so this
    might result in names not accepted by the linker (ldw.exe)
    EXAMPLE:
      mylongfilename.ow --> (M$)     MYLONGF~1.OW
                        --> (Samba)  MYLONG~Q#.OW

      MYLONG~Q#.OW is not considered a valid name.

I hope this helps to build/use Lazarus in a NT box.

Marc







More information about the Lazarus mailing list