Re: [Lazarus] Cross Compile to Arm

2017-06-07 Thread Steve Gatenby via Lazarus
On 06/07/2017 06:19 PM, Alfred via Lazarus wrote: Hi Steve, The file crtbeginS.o was definitely missing from the arm-lib archive ! I have added it. Together with crtendS.so . https://github.com/newpascal/fpcupdeluxe/releases/download/crosslibs_v1.0/CrossLibsLinuxARM.rar or https://github.com/

[Lazarus] Cross Compile to Arm

2017-06-07 Thread Alfred via Lazarus
Hi Steve, The file crtbeginS.o was definitely missing from the arm-lib archive ! I have added it. Together with crtendS.so . https://github.com/newpascal/fpcupdeluxe/releases/download/crosslibs_v1.0/CrossLibsLinuxARM.rar or https://github.com/newpascal/fpcupdeluxe/releases/download/crosslibs_v1

Re: [Lazarus] Cross Compile to Arm

2017-06-07 Thread Steve Gatenby via Lazarus
On 06/07/2017 03:50 PM, Alfred via Lazarus wrote: For a library, add: -FLld-linux-armhf.so.3 into the custom options of your project compiler options. Thank you Alfred - a little further now. I have pasted the full output from lazbuild for reference. It seems the linker is trying to use 'crtbe

[Lazarus] Cross Compile to Arm

2017-06-06 Thread Alfred via Lazarus
For a library, add: -FLld-linux-armhf.so.3 into the custom options of your project compiler options.-- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Cross Compile to Arm

2017-06-06 Thread Steve Gatenby via Lazarus
Having trouble cross compiling an fpc library. (Linux x86_64 -> Linux Arm using install from fpcupDeluxe) Lazarus 1.9.0 r55116M FPC 3.1.1 x86_64-linux-gtk2 library Project1; {$mode objfpc}{$H+} uses cmem, Classes; begin end. This fails with error code 256 and 'error whilst linking' Sometimes g