[Lazarus] Cross Compile setup unsuccessful

JuuS JuuS at mykolab.ch
Wed Jun 17 14:46:48 CEST 2015


Hello,

I work with Lazarus 1.4.0 on Kubuntu 14.04 with an x86_64 system.

I wanted today to make my Lazarus cross compile to win32, win64 and
linux 32 bit.

I followed the directions at these two pages:

http://wiki.lazarus.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386

http://wiki.lazarus.freepascal.org/Cross_compiling_for_Win32_under_Linux

For windows the make all and make crossinstall appeared to have finished
properly with no errors. But when I attempt to make a cross install of
win32, for example, in Lazarus it says /usr/bin/fpc does not support the
target i386-win32


As for the make all for Linux i386 it fails with:

ld: warning: ./link.res contains output sections; did you forget -T?
ld: cannot find -lpthread
ld: cannot find -ldl
ld: cannot find -lc
fppkg.pp(396,1) Error: Error while linking
fppkg.pp(396,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [fppkg] Error 1
make[3]: Leaving directory `/usr/share/fpcsrc/2.6.4/utils/fppkg'
make[2]: *** [fppkg_all] Error 2
make[2]: Leaving directory `/usr/share/fpcsrc/2.6.4/utils'
make[1]: *** [utils_all] Error 2
make[1]: Leaving directory `/usr/share/fpcsrc/2.6.4'
make: *** [build-stamp.i386-linux] Error 2

So I am missing some other steps??

Thanks,

Julius




More information about the Lazarus mailing list