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

Mailing lists / lazarus / 2003-10
9 messages · 6 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
On Tue, 28 Oct 2003 19:08:30 +0100 (CET) I will try and look into this the coming days.…
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)
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
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
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
I will try and look into this the coming days. If I succeed, I will change the page on sourceforge accordingly.
I check it reguarly and I think it is of high quality.
Vincent Snijders.
Tools are downloadable from FPC ftp site. Directory /pub/fpc/contrib/cross/mingw32 or so.…
Yes. Put a
{$apptype GUI}
In our program code, before the uses clause.
Michael.
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 ""?
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.
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