Lazarus

Using the Lazarus IDE => General => Topic started by: CuriousKit on June 26, 2018, 09:55:23 am

Title: Lazarus cross compilation problem
Post by: CuriousKit 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.
Title: Re: Linux cross compilation problem
Post by: Leledumbo on June 26, 2018, 10:45:13 am
Make sure your compiler points to fpc, not ppcXXX.
Title: Re: Linux cross compilation problem
Post by: CuriousKit 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.
Title: Re: Linux cross compilation problem
Post by: kupferstecher 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?
Title: Re: Linux cross compilation problem
Post by: Trenatos 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.
Title: Re: Linux cross compilation problem
Post by: CuriousKit 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