[Lazarus] Is there a way to choose with fpc to use in lazarus command?

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Sep 25 23:20:42 CEST 2010


On Sat, 25 Sep 2010 21:48:27 +0100
Frank Church <vfclists at gmail.com> wrote:

> On 25 September 2010 21:30, Mattias Gaertner <nc-gaertnma at netcologne.de>wrote:
> 
> > On Sat, 25 Sep 2010 21:13:32 +0100
> > Frank Church <vfclists at gmail.com> wrote:
> >
> > > On 25 September 2010 20:58, Marcos Douglas <md at delfire.net> wrote:
> > >
> > > > 2010/9/25 Frank Church <vfclists at gmail.com>:
> > > > >
> > > > > Is there a way to pass on the version of FPC you want to use with
> > > > > startlazarus or lazarus command?
> > > >
> > > > The configuration of Lazarus is created, at the first time, in
> > > > C:\Documents and Settings\<username>\Application Data\lazarus\
> > > > You can modify these files, manually, or you can use the IDE to modify
> > > > them.
> > > > After, copy this folder to other place and use the parameter
> > > > --pcp=<your new config folder> like this (on Windows):
> > > >
> > > > start lazarus --pcp=c:\your_config_folder
> > > >
> > > > > Is there  a way it can be set in the fpc.cfg, and can the fpc.cfg be
> > > > passed
> > > > > to ths lazarus command?
> > > >
> > > > You can use the enviroment variable PPC_CONFIG_PATH to set where is
> > > > the fpc.cfg file.
> > > >
> > > > > I have a 2.2.4 from repository and a 2.4.0 svn build and Lazarus is
> > > > always
> > > > > reverting to the 2.2.4 version.
> > > >
> > > > I use FPC 2.5.1 and Laz 0.9.29.
> > > >
> > > >
> > > Can you set which ppc386 file to use in the fpc.cfg?
> >
> > No. The fpc.cfg is read by the ppc386.
> >
> >
> > > Is there a way to automatically generate the right fpc.cfg based on which
> > > ppc386 your are using. Sven Barth has shown me a way to tell the fpc
> > which
> > > ppc386 to use, but I am looking for a way to set it in the IDE or in the
> > > fpc.cfg
> >
> > What's wrong with
> > IDE menu / Environment / Options ... / Environment /
> > Files / compiler path
> > ?
> >
> 
> Because the caption of the compiler path settings says "Compiler path (e.g.
> fpc)" I thought it had to be set to the bin/fpc.

The caption says fpc, because for most users the path to the fpc
executable is the best choice.


> It is now set to ppc386
> 
> I am now get the dreaded "Fatal: Can't find unit Contnrs used by xxxxx"
> error, yet it is located in  <source_dir>/packages/fcl-base/src/contnrs.pp

The compiler searches the ppu.
The error message probably means the compiler found ppu files compiled
with a different version. Note: The Contnrs is just the first unit the
compiler misses.
Have you compiled lazarus with the new compiler?


Mattias




More information about the Lazarus mailing list