[Lazarus] trunk WinCE broken

Sven Barth pascaldragon at googlemail.com
Sat Nov 20 11:23:44 CET 2010


On 20.11.2010 09:47, Dimitrios Chr. Ioannidis wrote:
> Hi,
>
> i just updated my local tree and got the following errors.
>
> C:\Users\dimitris\Documents\Programming\FreePascal\lazarus\ideintf>make
> LCL_PLAT
> FORM=wince OS_TARGET=wince CPU_TARGET=arm OPT="-gl -XX -CX -Xs -Xg
> -dUseCLDefaul
> t"
> C:/Users/dimitris/Documents/Programming/FreePascal/binutils/i386-win32/rm.exe
> -f
> units/arm-wince/allideintf.ppu
> C:/Users/dimitris/Documents/Programming/FreePascal/binutils/i386-win32/gmkdir.ex
>
> e -p units/arm-wince
> C:/Users/dimitris/Documents/Programming/FreePascal/fpc/bin/i386-win32/ppcrossarm
>
> .exe -Twince -Parm -XParm-wince- -Xr -gl -dlclwince
> -Fu../lcl/units/arm-wince -F
> u../components/codetools/arm-wince -Fu../packager/units/arm-wince -Fu.
> -FE. -FUu
> nits/arm-wince -gl -XX -CX -Xs -Xg -dUseCLDefault -darm allideintf.pas
> Warning: Option "-Xr" is ignored for the current target platform.
> Free Pascal Compiler version 2.5.1-r1:16360 [2010/11/18] for arm
> Copyright (c) 1993-2010 by Florian Klaempfl
> Target OS: WinCE for ARM
> Compiling allideintf.pas
> Compiling actionseditor.pas
> Fatal: Can't find unit LCLProc used by ActionsEditor
> Fatal: Compilation aborted
> make: *** [allideintf.ppu] Error 1
>
> also
> C:\Users\dimitris\Documents\Programming\FreePascal\lazarus\components\synedit>ma
>
> ke LCL_PLATFORM=wince OS_TARGET=wince CPU_TARGET=arm OPT="-gl -XX -CX
> -Xs -Xg -d
> UseCLDefault"
> C:/Users/dimitris/Documents/Programming/FreePascal/binutils/i386-win32/rm.exe
> -f
> units/arm-wince/allsyneditunits.ppu
> C:/Users/dimitris/Documents/Programming/FreePascal/binutils/i386-win32/gmkdir.ex
>
> e -p units/arm-wince
> C:/Users/dimitris/Documents/Programming/FreePascal/fpc/bin/i386-win32/ppcrossarm
>
> .exe -Twince -Parm -XParm-wince- -Xr -gl -dlclwince
> -Fu../../lcl/units/arm-wince
> -Fu../../ideintf/units/arm-wince -Fu. -FE. -FUunits/arm-wince -gl -XX
> -CX -Xs -
> Xg -dUseCLDefault -darm allsyneditunits.pp
> Warning: Option "-Xr" is ignored for the current target platform.
> Free Pascal Compiler version 2.5.1-r1:16360 [2010/11/18] for arm
> Copyright (c) 1993-2010 by Florian Klaempfl
> Target OS: WinCE for ARM
> Compiling allsyneditunits.pp
> Compiling syntextdrawer.pp
> Fatal: Can't find unit LCLProc used by SynTextDrawer
> Fatal: Compilation aborted
> make: *** [allsyneditunits.ppu] Error 1
>
> i'm using the following bat script to rebuild my Lazarus.
>
>
> @echo off
>
> set
> path=C:\Users\dimitris\Documents\Programming\FreePascal\binutils\i386-win32;C:\Users\dimitris\Documents\Programming\FreePascal\binutils\arm-wince;C:\Users\dimitris\Documents\Programming\FreePascal\binutils\x86_64-win64;C:\Users\dimitris\Documents\Programming\FreePascal\fpc\bin\i386-win32;%path%
>
>
> cd C:\Users\dimitris\Documents\Programming\FreePascal\lazarus
>
> make distclean OS_TARGET=win32 CPU_TARGET=i386
> make distclean OS_TARGET=win64 CPU_TARGET=x86_64
> make distclean OS_TARGET=wince CPU_TARGET=arm
>
> make all OPT="-gl -gw -CX -Xs -Xg -godwarfsets -dUseVistaDialogs
> -dUseCLDefault"
> make lcl LCL_PLATFORM=wince OS_TARGET=wince CPU_TARGET=arm OPT="-gl -XX
> -CX -Xs -Xg -dUseCLDefault"
> make lcl LCL_PLATFORM=win32 OS_TARGET=win64 CPU_TARGET=x86_64 OPT="-gl
> -gw -Xs -Xg -godwarfsets -dUseVistaDialogs -dUseCLDefault"
>
> cd
> C:\Users\dimitris\Documents\Programming\FreePascal\lazarus\packager\registration
>
> make LCL_PLATFORM=wince OS_TARGET=wince CPU_TARGET=arm OPT="-gl -XX -CX
> -Xs -Xg -dUseCLDefault"
> make LCL_PLATFORM=win32 OS_TARGET=win64 CPU_TARGET=x86_64 OPT="-gl -gw
> -Xs -Xg -godwarfsets -dUseVistaDialogs -dUseCLDefault"
>
> cd C:\Users\dimitris\Documents\Programming\FreePascal\lazarus\ideintf
> make LCL_PLATFORM=wince OS_TARGET=wince CPU_TARGET=arm OPT="-gl -XX -CX
> -Xs -Xg -dUseCLDefault"
> make LCL_PLATFORM=win32 OS_TARGET=win64 CPU_TARGET=x86_64 OPT="-gl -gw
> -Xs -Xg -godwarfsets -dUseVistaDialogs -dUseCLDefault"
>
> cd
> C:\Users\dimitris\Documents\Programming\FreePascal\lazarus\components\synedit
>
> make LCL_PLATFORM=wince OS_TARGET=wince CPU_TARGET=arm OPT="-gl -XX -CX
> -Xs -Xg -dUseCLDefault"
> make LCL_PLATFORM=win32 OS_TARGET=win64 CPU_TARGET=x86_64 OPT="-gl -gw
> -Xs -Xg -godwarfsets -dUseVistaDialogs -dUseCLDefault"
>
> regards,
>

I don't know what you're doing on the Windows CE device, but you only 
need to compile IDEIntf for WinCE if you want to use the IDE on WinCE. 
Also you only need to compile SynEdit if you want to use it on WinCE (or 
does SynEdit require IDEIntf?). If neither of this is the case you don't 
need to build them to write Windows CE applications.

That said, can you check whether 
C:\Users\dimitris\Documents\Programming\FreePascal\lazarus\lcl\units\arm-wince\ 
does indeed contain the unit LCLProc (lclproc.ppu and lclproc.o)?
You can also add the option "-vut" to OPT to let FPC tell you where it 
searches the units (this might help you to spot the problem). But be 
prepared to read a lot of output ;)

Regards,
Sven




More information about the Lazarus mailing list