[lazarus] compile to win32

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 12 06:35:01 EST 2003


On Fri, 12 Dec 2003 12:28:02 +0100  LeVA <leva at az.isten.hu> wrote:

> Hello!
> 
> I have installed lazarus today. I'm trying to use it to make programs 
> for windows, but I'm using linux. I hope this is possible with lazarus, 
> because as far as I can remember, the freepascal compiler can open a 
> source, and can compile it to linux and win32, under the linux platform. 
> I don't have windows installed, so I can not compile my sources under 
> the windows version of lazarus.
> I tried to set this up in lazarus:
> 
> "Run / Paths / LCL Widget Type" -> win32
> 
> In this case, if I try to compile my project, I get this in the Messages 
> window:
> "project1.lpr(6,13) Fatal: Can't find unit INTERFACES"
> 
> If I choose gtk instead of win32 in the above menu, the project compiles 
> fine.
> How can I make windows executables with lazarus under linux? Is this 
> possible?
> 
> Unfortunately I can not access the mail-list archive, because it is 
> unreachable on the lazarus web site, so please help me with this problem.

The "LCL Widget Type" defines what base lib the LCL should use, not the
target platform.
What you need is "cross compiling".

See
http://lazarus-ccr.sourceforge.net/index.php?wiki=CrossCompilingForWin32UnderLinux


Mattias






More information about the Lazarus mailing list