Recent

Author Topic: How to Lazarus Cross Compile Win32 to Linux ?  (Read 14146 times)

Schrodinger Kater

  • New member
  • *
  • Posts: 9
Re: How to Lazarus Cross Compile Win32 to Linux ?
« Reply #30 on: April 05, 2021, 02:56:12 pm »
A similar error can occur if you uncheck "Use standard compiler config file (fpc.cfg)" in Project Options | Config and Target.
What are your Command line parameters (the "Show Options" button at the bottom of the window) for this configuration?

Jungle

  • New Member
  • *
  • Posts: 18
Re: How to Lazarus Cross Compile Win32 to Linux ?
« Reply #31 on: April 06, 2021, 07:19:43 am »
See img

Schrodinger Kater

  • New member
  • *
  • Posts: 9
Re: How to Lazarus Cross Compile Win32 to Linux ?
« Reply #32 on: April 06, 2021, 09:59:45 am »
Yes, there is a problem, but it is related to the new version. It looks like the directory structure has changed. Everything above worked on Lazarus 1.8.2 with FPC 3.0.4. It's a matter of principle to figure it out, but it will take a little more time ::)

Schrodinger Kater

  • New member
  • *
  • Posts: 9
Re: How to Lazarus Cross Compile Win32 to Linux ?
« Reply #33 on: April 06, 2021, 04:44:34 pm »
compile_error_i386-linux.png - working config, answer here: https://www.freepascal.org/faq.html#unix-ld219
simply -X9 in custom project options
and compiled binutils 2.15 are only compatible with win32 FPC

Jungle

  • New Member
  • *
  • Posts: 18
Re: How to Lazarus Cross Compile Win32 to Linux ?
« Reply #34 on: April 06, 2021, 06:38:10 pm »
simply -X9 in custom project options
Thanks, will try tomorrow.

compiled binutils 2.15 are only compatible with win32 FPC
Newer binutils mentioned here. But author keeps silence. I've also tried to build it myself but failed due to lack of experience.

Eternity

  • Newbie
  • Posts: 1
Re: How to Lazarus Cross Compile Win32 to Linux ?
« Reply #35 on: April 22, 2021, 08:48:13 pm »
compile_error_i386-linux.png - working config, answer here: https://www.freepascal.org/faq.html#unix-ld219
simply -X9 in custom project options
and compiled binutils 2.15 are only compatible with win32 FPC

Thank you very much.
Now it works fine with FPC v3.2.0 Win32.

I have been using v3.0.4 for a long time because of this problem... Finally can have everything updated to latest versions now.

 

TinyPortal © 2005-2018