[Lazarus] Trying to get the svn v ersions of Lazarus and FPC running on Windows

Marcos Douglas md at delfire.net
Fri May 13 14:46:27 CEST 2011


On Fri, May 13, 2011 at 9:41 AM, Michael Schnell <mschnell at lumino.de> wrote:
> Hi again, experts,
>
> Since some time I am testing  Lazarus on Linux and I often upgrade FPC and
> Lazurs (and FPGUI) to the latest versions from the svn.
>
> I do:
>
> on the fpc source directory:
> svn checkout http://svn.freepascal.org/svn/fpc/trunk
>
> on the lazarus source directory:
> svn checkout http://svn.freepascal.org/svn/lazarus/trunk
>
> then
>
> on the fpc source directory I do:
> make clean all FPC=/home/mschnell/Downloads/fpc/ppc386
> (I hold a decent binary version of fpc (2.4.2) in
> /home/mschnell/Downloads/fpc just for this purpose)
> and
> make FPC=`pwd`/compiler/ppc386 install INSTALL_PREFIX=/usr
>
> Now I have the current version (2.5.1) of fpc in /usr/bin accessible by
> "fpc"
>
>
> in the lazarus source directory I do
> make clean all
>
> Then I start Lazarus and seemingly I can use the most recent version (at
> least with the gtk2 widget Type, and sometimes with the fpGUI Widget Type,
> too).
>
>
>
>
> I had the idea to test this on Windows as well.
>
> So using TortoiseSVN I fetched the current sources of fpc and Lazarus
>
> now in the fpc source directory I do:
> c:\fpc\2.4.2\bin\i386-win32\make.exe clean all
> FPC=c:\fpc\2.4.2\bin\i386-win32\ppc386.exe
> (I preserve a decent binary version of fpc in
> c:\fpc\2.4.2\bin\i386-win32\ppc386.exe just for this purpose)
> and
> c:\fpc\2.4.2\bin\i386-win32\make.exe install
> C:\Downloads\svn\fpc\trunk\compiler\ppc386.exe INSTALL_PREFIX=\fpc_2
>
> (Very astonished that c:\fpc_2 is 143 MB of size and contains hundreds of
> files), now I have the current version of fpc in \fpc_2 accessible (I don't
> use a PATH for fpc)
>
> I do an svn cleanup to be sure I have clean sources and then I would like to
> compile Lazarus with the new fpc installation, So in the Lazarus source
> directory I try:
> C:\fpc\2.4.2\bin\i386-win32\make.exe clean all
> FPC=c:\fpc_2\bin\i386-win32\ppc386.exe
>
> but I get:
>
> C:/fpc/2.4.2/bin/i386-win32/rm.exe -f ../units/i386-win32/fcllaz.ppu
> c:/fpc_2/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -gl -vewnhi -l -Fu.
> -FE.
> -FU../units/i386-win32 -di386 fcllaz.pas
> Free Pascal Compiler version 2.5.1 [2011/05/13] for i386
> Copyright (c) 1993-2011 by Florian Klaempfl and others
> Target OS: Win32 for i386
> Compiling fcllaz.pas
> Compiling registerfcl.pas
> Compiling lazaruspackageintf.pas
> Fatal: Can't find unit process used by RegisterFCL
> Fatal: Compilation aborted
> make.exe[1]: *** [fcllaz.ppu] Error 1
> make.exe[1]: Leaving directory
> `C:/Downloads/svn/lazarus/trunk/packager/registration'
> C:\fpc\2.4.2\bin\i386-win32\make.exe: *** [packager/registration] Error 2
>
>
> So I tried
> C:\fpc\2.4.2\bin\i386-win32\make.exe bigide
>  FPC=c:\fpc_2\bin\i386-win32\ppc386.exe
>
> that works.
>
> and then
> C:\fpc\2.4.2\bin\i386-win32\make.exe clean all
> FPC=c:\fpc_2\bin\i386-win32\ppc386.exe
> again the sa(i)d error
>
> But I do have lazarus.exe and startlazarus.exe in the Lazarus top directory
>
> So I can start it.
>
> It first complains aboiut fpc missing, and after setting the fpc path to
> c:\fpc_2\bin\i386-win32 (which was a bit complicated) when restarting
> lazarus it complains about
> fpc.cfg missing. I suppose it tries to find it in c:\fpc_2\bin\i386-win32 as
> well, but I am not sure. It in fact does not exist that path.
>
> Blindly, I copyied it from c:\fpc\2.4.2\bin\i386-win32\ there to.
>
> Now Lazarus starts without complaining.
>
> I can create a new application.
>
> But when compiling I get:
>
> "PPU Invalid Version 104"
> and
> "registerfcl.pas(42,22) Fatal: Cant find unit process used by RegisterFCL"
> (The same problem as when I tried to do "make all").
>
> Unfortunately I can't check the settings Lazarus uses, as when I do "Tools"
> "Options" (unfortunately the menes are German right now and I can't change
> them to English), Lazarus crashes with "access violation".
>
>
> How to proceed ?
>
> Thanks for any hints,
> -Michael

Hi Michael,
Try this: http://wiki.lazarus.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29
That is I use to compile on Windows.

Marcos Douglas

Marcos Douglas




More information about the Lazarus mailing list