Recent

Author Topic: Cross compile to Win64 or running Lazarus under wine  (Read 2453 times)

ard

  • Newbie
  • Posts: 2
Cross compile to Win64 or running Lazarus under wine
« on: November 02, 2023, 08:54:05 pm »
Lazarus 3.0RC2

When i cross compile from Linux for Win64 or wen compiled with the Win64 version under wine i only get the main window but the window is not drawn. Compiling with the same Lazarus version on windows work fine. The resulting executable will work on Windows and wine. (Empty project with just the main form)

Some hints ?

Thanks

dbannon

  • Hero Member
  • *****
  • Posts: 3614
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Cross compile to Win64 or running Lazarus under wine
« Reply #1 on: November 03, 2023, 10:02:36 am »
Hi Ard, I routinely build my app on U2004 and cross compile to Win64 (and others) without any problem. So, it 'should' work for you. Good move to do an simple app. But it did not work ?  So, perhaps tell us a bit more about your build system ?

OS ?
FPC - probably 3.2.2 but from distro, source forge or source ?
Lazarus 3.0rc2, from source forge or source ?
You followed the cross compiler build recipe on the wiki ?

(Just the cross compile, I don't use Wine, but maybe someone else might be able to comment on that.)

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

ard

  • Newbie
  • Posts: 2
Solved: Cross compile to Win64 or running Lazarus under wine
« Reply #2 on: November 03, 2023, 09:14:58 pm »
Thanks,

i figured it out, btw, i'm using FPC 3.3.1 and Lazarus 3.0RC2

while searching for the problem i switched to another desktop and when switching back the window was drawn and the simple app worked.

When i compile "real" applications that contains more than an empty form it works fine. (Have not tried this before as the simple app did not work)

So this is an error that only pops up in combination of wine with a simple application (Project, new Project, F9), therefore not an FPC or Lazarus thing but a problem / incompatibility in wine (wine 8.18 on Fedora 38)

Sorry for the noise

 

TinyPortal © 2005-2018