Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-08

Wince_arm: the naive approach

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Hi list,

I'm fiddling with crosscompiling in fpcup.

For Wince ARM, using
- cross binaries from
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/binutils-2.15.94-win32-arm-wince.zip (added cygwin1.dll in binutils directory as well)
- no libraries
-this in fpc.cfg:
#IFDEF CPUARM
#IFDEF WINCE
-FDC:\development\cross\bin\arm-wince
#ENDIF
#ENDIF

compiling FPC gives
Start compiling package bzip2 for target arm-wince. Warning: Unable to determine the libgcc path.
Compiling bzip2\BuildUnit_bzip2.pp
Compiling .\bzip2\src\bzip2comn.pp
Compiling .\bzip2\src\bzip2.pas
Compiling .\bzip2\src\bzip2stream.pp
... and the compiler seems to hang there.

I wonder if an expert could tell me straight off what I'm doing wrong ;)

Thanks,
Reinier

Florian Klämpfl
to Reinier Olislagers
Reinier Olislagers wrote 8 lines
Hi list, I'm fiddling with crosscompiling in fpcup. For Wince ARM, using - cross binaries from ftp://ftp.freepascal.org/pub/fpc/contrib/cross/binutils-2.15.94-win32-arm-wince.zip (added cygwin1.dll in binutils directory as well)

Try the binutils I collect here (arm-wince-* is build from binutils 2.22): http://svn2.freepascal.org/svn/fpcbuild/binaries/i386-win32/ (please do not use svn.freepascal.org for this repository for speed reasons).

Show quoted text 10 lines
compiling FPC gives Start compiling package bzip2 for target arm-wince. Warning: Unable to determine the libgcc path. Compiling bzip2\BuildUnit_bzip2.pp Compiling .\bzip2\src\bzip2comn.pp Compiling .\bzip2\src\bzip2.pas Compiling .\bzip2\src\bzip2stream.pp ... and the compiler seems to hang there. I wonder if an expert could tell me straight off what I'm doing wrong ;)

What source tree do you use? Trunk? Works here

Reinier Olislagers
to Florian Klämpfl
Florian Klämpfl wrote
Am 03.08.2013 17:31, schrieb Reinier Olislagers: Try the binutils I collect here (arm-wince-* is build from binutils 2.22): http://svn2.freepascal.org/svn/fpcbuild/binaries/i386-win32/ (please do not use svn.freepascal.org for this repository for speed reasons).

Thanks a lot, I did.
... and that seems to solve it:
fpcup --only=fpc --cputarget=arm --ostarget=wince
works nicely :)

When I compile a sample project using Lazarus with target OS wince target CPU arm I get [1]... I'm (perversely) hoping these are general problems with ARM and not just my setup.

Show quoted text 5 lines
> ... and the compiler seems to hang there. > > I wonder if an expert could tell me straight off what I'm doing wrong ;) What source tree do you use? Trunk? Works here

Yes, trunk.

[1]
Free Pascal Compiler version 2.7.1 [2013/08/04] for arm ..
Target OS: WinCE for ARM
..
Assembling themes
C:\development\lazarus\lcl\include\graphic.inc(155,66) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar" C:\development\lazarus\lcl\include\graphic.inc(171,62) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar" C:\development\lazarus\lcl\include\custombitmap.inc(510,13) Error: Incompatible types: got "PWideChar" expected "PChar" ..
C:\development\lazarus\lcl\include\icon.inc(1336,13) Error: Incompatible types: got "PWideChar" expected "PChar"
C:\development\lazarus\lcl\include\cursorimage.inc(55,13) Error: Incompatible types: got "PWideChar" expected "PChar" C:\development\lazarus\lcl\graphics.pp(2812) Fatal: There were 5 errors compiling module, stopping

Florian Klaempfl
to Reinier Olislagers
> > What source tree do you use? Trunk? Works here Yes, trunk.

I thought you talk about fpc, anyways, the attached patch might help for lazarus.

Show quoted text 20 lines
[1] Free Pascal Compiler version 2.7.1 [2013/08/04] for arm .. Target OS: WinCE for ARM .. Assembling themes C:\development\lazarus\lcl\include\graphic.inc(155,66) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar" C:\development\lazarus\lcl\include\graphic.inc(171,62) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar" C:\development\lazarus\lcl\include\custombitmap.inc(510,13) Error: Incompatible types: got "PWideChar" expected "PChar" .. C:\development\lazarus\lcl\include\icon.inc(1336,13) Error: Incompatible types: got "PWideChar" expected "PChar" C:\development\lazarus\lcl\include\cursorimage.inc(55,13) Error: Incompatible types: got "PWideChar" expected "PChar" C:\development\lazarus\lcl\graphics.pp(2812) Fatal: There were 5 errors compiling module, stopping
Mattias Gaertner
to Florian Klaempfl
Show quoted text 7 lines
>> >> What source tree do you use? Trunk? Works here > > Yes, trunk. I thought you talk about fpc, anyways, the attached patch might help for lazarus.

Thanks. Applied.

Mattias