Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-06

Cross Compile setup unsuccessful

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

JuuS

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

Reply by email

Gabor Boros
to JuuS

2015.06.17. 14:46 keltez?ssel, JuuS ?rta:

Show quoted text 17 lines
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

Hi,

For Win32 add a symlink to /usr/bin for ppcross386. (I use cross compiler for Win32 only.)

Gabor

Reply by email

JuuS
to Gabor Boros
Gabor Boros wrote 24 lines
2015.06.17. 14:46 keltez?ssel, JuuS ?rta: > 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 Hi, For Win32 add a symlink to /usr/bin for ppcross386. (I use cross compiler for Win32 only.)

Thanks Gabor, I will look into it.

Show quoted text 9 lines
Gabor -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

leledumbo
to JuuS: I work with Lazarus 1.4.0 on Kubuntu 14.04 with an x86_64 system. I wanted today to make…
As for the make all for Linux i386 it fails with:

You need 32-bit libraries, too. Usually packaged with "multilib" in its name. After that, you need to add -Fl pointing to those 32-bit libraries as the default library search path must be for your 64-bit system. You might even need -Xd if the linker still fails to find them, it basically makes default search path empty so only directories listed by -Fl is searched.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cross-Compile-setup-unsuccessful-tp4042679p4042684.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

JuuS
to Ondrej Kelle: In case anybody finds it interesting, I've recently blogged: FPC and Lazarus development…

Thanks leledumbo and Ondrej, I am away now and will look these over in the next days.

Ondrej Kelle wrote 44 lines
Hi, In case anybody finds it interesting, I've recently blogged: FPC and Lazarus development environment Notes on how to set up a FreePascal/Lazarus development environment on a Linux system, with cross-compiling for OSX and Windows http://tondrej.blogspot.com/2015/05/fpc-and-lazarus-development-environment.html On 17 Jun 2015 18:03, "leledumbo" < <mailto:>> wrote: > As for the make all for Linux i386 it fails with: You need 32-bit libraries, too. Usually packaged with "multilib" in its name. After that, you need to add -Fl pointing to those 32-bit libraries as the default library search path must be for your 64-bit system. You might even need -Xd if the linker still fails to find them, it basically makes default search path empty so only directories listed by -Fl is searched. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cross-Compile-setup-unsuccessful-tp4042679p4042684.html Sent from the Free Pascal - Lazarus mailing list . -- _______________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Ondrej Kelle
to leledumbo: You need 32-bit libraries, too. Usually packaged with "multilib" in its name. After that,…

Hi,

In case anybody finds it interesting, I've recently blogged: FPC and Lazarus development environment

Notes on how to set up a FreePascal/Lazarus development environment on a Linux system, with cross-compiling for OSX and Windows http://tondrej.blogspot.com/2015/05/fpc-and-lazarus-development-environment.html

"leledumbo" wrote 21 lines
> As for the make all for Linux i386 it fails with: You need 32-bit libraries, too. Usually packaged with "multilib" in its name. After that, you need to add -Fl pointing to those 32-bit libraries as the default library search path must be for your 64-bit system. You might even need -Xd if the linker still fails to find them, it basically makes default search path empty so only directories listed by -Fl is searched. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cross-Compile-setup-unsuccessful-tp4042679p4042684.html Sent from the Free Pascal - Lazarus mailing list . -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150617/1174bf38/attachment.html>

Reply by email