Talk:Cross compiling for Windows under Linux

From Free Pascal wiki
Revision as of 18:06, 15 March 2005 by Vincent (talk | contribs) (Converted from epikwiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Posted by Tony Maro on November 1, 2003 at 13:58:08 PST

That makes the link:

http://jrfonseca.dyndns.org/projects/gnu-win32/documentation/cross/


Posted by Tony Maro on November 1, 2003 at 14:02:26 PST

Two more things...

The bug mentioned in the make file is apparently not there anymore. No need to edit.

The makefile command you run is "make -f xmingw32.mak" not the "make -f xmingw.mak" that the docs above mention. That file doesn't exist.

Posted by Tony Maro on November 1, 2003 at 14:35:53 PST

In the build process if it fails, check the "binutils-build.log" file. The end should give a clue.

Mine failed on ylwrap with "command not found" or some such. I googled this and learned:

ylwrap attempts to make a symbolic link. Find "ln -s" (around line 83) and replace it with "cp" (without the quotes).

Anyway, even with this change it's still dying when I try to run the make.

Posted by Anonymous on November 18, 2003 at 01:44:36 PST

A complete set of crosstools for linux is available on the FPC ftp site. ftp://freepascal.stack.nl/pub/fpc/contrib/cross/mingw32

Posted by Andrew Haines on June 29, 2004 at 07:22:46 PDT

I had to change in buildcrosssnapshot.sh

if [ "${OS}" = "win32" ]; then
MOS=cygwin
fi

to

if [ "${OS}" = "win32" ]; then
MOS=mingw32
fi