[Lazarus] Dual installation of FPC
Thierry B.
thierrybothorel at yahoo.fr
Sun Oct 24 23:42:59 CEST 2010
Le 24/10/2010 20:20, patspiper a écrit :
>>
>>
> So you have put ppc386 in the same folder as the fpc executable?
>
> My ppc386 is in .../fpc/2.5.1/lib/fpc/2.5.1 whereas fpc is in fpc/2.5.1/bin
>
Argl, you are right to insist. After each freepascal build from source,
, you have to link fpcres as I did AND link
/fpc/X.X.X/lib/fpc/X.X.X/ppcXXX to /fpc/X.X.X/bin/ppcXXX (although I did
only once for fpcres).
As I use a script to build FPC and Lazarus (inspired from various
sources here), I forgotten this step. Here is an excerpt
ake clean all $COMMONOPTS PP=$FPCSTART > ${LOGDIR}/build_fpc_log.txt 2>&1
if [ ! $? = 0 ] ; then
echo Grrr, failed again
else
make install $COMMONOPTS INSTALL_PREFIX=$INSTALLDIR
PP=$SRCDIR/compiler/$PPCNAME > ${LOGDIR}/install_fpc_log.txt 2>&1
if [ ! $? = 0 ] ; then
echo INSTALL failed | tee -a ${LOGDIR}/outcome.txt
else
ln --symbolic $INSTALLDIR/lib/fpc/$FPCNEWVERSION/$PPCNAME
$INSTALLDIR/bin/$PPCNAME <---------------------------------------------
echo Everything _should_ be fine.| tee -a ${LOGDIR}/outcome.txt
fi
fi
Thierry B.
More information about the Lazarus
mailing list