<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Il 07/05/2018 16:54, Gabor Boros via
Lazarus ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:d1ccfe35-01bf-e8ae-1e07-54b858b2c5ad@bgss.hu">Hi All,
<br>
<br>
My main development toolset is FPC 3.0.4 and Lazarus fixes_1_8.
Sometimes I try some things with Lazarus trunk also. It is easy.
<br>
But now build up a new development machine from scratch with RHEL
7.5 on it and try to utilize FPC trunk too (with Lazarus trunk). I
use "--primary-config-path" option always, so Lazarus config
placement is not a problem. But the two FPC versions coexist. I
found a solution from 2012 on the forum (see the link below). Is
BigChimp's suggestion (1.-6.) a good starting point nowadays or
something changed meanwhile in this topic. I will build everything
(Lazarus fixes_1_8 and trunk, FPC trunk) from source except the
actual stable FPC (now 3.0.4).
<br>
<br>
<a class="moz-txt-link-freetext" href="https://forum.lazarus.freepascal.org/index.php/topic,15716.msg85158.html#msg85158">https://forum.lazarus.freepascal.org/index.php/topic,15716.msg85158.html#msg85158</a>
<br>
<br>
Gabor
<br>
</blockquote>
<p>You might give a look to the way the problem has been solved in <a
moz-do-not-send="true" href="http://wiki.freepascal.org/fpcup">fpcup</a>,
(orĀ <a moz-do-not-send="true"
href="http://wiki.freepascal.org/fpcupdeluxe">fpcupdeluxe</a> )
making it possible to make different versions of fpc and Lazarus
to coexist without going one into the way of the other.</p>
<p>E.G. you may have a full tree (fpc+Lazarus) in ~/development/
another one in ~/production and a third one in ~/experiments. The
main trick, as far as fpc is concerned, is to have as fpc
executable an fpc.sh (a name which is accepted by Lazarus) which
sets up whatever is needed. This is a sample of fpc.sh:</p>
<pre><blockquote type="cite">#!/bin/sh
# This script starts the fpc compiler installed by fpcup
# and ignores any system-wide fpc.cfg files
# Note: maintained by fpcup; do not edit directly, your edits will be lost.
/home/colla/development/fpc/bin/x86_64-linux/fpc -n @/home/colla/development/fpc/bin/x86_64-linux/fpc.cfg "$@"
</blockquote>
</pre>
<p>Hope that it helps,</p>
<p>Giuliano<br>
</p>
</body>
</html>