← Back to team overview

kicad-developers team mailing list archive

Re: Global Search Paths and fp-lib-table Entries?

 

On 11/2/2014 4:25 PM, Bernhard Stegmaier wrote:
> Hi all,
> 
> I am still trying to find out/optimize where what is being loaded from (especially for OS X).
> In common/kiface_i.cpp the global search stack for pcbnew is initialized with 
>   …/modules
>   …/modules/packages3d
> with “…” being some OS specific base paths.
> 
> The global search stack seems to be used for eeschema libraries and I also found a piece of code which made me think that it is also used for loading 3D-models.
> However, fp-lib-table doesn’t seem to use it but only the path given for a library in fp-lib-table itself (maybe with some environment variables).
> 
> Am I missing something or does loading of modules currently ignore the global search paths?

You are not missing anything.  This is by design.  The fp-lib-table uses
fully qualified path either by definition or using environment
variables.  The path search stack has been a thorn in our side since
I've been with the project.  The goal is eventually define the paths by
using kicad config settings and/or environment variables so the search
path code goes away.

> If I have something like 
>     (lib (name Conn)(type Legacy)(uri Connectors.mod)(options "")(descr "Connectors"))
> in my fp-lib-table and Connectors.mod is in my
>  …/modules
> folder it doesn’t get loaded...

Connectors.mod will not get loaded unless it's located in the current
working directory.  You should define a full path or use an environment
variable as the path to Connectors.mod.  Environment variable are
platform independent.  Fully qualified paths are not.  Use the
environment variable KISYSMOD to define the default footprint library
path and add (uri ${KISYSMOD}/Connectors.mod) to fp-lib-table.  Better
yet, use the github plugin.  There is already an fp-lib-table file
populated for github in the kicad library project on github.


> 
> 
> Regards,
> Bernhard
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 




Follow ups

References