Recent

Author Topic: Lazarus cross compilation problem  (Read 2282 times)

CuriousKit

  • Jr. Member
  • **
  • Posts: 78
Lazarus cross compilation problem
« on: June 26, 2018, 09:55:23 am »
Hi everyone.

I'm trying to cross compile Lazarus from i386-win32 to x86_64-win64, mostly in an attempt to reproduce a bug - however, I'm hitting a snag.  When I tell Lazarus to build itself with the relevant target CPU and target OS set, it successfully compiles the packages, but as soon as it tries to build the IDE, it bombs out with the message "Error: Illegal parameter: -Twin64".

I've already determined that it is using a freshly-built copy of ppcrossx64.exe to do the cross compilation.
« Last Edit: June 26, 2018, 04:23:54 pm by CuriousKit »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Linux cross compilation problem
« Reply #1 on: June 26, 2018, 10:45:13 am »
Make sure your compiler points to fpc, not ppcXXX.

CuriousKit

  • Jr. Member
  • **
  • Posts: 78
Re: Linux cross compilation problem
« Reply #2 on: June 26, 2018, 11:35:16 am »
Already done that, I'm afraid.  It's set to "C:\pp\bin\i386-win32\fpc.exe" for me.  Tried with Lazarus 1.8 and 1.9, so I'm not sure what's going on.  Granted, the bug I'm evaluating I cannot reproduce, but it would be nice to be able to cross compile Lazarus for future testing.

kupferstecher

  • Hero Member
  • *****
  • Posts: 583
Re: Linux cross compilation problem
« Reply #3 on: June 26, 2018, 03:24:18 pm »
In the title you write about Linux, but in the text about Windows. How is Linux involved?

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: Linux cross compilation problem
« Reply #4 on: June 26, 2018, 03:50:18 pm »
I use FPCUpdeluxe to set up my cross compilers, works very nicely, and I cross compile between Linux, Windows, and Mac, back and forth depending on which computer I'm working at.

I do remember getting the same error as you when I was trying to manually set up cross compiling though.

CuriousKit

  • Jr. Member
  • **
  • Posts: 78
Re: Linux cross compilation problem
« Reply #5 on: June 26, 2018, 04:23:44 pm »
Oh whoops - that's an error.  It's meant to be Lazarus, not Linux.

 

TinyPortal © 2005-2018