<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 27/05/13 12:18, Antonio Fortuny
wrote:<br>
</div>
<blockquote cite="mid:knv8do$8db$1@ger.gmane.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="Helvetica, Arial, sans-serif">Hi Folks.<br>
<br>
Because of my recent problems with Lazaus+FPC on win32, I'd like
to try a cross-compilation of my project on a win64 platform
targetting a win32 execution platform.<br>
I've downloaded the FPC sources 2.6.2 from the svn file
fpcbuild-2.6.2.zip<br>
I then copied folders "compiler", "ide" and "installer" from
fpcsrc from the zip file into the folder
"C:\lazarus\fpc\2.6.2\source"<br>
Didn't touch the "packages" and 'rtl" as they are up to date.<br>
</font></blockquote>
<font face="Helvetica, Arial, sans-serif">Use the whole source
folder. Don't mix and match.</font><br>
<blockquote cite="mid:knv8do$8db$1@ger.gmane.org" type="cite"><font
face="Helvetica, Arial, sans-serif"> open a command line
console:<br>
<br>
> set path=C:\lazarus\fpc\2.6.2\bin\x86_64-win64;%path%<br>
> cd C:\lazarus\fpc\2.6.2\source\compiler<br>
</font></blockquote>
<font face="Helvetica, Arial, sans-serif">You</font> should <font
face="Helvetica, Arial, sans-serif"> cd
C:\lazarus\fpc\2.6.2\source instead<br>
</font>
<blockquote cite="mid:knv8do$8db$1@ger.gmane.org" type="cite"><font
face="Helvetica, Arial, sans-serif"> > make all install
OS_TARGET=win32 CPU_TARGET=i386<br>
</font></blockquote>
<font face="Helvetica, Arial, sans-serif">As Joost mentioned, use 2
separate commands:<br>
'make all OS_TARGET=win32 CPU_TARGET=i386' and<br>
'make crossinstall OS_TARGET=win32 CPU_TARGET=i386'<br>
You might need to add to the crossinstall command
INSTALL_PREFIX=<installpath> if you want to control where
the installation will reside.<br>
</font>
<blockquote cite="mid:knv8do$8db$1@ger.gmane.org" type="cite"><font
face="Helvetica, Arial, sans-serif"> and :<br>
<i>C:/lazarus/fpc/2.6.2/bin/x86_64-win64/gmkdir.exe -p
i386/units/i386-win32</i><i><br>
</i><i>make ./msg2inc.exe</i><i><br>
</i><i>make[1]: Entering directory
`C:/lazarus/fpc/2.6.2/source/compiler'</i><i><br>
</i><i>C:/lazarus/fpc/2.6.2/bin/x86_64-win64/fpc.exe -Twin32
-Pi386 -XPi386-win32- -Xr -Fui386 -Fusystems -Fu../rtl -Fii386
-FE. -FUi386/units/i386-win32 -di386 -dGDB -dBROWSERLOG
-Fux86 -FE. utils/msg2inc.pp</i><i><br>
</i><i>Error: ppc386.exe can't be executed, error message:
Failed to execute ""ppc386.exe" -Twin32 -XPi386-win32- -Xr
-Fui386 -Fusystems -Fu../rtl -Fii386 -FE.
-FUi386/units/i386-win32 -di386 -dGDB -dBROWSERLOG -Fux86 -FE.
utils/msg2inc.pp ", error code: 2</i><i><br>
</i><i>make[1]: *** [msg2inc.exe] Error 1</i><i><br>
</i><i>make[1]: Leaving directory
`C:/lazarus/fpc/2.6.2/source/compiler'</i><i><br>
</i><i>make: *** [msgtxt.inc] Error 2</i><i><br>
</i></font></blockquote>
<font face="Helvetica, Arial, sans-serif">Where is ppc386.exe
located?</font> On Linux, I add the path to that as well.<br>
<br>
Stephano<br>
</body>
</html>