[Lazarus] Installing FPC/Lazarus on Windows using SVN, no binaries

Marcos Douglas md at delfire.net
Fri Jun 4 19:59:03 CEST 2010


On Thu, Jun 3, 2010 at 4:48 PM, Dimitrios Chr. Ioannidis
<dioannidis at artesoft.gr> wrote:
> Hi,
>
>> Or does someone know an easier/better way? Please tell.
>
> just my 2 ...
>
>
> Plz, replace the .. with the full path.
>
> get the last fpc binary only ....
>
>
> make a dir tree something like
>
> ..\FreePascal
> ..\FreePascal\binutils
> ..\FreePascal\binutils\arm-wince
> ..\FreePascal\binutils\i386-win32
> ..\FreePascal\binutils\x86_64-win64
> ..\FreePascal\fpc\source
> ..\FreePascal\fpc\svn
> ..\FreePascal\lazarus
>
> place the latest stable only ppc386.exe in ..\FreePascal\binutils
>
> for binutils
>
> checkout the
> http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_4/install/crossbinwce
> or http://svn.freepascal.org/svn/fpcbuild/trunk/install/crossbinwce at
> ..\FreePascal\binutils\arm-wince
>
> similar checkout the
> http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_4/install/binw32 or
> http://svn.freepascal.org/svn/fpcbuild/branches/trunk/install/binw32 at
> ..\FreePascal\binutils\i386-win32
>
> dido similar checkout the
> http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_4/install/binw64 or
> http://svn.freepascal.org/svn/fpcbuild/branches/trunk/install/binw64 at
> ..\FreePascal\binutils\x86_64-win64
>
>
> checkout the http://svn.freepascal.org/svn/fpc/branches/fixes_2_4 or
> http://svn.freepascal.org/svn/fpc/trunk in ..\FreePascal\fpc\svn
>
> checkout the http://svn.freepascal.org/svn/lazarus/trunk in
> ..\FreePascal\lazarus
>
>
>
>
> now every time you want a new fpc and lazarus recompiled make a bat file
> similar to this and run it.
>
>
>
> ---
>
> @echo off
>
> TortoiseProc.exe /command:update /path:"..\FreePascal\binutils\arm-wince"
> /closeonend:3
> TortoiseProc.exe /command:update /path:"..\FreePascal\binutils\i386-win32"
> /closeonend:3
> TortoiseProc.exe /command:update /path:"..\FreePascal\binutils\x86_64-win64"
> /closeonend:3
> TortoiseProc.exe /command:update /path:"..\FreePascal\fpc\svn" /closeonend:3
> TortoiseProc.exe /command:export /path:"..\FreePascal\fpc\svn" /closeonend:3
> rmdir /S /Q "..\FreePascal\fpc\bin"
> rmdir /S /Q "..\FreePascal\fpc\doc"
> rmdir /S /Q "..\FreePascal\fpc\examples"
> rmdir /S /Q "..\FreePascal\fpc\msg"
> rmdir /S /Q "..\FreePascal\fpc\units"
> move "..\FreePascal\fpc\source\svn" "..\FreePascal\fpc\source" /Y
> TortoiseProc.exe /command:update /path:"..\FreePascal\lazarus" /closeonend:3
>
> set
> path=..\FreePascal\binutils\i386-win32;..\FreePascal\binutils\x86_64-win64;..\FreePascal\binutils\arm-wince;..\FreePascal\fpc\source\utils\fpcm;%path%
>
> cd ..\FreePascal\fpc\source
>
> make distclean OS_TARGET=win32 CPU_TARGET=i386
> FPC=..\FreePascal\binutils\ppc386.exe
> make distclean OS_TARGET=win64 CPU_TARGET=x86_64
> FPC=..\FreePascal\binutils\ppc386.exe
> make distclean OS_TARGET=wince CPU_TARGET=arm
> FPC=..\FreePascal\binutils\ppc386.exe
>
> make all install OS_TARGET=win32 CPU_TARGET=i386 UPXPROG=echo OPT="-glw2"
> INSTALL_PREFIX=..\FreePascal\fpc FPC=..\FreePascal\binutils\ppc386.exe
>
> copy ..\FreePascal\binutils\fpc.cfg ..\FreePascal\fpc\bin\i386-win32
>
> set path=..\FreePascal\fpc\bin\i386-win32;%path%
>
> make all crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 UPXPROG=echo
> OPT="-glw2" INSTALL_PREFIX=..\FreePascal\fpc
>
> make all crossinstall OS_TARGET=wince CPU_TARGET=arm UPXPROG=echo
> OPT="-glw2" INSTALL_PREFIX=..\FreePascal\fpc BINUTILSPREFIX=arm-wince-
>
> cd ..\FreePascal\lazarus
>
> make distclean
>
> make all OPT="-glw2"
>
> pause

