I have an Ubuntu 18.04 laptop on which I have installed fpc 3.0.4/Lazarus 2.0.8 from sources via svn almost a year back into *my home dir*. No system-wide install.
Now I am in the process of also installing fpc 3.2.0 from sources. I have a script for installing on a clean machine that I am reading from and using the appropriate calls when most has been already installed. So for fpc my steps are: cd ~/dev/fpc/3.2.0 (this is the source dir filled via svn) make clean make all FPC="$HOME/bin/ppcx64" (fpc 3.0.4 is symlinked here) make install PREFIX=$HOME FPC="$HOME/bin/ppcx64" make sourceinstall PREFIX=$HOME This all works fine. Now my notes say that I need to create the fpc.cfg file using: $HOME/lib/fpc/3.2.0/samplecfg "$HOME/lib/fpc/3.2.0" "$HOME" This creates the file $HOME/fpc.cfg, which is then renamed: mv "$HOME/fpc.cfg" "$HOME/.fpc.cfg" But my existing installation already contains the $HOME/.fpc.cfg, which is used by Lazarus 2.0.8/fpc 3.0.4... So what is the deal here if I want to have both Lazarus 2.0.10/fpc 3.2.0 and the old Lazarus 2.0.8/fpc 3.0.4 operational? Can they share the same fpc.cfg file (or rather .fpc.cfg)? I renamed the existing .fpc.cfg before doing the last step so I have both the new fpc.cfg and the old .fpc.cfg_3.0.4 and the diff between them looks like this: $ diff fpc.cfg .fpc.cfg_3.0.4 2c2 < # Config file generated by fpcmkcfg on 5-2-21 - 23:49:17 --- > # Config file generated by fpcmkcfg on 15-4-20 - 01:01:27 35,37d34 < #ELSE < # Strip debuginfo from the executable if not in debug mode < -Xs 43a41,42 > # path to Xcode 4.3+ utilities (no problem if it doesn't exist) > -FD/Applications/Xcode.app/Contents/Developer/usr/bin 149,150c148,152 < # Search for $fpctarget/$fpcsubarch-$fpcmemorymodel/ subdirectory first < # for i8086 CPU --- > # searchpath for units and other system dependent things > -Fu/home/bosse/lib/fpc/$fpcversion/units/$fpctarget > -Fu/home/bosse/lib/fpc/$fpcversion/units/$fpctarget/* > -Fu/home/bosse/lib/fpc/$fpcversion/units/$fpctarget/rtl > 157,161d158 < # searchpath for units and other system dependent things < -Fu/home/bosse/lib/fpc/$fpcversion/units/$fpctarget < -Fu/home/bosse/lib/fpc/$fpcversion/units/$fpctarget/* < -Fu/home/bosse/lib/fpc/$fpcversion/units/$fpctarget/rtl < 175,177d171 < # searchpath for tools < -FD/home/bosse/lib/fpc/$fpcversion/bin/$FPCTARGET < 190a185,187 > # searchpath for tools > -FD/home/bosse/lib/fpc/$fpcversion/bin/$FPCTARGET > 250a248,250 > > # Always strip debuginfo from the executable > -Xs Unfortunately I cannot decode this because I am not used to this diff format... Can I keep my existing .fpc.cfg file or should I rename the fpc.cfg to .fpc.cfg? I have not yet built Lazarus... -- Bo Berglund Developer in Sweden _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal