[fpc-devel] Compiling fpc subversion on a AMD64 box with Win 7 64 bit OS

Dimitrios Chr. Ioannidis dioannidis at artesoft.gr
Fri Oct 30 16:06:49 CET 2009


Jonas Hi,

O/H Jonas Maebe έγραψε:
> On 30 Oct 2009, at 15:28, Dimitrios Chr. Ioannidis wrote:
> 
>>> * native x86_64 compiler (assuming your fpc.exe in the path is an 
>>> x86_64 version)
>>> * 'native' i386 compiler
>>> * ARM/wince cross-compiler
>>
>> In the above case i will end up with two dir's in fpc\bin. One 
>> i386-win32 and one x86_64-win64. How can i use that schema with 
>> Lazarus and fpc.exe ?
> 
> You can use fpc's -P option to select the target cpu, e.g. "fpc -P arm" 
> will make fpc execute "ppcarm.exe" if fpc's native architecture is ARM, 
> and ppcrossarm.exe if it's native architecture is something different 
> (except on Mac OS X, because there this scheme is not required due to 
> the concept of fat binaries -- although we don't make active use of that 
> yet). I have no idea which directories fpc.exe searches by default under 
> Windows for these compiler binaries. It should at least look in the same 
> directory as where fpc.exe is located. On Unix, we put symlinks to the 
> other compiler binaries in that same directory. You can try looking at 
> the source of compiler/utils/fpc.pp, it shouldn't be very complex.

I'll do that, thanks.

>> It's more user friendly to change the project compiler options for 
>> different os/cpu compination than to have to do it in lazarus options.
> 
> I think working around the IDE's internal configuration can lead to 
> hidden problems (since the IDE assumes that you are still compiling for 
> a different architecture). I would strongly recommend against doing 
> that, and if you still do it I would always test with a "proper" 
> configuration before reporting any bugs.

I've done it a lot with a i386-win32 compiler and a cross arm compiler 
builded with it. The Lazarus IDE supports fine that configuration. You 
just change the project compiler options (widget and target platform in 
code page) and the project is compiled for that conf. The new 
configuration with a i386-win32 compiler, a x86_64 cross compiler and a 
arm-wince cross compiler with the Lazarus IDE works. But, off course 
advise noted it. You should know better than me.

>> PS: In case you missed it i had to add the path of the fpcm util cause 
>> the build process required it but couldn't find it.
> 
> The build process always assumes that you have a full FPC install of the 
> previous release available.

If it's not difficult maybe this can change ? Or there is no need ? 
Personally i prefer a "naked" system with only the sources plus the 
ppcXXXX.exe executable to build my dev system.


regards,
-- 
Dimitrios Chr. Ioannidis



More information about the fpc-devel mailing list