Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-12

compile to win32

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

LeVA

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.

Thanks a lot!

Daniel

LeVA

Reply by email

Mattias Gaertner
to LeVA
Show quoted text 23 lines
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

Reply by email