Recent

Author Topic: From Win32 to both Win64 and Linux64  (Read 3508 times)

AVN

  • Newbie
  • Posts: 2
From Win32 to both Win64 and Linux64
« on: December 03, 2018, 10:06:40 am »
Hey guys, can you please help me?

I am trying to build a cross compiler for win32->win64 and win32->linux64, in both cases i have ppcrossx64.exe file, my second call of make.exe overwrites already existing ppcrossx64.exe, is this correct? or what to do to have separate compilers?

I am using these commands:

1 - Build the main compiler
Code: [Select]
make.exe all install INSTALL_PREFIX=c:\fpc PP=c:\fpcutils\ppc386.exe OS_TARGET=win32 CPU_TARGET=i386
2 - Build the cross compiler for win32->win64
Code: [Select]
make.exe all crossinstall INSTALL_PREFIX=c:\fpc PP=c:\fpcutils\ppc386.exe OS_TARGET=win64 CPU_TARGET=x86_64
3 - Build the cross compiler for win32->linux64
Code: [Select]
make.exe all crossinstall INSTALL_PREFIX=c:\fpc PP=c:\fpcutils\ppc386.exe OS_TARGET=linux CPU_TARGET=x86_64 CROSSBINDIR=c:\fpccross\bin BINUTILSPREFIX=x86_64-linux-
The result of third command overwrites the previous version of ppcrossx64.exe, but how to have separate file for each target platform?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8744
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: From Win32 to both Win64 and Linux64
« Reply #1 on: December 03, 2018, 11:13:53 am »
The result of third command overwrites the previous version of ppcrossx64.exe, but how to have separate file for each target platform?
No need to, each ppcXXX can target all OSes from the same CPU.

AVN

  • Newbie
  • Posts: 2
Re: From Win32 to both Win64 and Linux64
« Reply #2 on: December 03, 2018, 11:42:13 am »
Thank you so much!

 

TinyPortal © 2005-2018