[Lazarus] Cross compiling LCL win32=>win64; update wiki?

Reinier Olislagers reinierolislagers at gmail.com
Sun Feb 19 13:22:47 CET 2012


On 19-2-2012 11:13, Sven Barth wrote:
> Am 19.02.2012 07:23 schrieb "Reinier Olislagers"
> <reinierolislagers at gmail.com <mailto:reinierolislagers at gmail.com>>:
<snip description of Wiki LCL crosscompile instructions>
> Note: this doesn't describe the situation in trunk anymore.

<snip>>
>> 1) Does the above translate in a makefile like this:
>> make distclean LCL_PLATFORM=win64 CPU_TARGET=x86_64 OS_TARGET=win64
>> (this wouldn't interfere with my existing 32 bit LCL and IDE, would it?)
>>
>> make packager/registration lazutils lcl LCL_PLATFORM=win64
>> CPU_TARGET=x86_64 OS_TARGET=win64
>>
> 
> AFAIK this should be LCL_PLATFORM=win32 as the code is shared with the
> win32 platform (and no, they won't interfere with eachother)
Ok, thanks, will give that a go.


>> 3) Unrelated... I can take this to the FPC list as well..
>> The FPC manual, chapter 5 on -Txxx, says you can find out supported
>> compilers using -i; for me (FPC 2.7.1):
>> cd \development\fpc
>> fpc -i
>> it shows e.g. Win32 for i386, but not win64.
>> However, calling ppcrossx64 -i does show Win64 for x64.
>> 2 questions:
>> 3.1) Am I interpreting the docs incorrectly? I thought fpc would spit
>> out the info for all compilers it has in its directory.
> 
> You are interpreting this correctly. Using -P you tell the fpc binary
> which compiler to call which will inturn print it's info (it's the same
> output you'd achieve if you'd call the ppc* binary with -i yourself).
> This is by design (note: calling fpc without -P will simply call the
> default compiler binary for the platform fpc was compiled for)
Ok, that's clear.

>> 3.2) How do I go from the description, e.g. "OS/2 via EMX" to the
>> required -T setting, e.g. -Tos2?
> 
> It might be better to call FPC with -h then and fetch all lines starting
> with -T (this has the same platform restrictions as the -i variant)

My regex skills are not that good, but
fpcdev -h | grep "^      \-T"
already gives good results, thanks.

Thanks again, Sven!

Reinier




More information about the Lazarus mailing list