On Sat, Jun 5, 2010 at 8:19 PM, Thierry Bothorel
<thierry.botho...@gmail.com> wrote:
>
> I use three Lazarus versions on Windows with three FPC versions. If you
> always use Lazarus to code freepascal, then you do not need to add FPC
> to your PATH, Lazarus handle this with its options. But FPC stand-alone
> setup adds itself to system PATH, and it cause trouble with Lazarus as I
> experience, so I just removes it from PATH.


On Sat, Jun 5, 2010 at 8:38 PM, Mattias Gaertner
<nc-gaert...@netcologne.de> wrote:
>
> You can put fpc anywhere you want as long as you don't use spaces in the
> paths. Just put the full file name in the environment option OR add the
> directory where fpc.exe is to your PATH variable. The later can be
> useful when compiling via console.


On Sat, Jun 5, 2010 at 10:38 PM, Hans-Peter Diettrich
<drdiettri...@aol.com> wrote:
>
> The bin directory should be in the path, so that all scripts can find the
> programs. I made an build.bat file that sets the path accordingly, and then
> invokes make. When executed from a console, the path is set for issuing
> further commands.
>
> @echo Installing Lazarus
> path=C:\FPC\2.4.0\bin\i386-win32;D:\SourceForge\Lazarus
> cd ide
> windres -i lazarus.rc -o lazarus.res
> cd ..
> make
> rem make clean all (if required), then make bigide
> @echo Did you already create a desktop icon to the new Lazarus.exe?


Thanks guys.
I added fpc.exe in PATH and it worked. No more erros when start Lazarus...

...but I found another error now  :(

I just reverse the FPC version 2.5.1 (trunk) to 2.4.1 (fixes_2_4)
because I want to work in the stable compiler.
So, I switch /fpc/trunk to /fpc/branches/fixes_2_4/ and compiled without errors.

When I tried to compile Lazarus (/trunk) got the following errors:

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 -Fi
nclude -FE. -FUunits/i386-win32 -glw2 -di386 alllclunits.pp
Free Pascal Compiler version 2.4.1 [2010/06/07] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
Compiling lclversion.pas
Compiling lclstrconsts.pas
Writing Resource String Table file: lclstrconsts.rst
Compiling fpcadds.pas
Compiling lazlinkedlist.pas
Compiling dynhasharray.pp
Compiling lclproc.pas
Compiling avglvltree.pas
Compiling fileutil.pas
Compiling masks.pas
PPU Loading C:\freepascal\fpc\units\i386-win32\fcl-base\contnrs.ppu
PPU Invalid Version 119
Fatal: Can't find unit Contnrs used by Masks
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `C:/freepascal/lazarus/lcl'
make: *** [lcl] Error 2


The BAT file is attached.
What version of FPC the Lazarus works well?


Marcos Douglas
@echo on

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 /Y

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
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to