Lazarus

Programming => Operating Systems => macOS / Mac OS X => Topic started by: Leopovoa on July 20, 2021, 04:30:58 pm

Title: Mac os CrossCompiling => Windows 64
Post by: Leopovoa on July 20, 2021, 04:30:58 pm
Hello friends,

I'm using Lazarus (2.0.10) for Mac Os (Catalina) installed using macport. I'm trying to compile applications for Windows (64bits) using CrossCompiling. I got success for simple applications using the console, but when I compile applications that use GUI I get the following error: Prj_Teste_Visual.lpr(16.1) Error: resource compiler "x86_64-win64-fpcres" not found, switching to external mode . I cannot find this file anywhere. Shouldn't the compiler use the default fpcres? Or do I have to compile a specific one for Windows 64bits platform?

Thanks,

Léo Póvoa (Delphi Veteran, Lazarus Begin)
Title: Re: Mac os CrossCompiling => Windows 64
Post by: Jonas Maebe on July 21, 2021, 08:08:41 pm
The default fpc configuration file automatically specifies a prefix for all external utilities when cross-compiling. You can try adding the command line parameter -XP to override the prefix to "empty" and see whether that solves it.
TinyPortal © 2005-2018