I made my own script (below), but I have some doubts:

####################################################################
@echo on

TortoiseProc.exe /command:update
/path:"c:\freepascal\binutils\arm-wince" /closeonend:3
TortoiseProc.exe /command:update
/path:"c:\freepascal\binutils\i386-win32" /closeonend:3
TortoiseProc.exe /command:update
/path:"c:\freepascal\binutils\x86_64-win64" /closeonend:3
TortoiseProc.exe /command:update /path:"c:\freepascal\fpc" /closeonend:3
TortoiseProc.exe /command:update /path:"c:\freepascal\lazarus" /closeonend:3

set path=c:\freepascal\binutils\i386-win32;c:\freepascal\binutils\x86_64-win64;c:\freepascal\binutils\arm-wince;c:\freepascal\fpc\utils\fpcm;%path%

cd c:\freepascal\fpc

make distclean OS_TARGET=win32 CPU_TARGET=i386
FPC=c:\freepascal\binutils\ppc386.exe
make distclean OS_TARGET=win64 CPU_TARGET=x86_64
FPC=c:\freepascal\binutils\ppc386.exe
make distclean OS_TARGET=wince CPU_TARGET=arm
FPC=c:\freepascal\binutils\ppc386.exe

make all install OS_TARGET=win32 CPU_TARGET=i386 UPXPROG=echo
OPT="-glw2" INSTALL_PREFIX=c:\freepascal\fpc
FPC=c:\freepascal\binutils\ppc386.exe

copy c:\freepascal\binutils\fpc.cfg c:\freepascal\fpc\bin\i386-win32

set path=c:\freepascal\fpc\bin\i386-win32;%path%

make all crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 UPXPROG=echo
OPT="-glw2" INSTALL_PREFIX=c:\freepascal\fpc
make all crossinstall OS_TARGET=wince CPU_TARGET=arm UPXPROG=echo
OPT="-glw2" INSTALL_PREFIX=c:\freepascal\fpc BINUTILSPREFIX=arm-wince-

cd c:\freepascal\lazarus

make distclean

make all OPT="-glw2"

pause
####################################################################



line: copy c:\freepascal\binutils\fpc.cfg c:\freepascal\fpc\bin\i386-win32
Who makes this file? It does exists in SVN.

----------------------------------

lines:
make all crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 UPXPROG=echo
OPT="-glw2" INSTALL_PREFIX=c:\freepascal\fpc

make all crossinstall OS_TARGET=wince CPU_TARGET=arm UPXPROG=echo
OPT="-glw2" INSTALL_PREFIX=c:\freepascal\fpc BINUTILSPREFIX=arm-wince-

These lines are necessary?

----------------------------------

line: make all OPT="-glw2"

ERROR:

C:\freepascal\lazarus>make all OPT="-glw2"
make -C lcl all
make[1]: Entering directory `C:/freepascal/lazarus/lcl'
c:/freepascal/binutils/i386-win32/rm.exe -f units/i386-win32/alllclunits.ppu
c:/freepascal/binutils/i386-win32/gmkdir.exe -p units/i386-win32
c:/freepascal/fpc/bin/i386-win32/ppc386.exe -gl  -Fu. -Fuforms -Fuwidgetset -Fii
nclude -FE. -FUunits/i386-win32 -glw2 -di386 alllclunits.pp
Free Pascal Compiler version 2.5.1 [2010/06/04] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
Fatal: Can't find unit system used by AllLCLUnits
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `C:/freepascal/lazarus/lcl'
make: *** [lcl] Error 2

----------------------------------

Somebody can help me?


Thanks,
Marcos Douglas




More information about the Lazarus mailing list