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

Dimitrios Chr. Ioannidis dioannidis at artesoft.gr
Thu Jun 3 21:48:40 CEST 2010


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

---


regards,

-- 
Dimitrios Chr. Ioannidis




More information about the Lazarus mailing list