Lazarus
Using the Lazarus IDE => General => Topic started 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.
-
Make sure your compiler points to fpc, not ppcXXX.
-
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.
-
In the title you write about Linux, but in the text about Windows. How is Linux involved?
-
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.
-
Oh whoops - that's an error. It's meant to be Lazarus, not Linux.