Sign in Join

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

Mailing lists / lazarus / 2003-10

Building WIN32 APP

9 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

Paulo Henrique Garcia

Hi all.

this is my first message, and i wish to ask:

how can i build an application for win32, from Lazarus running into a linux box?

[]'s
Paulo

Reply by email

Marco van de Voort
to Vincent Snijders: On Tue, 28 Oct 2003 19:08:30 +0100 (CET) I will try and look into this the coming days.…
Show quoted text 15 lines
On Tue, 28 Oct 2003 19:08:30 +0100 (CET) (Marco van de Voort) wrote: > > http://lazarus-ccr.sourceforge.net/index.php?wiki=CrossCompilingForWin32UnderLinux > > Why not download cross utils from FPC mirrors? > > Linux and mingw32 are available, for a lot of used platforms. > > ftp://freepascal.stack.nl/pub/fpc/contrib/cross/ > > Specially > ftp://freepascal.stack.nl/pub/fpc/contrib/cross/mingw/mingwcross.zip I will try and look into this the coming days. If I succeed, I will change the page on sourceforge accordingly.

There are also linux (though I couldn't get them static iirc) and cygwin utils there. Mingw is better for windows, but the cygwin's are a lot easier to compile.

(Thanks got to the Prof Olowofoyeku of GPC for helping out with mingw btw)

Show quoted text 7 lines
> --- > > For extra examples about cross-platform (and > cross-architecture)configurability of fpc.cfg see > > http://www.stack.nl/~marcov/buildfaq.pdf I check it reguarly and I think it is of high quality.

After the transition to the new branch is made, crosscompiling will all be easier.

There is also a script to make cross utils, and a script to make cross-snapshots btw.

They are in CVS under fpc/install/cross

Reply by email

Marco van de Voort
to Andrew Johnson: You might try reading this - http://lazarus-ccr.sourceforge.net/index.php?wiki=CrossCompil…

Why not download cross utils from FPC mirrors?

Linux and mingw32 are available, for a lot of used platforms.

ftp://freepascal.stack.nl/pub/fpc/contrib/cross/

Specially ftp://freepascal.stack.nl/pub/fpc/contrib/cross/mingw/mingwcross.zip

---

For extra examples about cross-platform (and cross-architecture)configurability of fpc.cfg see

http://www.stack.nl/~marcov/buildfaq.pdf

Reply by email

Andrew Johnson
to Paulo Henrique Garcia: Hi all. this is my first message, and i wish to ask: how can i build an application for…

You might try reading this -

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

Andrew

Paulo Henrique Garcia wrote 14 lines
Hi all. this is my first message, and i wish to ask: how can i build an application for win32, from Lazarus running into a linux box? []'s Paulo _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Vincent Snijders
to Andrew Johnson
Show quoted text 11 lines
> > http://lazarus-ccr.sourceforge.net/index.php?wiki=CrossCompilingForWin32UnderLinux Why not download cross utils from FPC mirrors? Linux and mingw32 are available, for a lot of used platforms. ftp://freepascal.stack.nl/pub/fpc/contrib/cross/ Specially ftp://freepascal.stack.nl/pub/fpc/contrib/cross/mingw/mingwcross.zip

I will try and look into this the coming days. If I succeed, I will change the page on sourceforge accordingly.

Show quoted text 6 lines
--- For extra examples about cross-platform (and cross-architecture)configurability of fpc.cfg see http://www.stack.nl/~marcov/buildfaq.pdf

I check it reguarly and I think it is of high quality.

Vincent Snijders.

Reply by email

Unknown author
to Marco van de Voort: Tools are downloadable from FPC ftp site. Directory /pub/fpc/contrib/cross/mingw32 or so.…
Tony Maro wrote 23 lines
Marco van de Voort wrote: >>I can't get the cross compile tools to build per the Lazarus-CCR site notes. >> >> > >Tools are downloadable from FPC ftp site. Directory /pub/fpc/contrib/cross/mingw32 >or so. > >Please use a mirror (like ftp://freepascal.stack.nl) > > > I've gotten past that and compiled and ran my first Win32 project from inside Linux! Thanks for the help... Now to try and turn it into something useful. There's a long way to go to get CBT to compile that way. First, I noticed in Windows that a command window opened prior to my application window, and stayed until my app was closed. Is this normal?

Yes. Put a
{$apptype GUI}
In our program code, before the uses clause.

Michael.

Reply by email

Tony Maro
to Marco van de Voort: There are also linux (though I couldn't get them static iirc) and cygwin utils there.…

I can't get the cross compile tools to build per the Lazarus-CCR site notes.

Here's the result when running the make:

[[[[ snip out excessive spam ]]]]
: the use of `mktemp' is dangerous, better use `mkstemp' gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./../bfd -I./../include -I./../intl -I../intl
-DLOCALEDIR="\"/usr/local/xmingw32/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -c arparse.c /bin/sh ./../ylwrap "" arlex.l lex.yy.c arlex.c -- ./../ylwrap: line 86: arlex.l: command not found
make[4]: *** [arlex.c] Error 1

Near as I can figure, ylwrap is being supplied a blank filename to execute. See the ""?

Reply by email

Marco van de Voort
to Tony Maro
I can't get the cross compile tools to build per the Lazarus-CCR site notes.

Tools are downloadable from FPC ftp site. Directory /pub/fpc/contrib/cross/mingw32 or so.

Please use a mirror (like ftp://freepascal.stack.nl)

Bison is the large problem when making these tools. I couldn't get them compiled, until I got a working mingw building set up from one of the GPC contributors.

Reply by email

Tony Maro
to Marco van de Voort
Marco van de Voort wrote 11 lines
>I can't get the cross compile tools to build per the Lazarus-CCR site notes. > > Tools are downloadable from FPC ftp site. Directory /pub/fpc/contrib/cross/mingw32 or so. Please use a mirror (like ftp://freepascal.stack.nl)

I've gotten past that and compiled and ran my first Win32 project from inside Linux!

Thanks for the help...

Now to try and turn it into something useful. There's a long way to go to get CBT to compile that way.

First, I noticed in Windows that a command window opened prior to my application window, and stayed until my app was closed. Is this normal?

How can I make the GTK Windows interface work? Every time I try to compile with GTK widgets for Windows I get "can't find interfaces." I have GTK runtimes installed in Windows, and considering that the Win32 interface is still not complete thought this would be best to do.

I can't seem to find a "shell" command for Windows interface. I grep'd it in some of the Lazarus include files, but can't figure out what to "uses" to get this.

Things with resources don't compile for win32. Can't find unit lresources. I have already build+clean the codetools for win32.

Well, there's my shopping list of difficulties.

Thanks,
Tony

Reply by email