[Lazarus] Codetools can't find units in 'other sources'

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Nov 4 23:01:32 CET 2010


On Wed, 03 Nov 2010 11:24:55 +0100
Joost van der Sluis <joost at cnoc.nl> wrote:

> On Tue, 2010-11-02 at 23:43 +0100, Mattias Gaertner wrote:
> > On Tue, 02 Nov 2010 19:13:46 +0100
> > Joost van der Sluis <joost at cnoc.nl> wrote:
> > 
> > > Hi all,
> > > 
> > > The Lazarus Codetools are complaining that a unit can't be found. But it
> > > is available in the path I've given in the 'compiler-options' as 'Other
> > > Sources'.
> > > 
> > > But also placing the path in 'other units /-Fu' doesn't help. Maybe
> > > something to do with the new buildmodes?
> > 
> > What paths do you see in the 'Unit info'?
> 
> The paths added for the packages being used (ideintf, lcl and my own
> Gecko package) and 'packager' (what is this?)

The 'FCL' package. The stuff for registering the
package and the units. At the moment only the IDE uses this to let
design time packages register themselves.

 
> So, unit-info, unit paths:

For what directory?

Let's assume you did that for directory X.

> /home/svn/lazarus/ideintf/units/x86_64-linux
> /home/svn/lazarus/lcl/units/x86_64-linux
> /home/svn/lazarus/lcl/units/x86_64-linux/gtk2
> /home/svn/lazarus/packager/units/x86_64-linux
> /home/joost/.fppkg/share/doc/fpc-gecko-0.9.0-1/lazaruspackage/Components
> 
> include paths:
> /home/joost/.fppkg/share/doc/fpc-gecko-0.9.0-1/lazaruspackage/Components
> 
> Source paths:
> /home/joost/.fppkg/share/doc/fpc-gecko-0.9.0-1/lazaruspackage/Components
> /home/svn/lazarus/ideintf/units/x86_64-linux
> /home/svn/lazarus/lcl/units/x86_64-linux
> /home/svn/lazarus/lcl/units/x86_64-linux/gtk2
> /home/svn/lazarus/packager/units/x86_64-linux
> /local/svn/tiOPF2-trunk/Core
> /home/svn/lazarus/ideintf
> /home/svn/lazarus/lcl
> /home/svn/lazarus/lcl/widgetset
> /home/svn/lazarus/lcl/nonwin32
> /home/svn/lazarus/lcl/interfaces/gtk2
> /home/svn/lazarus/packager/registration
> 
> (I'm curious why tiopf is there, and nonwin32. I do use them but not in
> this project.)

'nonwin32' comes from the LCL.
The directory X belongs to Y, which is a project or a package, which
uses the LCL, IDEIntf, tiopf and fpc-gecko.

 
> While -Fu is: (compiler options)
> /home/svn/webdesign-trunk/geckoport/;/home/svn/webdesign-trunk/geckoport/each-version/

I guess you mean the compiler options of your project Z.
The Fu paths are not in the list of Y, so Z<>Y.

The question is: What is Y?

 
> And Other Soruces: (compiler options)
> /home/svn/webdesign-trunk/geckoport/;/home/svn/webdesign-trunk/geckoport/each-version/

Please read this:
http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Other_sources

Mattias




More information about the Lazarus mailing list