How do I make pcb-lesstif load custom footprints

(newlib) I don't get the footprint in the library window. The default libraries look ok. I've downloaded "pwrjack-2.1-5.5-3pin.fp" from gedasymbols, and put it in a local pkg/newlib directory. I've tried starting with

--lib_path=./

--lib_path=./pkg

--lib_path=./pkg/newlib

--lib_newlib=./pkg/newlib

/None/ of them seems to do what I want. Do i have to modify those scripts in /usr/share/pcb? Another attribute I missed?

This thing didn't work either: ElementList(Need,"V2","pkg/newlib/pwrjack-2.1-5.5-3pin.fp","12") I suspect there's a contents listing somewhere? Could only find the docs for the oldlib contents stuff and don't know if it applies to this...

Reply to
Johann Klammer
Loading thread data ...

using

--elements-dir=... did not work

--element-path=... did not work setting library-newlib=... in ~/.pcb/preferences did not work

The supposed menu entry to set it from the GUI... File ? Preferences? ? Library ? FOOTPRINTDIRECTORY.... it does not exist

Reply to
Johann Klammer

What I do is create a ~/.pcb/settings that contains this:

lib-newlib = /envy/dj/geda/gedasymbols/www/user/dj_delorie/footprints:footprints

Also, try "pcb --help":

--lib-newlib Top level directory for the newlib style library

Note: lib- not lib_

Right, the footprint name is just the basename of the file, and the .fp is optional.

Reply to
DJ Delorie

Is that a path-style list or is the last component `:footprints' a mystery item Also, can it be local paths or do they have2be absolute? (I still can't seem to load it...)

ok...

Reply to
Johann Klammer

Also, I seem to have a ~/.pcb/preferences there instead. Is that the file you're referring to? Tried with a ~/.pcb/settings too. Did not work...

Reply to
Johann Klammer

Got it working now... Seems it's settings.. the other file may have been an artifact of earlier tampering....

Also, the argv[] parser does not like the `='s thus `pcb-lesstif --lib-newlib=./pkg/newlib' fails silently while `pcb-lesstif --lib-newlib ./pkg/newlib' works...

To also get the system installed .fps (current debian testing) `pcb-lesstif --lib-newlib ./pkg:/usr/share/pcb/newlib:/usr/share/pcb/pcblib-newlib'

Reply to
Johann Klammer

Path-style. The last :footprints tells it to load a local ./footprints directory in each project.

That's for the gtk version, it stores gtk-specific information there, which may override the global (settings) options.

Again, see the --help:

--lib-newlib Top level directory for the newlib style library

Reply to
DJ Delorie

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.