Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #383965 > unrolled thread

How do I make pcb-lesstif load custom footprints

Started byJohann Klammer <klammerj@NOSPAM.a1.net>
First post2015-11-05 18:34 +0100
Last post2015-11-06 16:27 +0100
Articles 7 — 2 participants

Back to article view | Back to sci.electronics.design


Contents

  How do I make pcb-lesstif load custom footprints Johann Klammer <klammerj@NOSPAM.a1.net> - 2015-11-05 18:34 +0100
    Re: How do I make pcb-lesstif load custom footprints Johann Klammer <klammerj@NOSPAM.a1.net> - 2015-11-05 19:10 +0100
    Re: How do I make pcb-lesstif load custom footprints DJ Delorie <dj@delorie.com> - 2015-11-05 16:47 -0500
      Re: How do I make pcb-lesstif load custom footprints Johann Klammer <klammerj@NOSPAM.a1.net> - 2015-11-06 00:39 +0100
        Re: How do I make pcb-lesstif load custom footprints DJ Delorie <dj@delorie.com> - 2015-11-06 12:24 -0500
      Re: How do I make pcb-lesstif load custom footprints Johann Klammer <klammerj@NOSPAM.a1.net> - 2015-11-06 00:45 +0100
        Re: How do I make pcb-lesstif load custom footprints Johann Klammer <klammerj@NOSPAM.a1.net> - 2015-11-06 16:27 +0100

#383965 — How do I make pcb-lesstif load custom footprints

FromJohann Klammer <klammerj@NOSPAM.a1.net>
Date2015-11-05 18:34 +0100
SubjectHow do I make pcb-lesstif load custom footprints
Message-ID<n1g3uv$4cv$1@speranza.aioe.org>
(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...

[toc] | [next] | [standalone]


#383969

FromJohann Klammer <klammerj@NOSPAM.a1.net>
Date2015-11-05 19:10 +0100
Message-ID<n1g61m$9gh$1@speranza.aioe.org>
In reply to#383965
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

[toc] | [prev] | [next] | [standalone]


#383976

FromDJ Delorie <dj@delorie.com>
Date2015-11-05 16:47 -0500
Message-ID<xnfv0kglus.fsf@delorie.com>
In reply to#383965
Johann Klammer <klammerj@NOSPAM.a1.net> writes:
> 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. 

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 <string>          Top level directory for the newlib style library

Note: lib- not lib_

> 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?

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

[toc] | [prev] | [next] | [standalone]


#383983

FromJohann Klammer <klammerj@NOSPAM.a1.net>
Date2015-11-06 00:39 +0100
Message-ID<n1gpbq$l8p$1@speranza.aioe.org>
In reply to#383976
On 11/05/2015 10:47 PM, DJ Delorie wrote:
> 
> Johann Klammer <klammerj@NOSPAM.a1.net> writes:
>> 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. 
> 
> What I do is create a ~/.pcb/settings that contains this:
> 
> lib-newlib = /envy/dj/geda/gedasymbols/www/user/dj_delorie/footprints:footprints
> 
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...)
> Also, try "pcb --help":
> 
>  --lib-newlib <string>          Top level directory for the newlib style library
> 
> Note: lib- not lib_
ok...
> 
>> 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?
> 
> Right, the footprint name is just the basename of the file, and the .fp
> is optional.
> 

[toc] | [prev] | [next] | [standalone]


#384035

FromDJ Delorie <dj@delorie.com>
Date2015-11-06 12:24 -0500
Message-ID<xn7flvghwa.fsf@delorie.com>
In reply to#383983
Johann Klammer <klammerj@NOSPAM.a1.net> writes:
> 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?

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

> 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...

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

> Also, the argv[] parser does not like the `='s 

Again, see the --help:

 --lib-newlib <string>          Top level directory for the newlib style library

[toc] | [prev] | [next] | [standalone]


#383986

FromJohann Klammer <klammerj@NOSPAM.a1.net>
Date2015-11-06 00:45 +0100
Message-ID<n1gpm2$lrf$1@speranza.aioe.org>
In reply to#383976
On 11/05/2015 10:47 PM, DJ Delorie wrote:
> 
> Johann Klammer <klammerj@NOSPAM.a1.net> writes:
>> 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. 
> 
> What I do is create a ~/.pcb/settings that contains this:
> 
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...

[toc] | [prev] | [next] | [standalone]


#384027

FromJohann Klammer <klammerj@NOSPAM.a1.net>
Date2015-11-06 16:27 +0100
Message-ID<n1igt9$2ve$1@speranza.aioe.org>
In reply to#383986
On 11/06/2015 12:45 AM, Johann Klammer wrote:
> On 11/05/2015 10:47 PM, DJ Delorie wrote:
>>
>> Johann Klammer <klammerj@NOSPAM.a1.net> writes:
>>> 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. 
>>
>> What I do is create a ~/.pcb/settings that contains this:
>>
> 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...
> 
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'

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web