<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 06/07/2017 03:50 PM, Alfred via Lazarus wrote:<br>
<blockquote type="cite"
cite="mid:ema6d1ee31-9f10-4efb-a5b9-aaf4ee9a855b@alfsacer"><!--?xml version="1.0" encoding="utf-16"?-->
<style><![CDATA[#xa93d65f69f46494b9e72499a90274d8b{
font-family:'Segoe UI';
font-size:12pt;
color:#000;
margin-left:0px;
margin-right:8px;
background-color:#FFF;
}
#xa93d65f69f46494b9e72499a90274d8b{
font-family:'Segoe UI';
font-size:12pt;
}]]><!--body
{font-family: 'Segoe UI'; font-size: 12pt;}
--></style>
<div id="xa93d65f69f46494b9e72499a90274d8b">
<div style="zoom: 0.9;">For a library, add:
<div><span style="font-size: 12pt;">-FLld-linux-armhf.so.3</span></div>
<div><span style="font-size: 12pt;">into the custom options of
your project compiler options.</span></div>
</div>
</div>
<br>
</blockquote>
Thank you Alfred - a little further now.<br>
<br>
I have pasted the full output from lazbuild for reference.<br>
It seems the linker is trying to use 'crtbeginS.o' for my base
system (x86_64)<br>
I guess I need to tell it to redirect to 'crtbegin' in
'/mnt/Shared/Apps/fpcupDeluxe/cross/lib/arm-linux', but I dont know
how (as yet)<br>
<br>
Still working at it though :)<br>
<br>
/mnt/Shared/Apps/fpcupDeluxe/lazarus/lazbuild --os=Linux --cpu=arm
project1.lpi<br>
using config file /mnt/Shared/Apps/fpcupDeluxe/lazarus/lazarus.cfg<br>
SetPrimaryConfigPath
NewValue="/mnt/Shared/Apps/fpcupDeluxe/config_lazarus" ->
"/mnt/Shared/Apps/fpcupDeluxe/config_lazarus"<br>
Hint: (lazarus) [RunTool]
/mnt/Shared/Apps/fpcupDeluxe/fpc/bin/x86_64-linux/fpc.sh "-iWTOTP"
"-Parm" "-Tlinux"<br>
Hint: (lazarus) [RunTool]
/mnt/Shared/Apps/fpcupDeluxe/fpc/bin/x86_64-linux/fpc.sh "-va"
"-Parm" "-Tlinux" "compilertest.pas"<br>
Info: (lazarus) Execute Title="Compile Project, CPU: arm, Target:
libproject1.so"<br>
Info: (lazarus) Working
Directory="/home/steve-gatenby/Temp1/LibTest/"<br>
Info: (lazarus)
Executable="/mnt/Shared/Apps/fpcupDeluxe/fpc/bin/x86_64-linux/fpc.sh"<br>
Info: (lazarus) Param[0]="-Tlinux"<br>
Info: (lazarus) Param[1]="-Parm"<br>
Info: (lazarus) Param[2]="-MObjFPC"<br>
Info: (lazarus) Param[3]="-Scghi"<br>
Info: (lazarus) Param[4]="-O1"<br>
Info: (lazarus) Param[5]="-g"<br>
Info: (lazarus) Param[6]="-gl"<br>
Info: (lazarus) Param[7]="-l"<br>
Info: (lazarus) Param[8]="-vewnhibq"<br>
Info: (lazarus)
Param[9]="-Fi/home/steve-gatenby/Temp1/LibTest/lib/arm-linux"<br>
Info: (lazarus) Param[10]="-Fu/home/steve-gatenby/Temp1/LibTest/"<br>
Info: (lazarus)
Param[11]="-FU/home/steve-gatenby/Temp1/LibTest/lib/arm-linux/"<br>
Info: (lazarus) Param[12]="-olibproject1.so"<br>
Info: (lazarus) Param[13]="-fPIC"<br>
Info: (lazarus) Param[14]="-FLld-linux-armhf.so.3"<br>
Info: (lazarus) Param[15]="project1.lpr"<br>
Hint: (11030) Start of reading config file
/mnt/Shared/Apps/fpcupDeluxe/fpc/bin/x86_64-linux/fpc.cfg<br>
Hint: (11031) End of reading config file
/mnt/Shared/Apps/fpcupDeluxe/fpc/bin/x86_64-linux/fpc.cfg<br>
Free Pascal Compiler version 3.1.1 [2017/06/06] for arm<br>
Copyright (c) 1993-2017 by Florian Klaempfl and others<br>
(1002) Target OS: Linux for ARMHF<br>
(3104) Compiling project1.lpr<br>
(9015) Linking libproject1.so<br>
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/crtbeginS.o: file not
recognized: File format not recognized<br>
/home/steve-gatenby/Temp1/LibTest/project1.lpr(20,1) Error: (9013)
Error while linking<br>
/home/steve-gatenby/Temp1/LibTest/project1.lpr(20,1) Fatal: (10026)
There were 1 errors compiling module, stopping<br>
Fatal: (1018) Compilation aborted<br>
Error: /mnt/Shared/Apps/fpcupDeluxe/fpc/bin/x86_64-linux/ppcrossarm
returned an error exitcode<br>
Error: (lazarus) Compile Project, CPU: arm, Target: libproject1.so:
stopped with exit code 256<br>
Error: (lazbuild) failed compiling of project
/home/steve-gatenby/Temp1/LibTest/project1.lpi<br>
<br>
</body>
</html>