<br><br><div class="gmail_quote">On 25 September 2010 20:33, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 24.09.2010 21:53, Frank Church wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
<br>
On 24 September 2010 16:45, Sven Barth <<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a><br></div><div class="im">
<mailto:<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>>> wrote:<br>
    There should be a makeskel or similar binary in fpc240/bin/fpc which<br>
    you can call to create a config skeleton (you might call it with -h<br>
    to see its help).<br>
<br>
<br>
I think the command in question is 'samplecfg'. It also generates some<br>
fp.xxx files under ~/.fp/. I hope they are for the command line version.<br>
Could they possibly interfere with other versions of FreePascal I might<br>
be using?<br>
</div></blockquote>
<br>
As I'm now on my Linux PC again, I checked that: it is makeskel in ~/LazarusInstalls/fpc240/bin/makeskel. The help can be queried by using "-h" or "--help" as parameter.<br>
<br></blockquote><div><br>makeskel has a whole lot of options but none of them mention fpc.cfg. Do you have a sample command? It appears to be some kind of xml generator.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

FPC reads by default the configuration file from ~/.fpc.cfg (and /etc/fpc.cfg, but I'm not using that one). So every FPC version will use that file if it exists and you didn't tell it to exclude the default file with "-n" (I forgot that below).<br>

<br>
But you can use the $fpcversion macros in the config file to "generalize" that (might be usable with the "one prefix" configuration below).<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am working through you suggestions and I notice that the 2.4.0<br>
specific files seem to be in a directory lib/fpc/2.4.0 under<br>
~/LazarusInstalls/fpc240, which contains a 'share' and a 'bin'<br>
directory.'share' contains a 'doc/2.4.0' directory.<br>
<br>
Does that mean that the I could also use  make install<br>
INSTALL_PREFIX='~/LazarusInstalls/fpc240' command to install all the fpc<br>
versions into the same directory without their executable's clashing?<br>
</blockquote>
><br>
> I take it that the 'bin' folder in the INSTALL_PREFIX contains utilities<br>
> which can be shared among the different installations, and that the<br>
> 'share' folder will also have different docs for the versions.<br>
><br>
<br></div>
Yes, the utilities in "bin" can be shared, but you need to make sure that they are from the newest version you are using, because the compiler might rely on them.<br>
<br>
And I just noticed: you can force "fpc" to look in a certain directory for the compiler instead of relying on path:<br>
<br>
fpc -Xp~/LazarusInstalls/fpc240/lib/fpc/2.4.0 {other parameters}<br>
<br>
will search for the "ppc*" in the version 2.4.0 directory, while<br>
<br>
fpc -Xp~/LazarusInstalls/fpc240/lib/fpc/2.5.1 {other parameters}<br></blockquote><div><br>I have tested this and it works but it does not accept the ~ . It needs the full path name, it also rather odd because it does not allow the use of a space between the option and the parameter.<br>
<br>Can this be set in the Lazarus environment as well, for all projectsm and Lazarus IDE rebuilds?<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
will search in the 2.5.1 directory<div><div></div><div class="h5"><br>
<br>
Regards,<br>
Sven<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>