Recent

Author Topic: Can i build a 32bit binary from my 64bit lazarus  (Read 12183 times)

a.atalla

  • Jr. Member
  • **
  • Posts: 82
Can i build a 32bit binary from my 64bit lazarus
« on: July 03, 2010, 09:44:30 pm »
hi every one
i have fpc2.4  and lazarus from svn  all 64bit on fedora 13
can i build an exec from my projects to work in 32bit machines ???
Lazarus 1.0.8 | FPC 2.6.2 x64  | Arch Linux x64 | Windows 7-x86

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #1 on: July 03, 2010, 09:56:02 pm »
you should be able too..

a.atalla

  • Jr. Member
  • **
  • Posts: 82
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #2 on: July 04, 2010, 07:02:54 am »
is like this

Code: [Select]
lazbuild --cpu=i386
that give me the error

Code: [Select]
Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127
ERROR: failed compiling of project
« Last Edit: July 04, 2010, 07:07:17 am by a.atalla »
Lazarus 1.0.8 | FPC 2.6.2 x64  | Arch Linux x64 | Windows 7-x86

Leledumbo

  • Hero Member
  • *****
  • Posts: 8774
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #3 on: July 05, 2010, 10:54:41 am »
Not as simple as running lazbuild buddy, you'll need a cross compiler. Read our holy wiki.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2615
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #4 on: July 07, 2010, 10:41:22 am »
A little correction, for 64bit linux /windows, you can also run the native 32bit compiler. No need for a crosscompiler
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Leledumbo

  • Hero Member
  • *****
  • Posts: 8774
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #5 on: July 07, 2010, 01:58:21 pm »
Quote
A little correction, for 64bit linux /windows, you can also run the native 32bit compiler. No need for a crosscompiler
Oh, I forgot that these OSes provide backward compatibility :P

a.atalla

  • Jr. Member
  • **
  • Posts: 82
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #6 on: July 07, 2010, 04:19:16 pm »
that mean i can install fpc and lazarus 32bit version on my 64bit system and work normally
but then i wion't be able to build 64bit binary :)

i think i will use a 32bit system on virtualbox to build the 32bit binaries
Lazarus 1.0.8 | FPC 2.6.2 x64  | Arch Linux x64 | Windows 7-x86

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2615
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #7 on: July 07, 2010, 11:40:11 pm »
You can install both, side by side. One is called ppc386, the other ppcx64
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Leledumbo

  • Hero Member
  • *****
  • Posts: 8774
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #8 on: July 08, 2010, 05:58:01 am »
Quote
that mean i can install fpc and lazarus 32bit version on my 64bit system and work normally
You don't need 32-bit lazarus for this, just fpc.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2615
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #9 on: July 08, 2010, 06:29:59 pm »
Quote
that mean i can install fpc and lazarus 32bit version on my 64bit system and work normally
You don't need 32-bit lazarus for this, just fpc.

fpc alone won't help, since it is a frontend for ppc386 or ppcx64. You do need the actual compolers
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Leledumbo

  • Hero Member
  • *****
  • Posts: 8774
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can i build a 32bit binary from my 64bit lazarus
« Reply #10 on: July 09, 2010, 09:18:44 am »
by fpc, I mean the "whole" package, not just "fpc" executable ;)

 

TinyPortal © 2005-2018