Mail Archives: geda-user/2021/06/13/13:20:47
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323329-2070337137-1623604767=:1159
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Sun, 13 Jun 2021, Claudio Fabri (clafi AT gmx DOT com) [via
geda-user AT delorie DOT com] wrote:
> OMG! You're my saviour (at least so far ;-)
>
> I indeed have an accented character in the current directory name. I ran
> gnetlist --list-backends from another directory and I now get a list of
> backends.
Hmm. I tried that, but that works fine on my machine.
Do you use a non-UTF8 locale?
> ERROR: Could not find backend `pcbfwd' in load path.
>
> […]
>
> ~# gnetlist --list-backends | grep -i pcb
> [PG] PCB
> [PG] gsch2pcb
> [PG] liquidpcb
> [P ] pcbfwd
> [PG] pcbpins
>
> This works: gnetlist -g PCB -o oscillator.net oscillator.sch
> This doesn't: gnetlist -g pcbfwd -o oscillator.net oscillator.sch
>
> I've also inspected the list of files for package pcb (I have version
> 4.2.2) and there's also a file named gnet-pcbfwd.scm in
> /usr/share/gEDA/scheme/.
Ah, yes. There are two variants for most backends: the legacy Guile one
(used with the -g option) and the newer Python one (used with -p).
Traditionally, the pcbfwd backend was supplied by PCB, so either PCB needs
to be installed to the same prefix as gEDA/gaf (so gnetlist finds the
gnet-pcbfwd.scm file), or the backend paths need to be adjusted correctly.
gEDA/gaf comes with its own Python version of the pcbfwd backend, so using
`-p pcbfwd' would work, but AFAIK, PCB doesn't allow changing the import
command.
You can add the directory to which gnet-pcbfwd.scm was installed by PCB to
the backend load path by adding the following line to your "gafrc" or
"gnetlistrc" file:
(scheme-directory "PCBPREFIX/share/gEDA/scheme/")
where PCBPREFIX needs to replaced with the directory PCB was installed to
(like "/usr/local"). Now, "gnetlist --list-backends" should yield
[PG] pcbfwd
with a G indicating that the Guile version of the backend was found.
Roland
--8323329-2070337137-1623604767=:1159--
- Raw text -