[fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin
Adriaan van Os
fpc at microbizz.nl
Tue Jul 17 11:48:37 CEST 2007
Daniƫl Mantione wrote:
> Then simply compile your program:
>
> fpc -Fu/path/to/fpc/rtl/units/i386-win32 -Twin32 myprogram.pas
>
> Happy crosscompiling!
This is how far I got with the crosscompiler:
[p17:~/fpc/svn/lazarus] adriaan% make OS_TARGET=win32
....
Free Pascal Compiler version 2.3.1 [2007/07/16] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling lazarus.pp
lazarus.pp(118,1) Error: resource compiler not found, switching to external mode
Linking ../lazarus.exe
lazarus.pp(118,1) Error: Can't open object file: ../units/i386-win32/fpc-res.or
lazarus.pp(118,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazarus.exe] Error 1
make[1]: *** [ide] Error 2
make: *** [ide] Error 2
[p17:~/fpc/svn/lazarus] adriaan% which fpcres
/usr/bin/fpcres
[p17:~/fpc/svn/lazarus] adriaan% which windres
/usr/bin/windres
[p17:~/fpc/svn/lazarus] adriaan% pushd units/i386-win32/
~/fpc/svn/lazarus/units/i386-win32 ~/fpc/svn/lazarus
[p17:lazarus/units/i386-win32] adriaan% windres --output-format coff --target=pe-i386 fpc-res.res
fpc-res.or
[p17:lazarus/units/i386-win32] adriaan% popd
~/fpc/svn/lazarus
[p17:~/fpc/svn/lazarus] adriaan% make OS_TARGET=win32
....
make -C ide ide
../tools/svn2revisioninc .. revision.inc
Retrieved revision with svnversion.
Created revision.inc for revision: 11524
make lazarus.res
make[2]: `lazarus.res' is up to date.
make --assume-new=lazarus.pp lazarus.exe OPT=' -WG '
/usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl -Fu../lcl/units/i386-win32
-Fu../lcl/units/i386-win32/win32 -Fu../components/codetools/units/i386-win32
-Fu../components/synedit/units/i386-win32 -Fu../components/custom -Fu../components/mpaslex
-Fu../ideintf/units/i386-win32 -Fu../designer -Fu../designer/jitform/units/i386-win32
-Fu../debugger -Fu../converter -Fu../packager -Fu../packager/units/i386-win32
-Fu../units/i386-win32 -Fu. -Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/hash
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/paszlib
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/netdb
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/regexpr
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/pasjpeg
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/ibase
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/postgres
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/mysql
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/odbc
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/oracle
-Fu/usr/local/lib/fpc/2.3.1/units/i386-win32/sqlite -Fiinclude -Fiinclude/win32 -Fi../images -FE..
-FU../units/i386-win32 -WG -di386 lazarus.pp
Free Pascal Compiler version 2.3.1 [2007/07/16] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling lazarus.pp
lazarus.pp(118,1) Error: resource compiler not found, switching to external mode
Linking ../lazarus.exe
lazarus.pp(118,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazarus.exe] Error 1
make[1]: *** [ide] Error 2
make: *** [ide] Error 2
But maybe this is something to ask on the Lazarus mailing list.
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list