Sign in Join

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

Mailing lists / lazarus / 2008-03

64bit -> 32bit cross compilation

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Sebastian Kraft

Hello,

just updated to 64bit ubuntu.
Is it possible to create a 32bit binary on a 64bit system?

I need to create 32bit binaries beacuse my application links to a closed source 32bit only library

thanks for any hints!

Sebastian

Reply by email

ik
to Felipe Monteiro de Carvalho

Yes, but with a cost ! It's slower, and requires 32 bit libraries to be loaded (due to 32 bit ABI).

Ido

Felipe Monteiro de Carvalho wrote 13 lines
I think 32-bits programs usually run on 64-bits systems, so you can just install free pascal / lazarus for 32-bits in your system and use them. -- Felipe Monteiro de Carvalho _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Georg Vollnhals
to Felipe Monteiro de Carvalho: I think 32-bits programs usually run on 64-bits systems, so you can just install free…
Show quoted text 5 lines
I think 32-bits programs usually run on 64-bits systems, so you can just install free pascal / lazarus for 32-bits in your system and use them.

This might be a possibility for Sebastian Kraft, who asked.

I have the problem that I would like to share a Lazarus program compiled to 64 and 32 bit and I am on an OpenSUSE 10.2 (10.3) 64bit Linux system with a 64bit Lazarus snapshot installed.

It would be great to compile the sources either to 64 AND next step to 32 bit.
So I am asking the same as Sebastian did - is there any (easy) possibility?

Thank you very much for your time to answer this question.

Regards
Georg

Reply by email

Sebastian Kraft
to micahel schneider
micahel schneider wrote 14 lines
Am Sonntag 16 M?rz 2008 schrieb Sebastian Kraft: > Hello, > > just updated to 64bit ubuntu. > Is it possible to create a 32bit binary on a 64bit system? > > I need to create 32bit binaries beacuse my application links to a closed > source 32bit only library > > thanks for any hints! > > Sebastian chroot or VMware/Xen

I hoped that there was a simpler solution...
Tried out chroot. It took about an hour to set it up and understand the concept and usage but now everything works like it should.

For people who understand german language I can recommend you this howto http://wiki.ubuntuusers.de/32-Bit_chroot
Haven't found an equivalent english version of it :(

Sebastian

Reply by email