[Lazarus] Need suggestion about crosscompile on osx

FreeMan freeman35 at delphiturkiye.com
Sat Feb 21 13:24:21 CET 2015


Thank you Michael,
I shared before my install update svn script here.
http://www.delphiturkiye.com/forum/viewtopic.php?f=6&t=33826
I need suggestion for
> 3) Use the current version to build your cross compilers.
this is my last test command line
FPMakeOptions="-Px86_64 -o -XPx86_64-linux- -o -Xr -o -Ur -o -Xs -o -O2 
-o -n -o -Fu$prefixVolume$fpc_prefix -o -Cg -o -dx86_64 -o -dRELEASE -o 
-XX -o -CX"
make crossinstall all install INSTALL_PREFIX=$prefixVolume$fpc_prefix 
OS_TARGET=linux CPU_TARGET=x86_64 CROSSOPT=$FPMakeOptions

I made fpc (3.1.1) But not sure, is it real for fpc x86_64-lnux
this is my binutil source command lines
  ./configure --prefix=/opt/binutils/x86_64-linux 
--bindir=/opt/binutils/x86_64-linux/bin --mandir=/usr/local/share/man 
--infodir=/usr/local/share/info --program-prefix=x86_64-linux- 
--disable-werror

In lazarus, for test in new empty project's Compiler options --> Config 
and target-> Target OS= Linux Target CPU=x86_64
on compiling I get this error
project1.lpr(20,1) Error: Util x86_64-linux-ld not found, switching to 
external linking
x86_64-linux-ld not found my system, something wrong on my binutils too.
I need help about for this.

On 21.02.2015 13:18, Schindler Karl-Michael wrote:
> I am the maintainer of the fink packages and would suggest the following:
>
> 1) Use the fink packages for the corresponding binutils. If there are problems or you need another version, I will see, what i can do.
>
> In order to build cross compilers from the recent svn version, you have to take 3 steps.
>
> 1) Install the freepascal 32bit, version 2.6.4, either disk images or fink. You need ppc386.
> 2) Using this version, build the current version of ppc386 from the svn version.
> 3) Use the current version to build your cross compilers.
>
> If you have difficulties with the details of the corresponding commands, ask. For interactive help i suggest the IRC channel #fpc on irc.freenode.net.
>
> Michael.





More information about the Lazarus mailing list