Sign in Join

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

Mailing lists / fpc-pascal / 2011-04

Creating windows cross arm-linux ppcarm compiler.

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Amit Bueno

How do I build windows ppcarm cross arm-linux fpc?

Regards,

Amit

Felipe Monteiro de Carvalho
to Amit Bueno

The first step would be obtaining the correct binutils. In Linux I just install via urpmi. There are some instructions to build from source in the wiki. Maybe there are precompiled ones, but I dont know where.

After that you need a working install of FPC 2.4.2, download FPC 2.5.2 trunk from svn and make a batch script with some commands to build. You probably could just use the source from FPC 2.4.2 for that, but I usually use svn for no particular reason.

I dont know the exact commands, some months ago I started a thread about this in this mailling listbut for Linux->arm-linux and in the end I got a working command. The Windows one should be similar.

Felipe Monteiro de Carvalho
Henry Vermaak
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
The first step would be obtaining the correct binutils. In Linux I just install via urpmi. There are some instructions to build from source in the wiki. Maybe there are precompiled ones, but I dont know where.

I think Marco made these:

ftp://ftp.freepascal.org/pub/fpc/contrib/cross/binutils-2.20-arm-linux-elf.zip

Note that it calls the assembler with -meabi=4. You may have to change this.

Marco van de Voort
to Henry Vermaak

In our previous episode, Henry Vermaak said:

Show quoted text 6 lines
I think Marco made these: ftp://ftp.freepascal.org/pub/fpc/contrib/cross/binutils-2.20-arm-linux-elf.zip Note that it calls the assembler with -meabi=4. You may have to change this.

I use this wrapper for that

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/install/cross/aswrapper.pas?root=fpcbuild&view=co&content-type=text%2Fplain

afaik the binutils are for eabi 0, and the wrapper changes it to 4. But that is a matter of changing the number and recompiling the wrapper.

Felipe Monteiro de Carvalho
to Marco van de Voort

For Android the good value is -meabi=5 which supports all devices in the market. And don't forget to build the cross-compiler with software floating point.

Felipe Monteiro de Carvalho