[Lazarus] Using Laz 32bits to compile 64bits

Sven Barth pascaldragon at googlemail.com
Sat Aug 20 20:44:35 CEST 2011


Am 20.08.2011 20:05, schrieb Marcos Douglas:
> On Sat, Aug 20, 2011 at 5:51 AM, Sven Barth<pascaldragon at googlemail.com>  wrote:
>> Am 20.08.2011 05:01, schrieb Hans-Peter Diettrich:
>>>
>>> Marcos Douglas schrieb:
>>>
>>>> Question:
>>>> I can compile a new fpc.exe to 64bit using a ppc386.exe 32bit version,
>>>> on a machine 64bit?
>>>
>>> Yes and no ;-)
>>>
>>> Yes, you can create an ppcrossx64.exe, along with the 64 bit libraries,
>>> using ppc386.exe.
>>>
>>> No, fpc.exe doesn't compile anything itself, it only calls the compiler
>>> for the selected target.
>>
>> The point is that a fpc.exe compiled for 32bit will select the 32bit
>> compiler (ppcx86) as default while the one compiled for 64bit will select
>> the 64bit compiler as default (ppcx64). So it does matter what platform you
>> compile fpc.exe for.
>
> So, to compile the first version of FPC 64 I have to download a
> ppcx64.exe and run make. Is that?

fpc.exe is AFAIK only compiled if you run a "make install" or you run 
"make fpc" in the "compiler/utils" directory (not exactly sure about the 
last one).

Regards,
Sven





More information about the Lazarus mailing list