Difference between revisions of "Talk:Cross compiling for Windows under Linux"

From Lazarus wiki
Jump to navigationJump to search
(No need to build all Lazarus compiler options)
Line 39: Line 39:
 
The page is called "Cross Compiling for Win32 under Linux", but it contains information about other cross compiles. What about change it's name to Cross Compile or similar? Perhaps new pages should be created for the others? There are other "Cross Compile" pages on the FPC Wiki, and this has to be taken in consideration as the wikies will be merged. --[[User:Sekelsenmat|Sekelsenmat]] 01:40, 21 Feb 2006 (CET)
 
The page is called "Cross Compiling for Win32 under Linux", but it contains information about other cross compiles. What about change it's name to Cross Compile or similar? Perhaps new pages should be created for the others? There are other "Cross Compile" pages on the FPC Wiki, and this has to be taken in consideration as the wikies will be merged. --[[User:Sekelsenmat|Sekelsenmat]] 01:40, 21 Feb 2006 (CET)
 
: Information over other OS-es should be moved to the [[Cross compiling|general cross compiling page]]. [[User:Vincent|Vincent]] 09:37, 21 Feb 2006 (CET)
 
: Information over other OS-es should be moved to the [[Cross compiling|general cross compiling page]]. [[User:Vincent|Vincent]] 09:37, 21 Feb 2006 (CET)
 +
 +
== No need to build all Lazarus compiler options ==
 +
 +
I think the following sentence is partially wrong :
 +
 +
''Or in the IDE: Set LCL, Synedit, Codetools, Package Registration and IDE Interface to Clean+Build, set LCL interface to win32/win64 and set
 +
'Target OS' to win32. Then 'build lazarus'.
 +
''
 +
 +
You only need to build what can be used **inside** your projects. Synedit, Codetools and IDE Interface are used by LAzarus IDE only, you do not need to croos compile them (this is what they do in [[Setup_Cross_Compile_For_ARM]])

Revision as of 12:54, 23 May 2010

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

Name of the page

The page is called "Cross Compiling for Win32 under Linux", but it contains information about other cross compiles. What about change it's name to Cross Compile or similar? Perhaps new pages should be created for the others? There are other "Cross Compile" pages on the FPC Wiki, and this has to be taken in consideration as the wikies will be merged. --Sekelsenmat 01:40, 21 Feb 2006 (CET)

Information over other OS-es should be moved to the general cross compiling page. Vincent 09:37, 21 Feb 2006 (CET)

No need to build all Lazarus compiler options

I think the following sentence is partially wrong :

Or in the IDE: Set LCL, Synedit, Codetools, Package Registration and IDE Interface to Clean+Build, set LCL interface to win32/win64 and set 'Target OS' to win32. Then 'build lazarus'.

You only need to build what can be used **inside** your projects. Synedit, Codetools and IDE Interface are used by LAzarus IDE only, you do not need to croos compile them (this is what they do in Setup_Cross_Compile_For_ARM)