Il 07/05/2018 16:54, Gabor Boros via Lazarus ha scritto:
Hi All,

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.
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).

https://forum.lazarus.freepascal.org/index.php/topic,15716.msg85158.html#msg85158

Gabor

You might give a look to the way the problem has been solved in fpcup, (orĀ fpcupdeluxe ) making it possible to make different versions of fpc and Lazarus to coexist without going one into the way of the other.

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:

#!/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 "$@"

Hope that it helps,

Giuliano


-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to