On 27/05/13 12:18, Antonio Fortuny wrote:
Hi Folks.
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.
I've downloaded the FPC sources 2.6.2 from the svn file fpcbuild-2.6.2.zip
I then copied folders "compiler", "ide" and "installer" from fpcsrc
from the zip file into the folder "C:\lazarus\fpc\2.6.2\source"
Didn't touch the "packages" and 'rtl" as they are up to date.
Use the whole source folder. Don't mix and match.
open a command line console:
> set path=C:\lazarus\fpc\2.6.2\bin\x86_64-win64;%path%
> cd C:\lazarus\fpc\2.6.2\source\compiler
You should cd C:\lazarus\fpc\2.6.2\source instead
> make all install OS_TARGET=win32 CPU_TARGET=i386
As Joost mentioned, use 2 separate commands:
'make all OS_TARGET=win32 CPU_TARGET=i386' and
'make crossinstall OS_TARGET=win32 CPU_TARGET=i386'
You might need to add to the crossinstall command
INSTALL_PREFIX=<installpath> if you want to control where the
installation will reside.
and :
/C:/lazarus/fpc/2.6.2/bin/x86_64-win64/gmkdir.exe -p
i386/units/i386-win32//
//make ./msg2inc.exe//
//make[1]: Entering directory `C:/lazarus/fpc/2.6.2/source/compiler'//
//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//
//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//
//make[1]: *** [msg2inc.exe] Error 1//
//make[1]: Leaving directory `C:/lazarus/fpc/2.6.2/source/compiler'//
//make: *** [msgtxt.inc] Error 2//
/
Where is ppc386.exe located? On Linux, I add the path to that as well.
Stephano
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus