| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-help-bounces using -f |
| X-Recipient: | geda-help AT delorie DOT com |
| X-Original-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
| d=gmail.com; s=20120113; | |
| h=mime-version:from:date:message-id:subject:to:content-type; | |
| bh=n4kFdyOLPZMDyIZ/+3m0z2JqtOr9CD8Z9a254Q6zuzw=; | |
| b=SQkjm8XcDPiiRX243qHIbqhSR9a1n/bQX39zYsY0XVJ1tPde3zPgAykidgWK2yd20I | |
| 19DYYBmBohoXW5EFjtxa+7QUGTrZruNK91hJajdVCd208nhM50RyPC+Pb+gYglfFeMGX | |
| dKdVepGJZ7or6SNM3H/fvmS8I5Mz64qdEiSUNhLNE1sbBf+tHodLUmtkBKJ5p6lfplhD | |
| pKRYRO22YDoCRNodsUYKnUsSH8/9jlFY3BSaYUprZLzymiH3R1UMca1hptB2j+PORxFR | |
| XCsK8NJE2zXQW8fcbt7SVBYt8HLn73jJMJyL1gtaa31MCfyu5BoKuIo+VnV5JH4hLWaf | |
| mivg== | |
| X-Received: | by 10.170.152.195 with SMTP id t186mr11441786ykc.78.1433640459109; |
| Sat, 06 Jun 2015 18:27:39 -0700 (PDT) | |
| MIME-Version: | 1.0 |
| From: | "Nate Villaume (natevillaume AT gmail DOT com)" <geda-help AT delorie DOT com> |
| Date: | Sun, 07 Jun 2015 01:27:28 +0000 |
| Message-ID: | <CAAMuX+MynpPMv+=S3mb6ba7e1yUh0jMgjgerDDFbYVnaAB9Duw@mail.gmail.com> |
| Subject: | [geda-help] modern tutorial or gsch2pcb docs? |
| To: | geda-help AT delorie DOT com |
| Reply-To: | geda-help AT delorie DOT com |
--001a1139ce304d0ae20517e36e57
Content-Type: text/plain; charset=UTF-8
I tried using the tutorial
http://wiki.geda-project.org/geda:gsch2pcb_tutorial
but I can't get gsch2pcb to generate a pcb file ( I get "No elements to add
so not creating board.new.pcb")
When I run 'gsch2pcb -v project' I see that my installation on mac doesn't
have the same path to the m4 installation. So I override this in the
project file with:
m4-pcbdir /sw/share/pcb/m4
That doesn't get me past that the PATH to the executable is hardwired. I
note the instructions on how to overload this in the project gafrc file.
The syntax in the verbose output doesn't seem to have any impact on finding
my m4 processor (and doesn't work if you specify it as directed
using gafrc ERROR: Unable to parse config from
[/Users/villaume/gaf/myproject1/gafrc]: Unbound variable:
gsch2pcb:pcb-m4-command:
ERROR: The gnetlist log may contain more information.))
A friend said I shouldn't use the m4 macros. But I need a modern tutorial,
or instructions on how to force gsch2pcb to see my m4 processor...
my project file:
schematics one.sch two.sch
output-name board
m4-pcbdir /sw/share/pcb/m4
pcb-m4-command /usr/bin/m4
-----
Reading project file: project
schematics "one.sch two.sch"
output-name "board"
m4-pcbdir "/sw/share/pcb/m4"
pcb-m4-command "/usr/bin/m4"
Processing PCBLIBPATH="/sw/share/pcb/pcblib-newlib:/sw/share/pcb/newlib"
Adding /sw/share/pcb/pcblib-newlib to the newlib search path
Adding /sw/share/pcb/newlib to the newlib search path
Running command:
gnetlist -g pcbpins -o board.cmd one.sch two.sch
--------
Loading schematic [/Users/villaume/gaf/myproject1/one.sch]
Loading schematic [/Users/villaume/gaf/myproject1/two.sch]
--------
Running command:
gnetlist -g PCB -o board.net one.sch two.sch
--------
Loading schematic [/Users/villaume/gaf/myproject1/one.sch]
Loading schematic [/Users/villaume/gaf/myproject1/two.sch]
--------
Default m4-pcbdir: /sw/share/pcb/pcb/m4
--------
gnet-gsch2pcb-tmp.scm override file:
(define gsch2pcb:pcb-m4-dir "/sw/share/pcb/m4")
(define gsch2pcb:use-m4 #t)
Running command:
gnetlist -g gsch2pcb -o board.new.pcb -m gnet-gsch2pcb-tmp.scm one.sch
two.sch
--------
=====================================================
gsch2pcb backend configuration:
----------------------------------------
Variables which may be changed in gafrc:
----------------------------------------
gsch2pcb:pcb-m4-command: "/sw/bin/gm4"
gsch2pcb:pcb-m4-dir: "/sw/share/pcb/m4"
gsch2pcb:pcb-m4-path: ("$HOME/.pcb" ".")
gsch2pcb:m4-files: ""
---------------------------------------------------
Variables which may be changed in the project file:
---------------------------------------------------
gsch2pcb:use-m4: yes
----------------
M4 command line:
----------------
/sw/bin/gm4 -d -I/sw/share/pcb/m4 -I$HOME/.pcb -I.
/sw/share/pcb/m4/common.m4 - >> board.new.pcb
=====================================================
Using the m4 processor for pcb footprints
Loading schematic [/Users/villaume/gaf/myproject1/one.sch]
Loading schematic [/Users/villaume/gaf/myproject1/two.sch]
--------
Running command:
rm board.new.pcb.tmp
--------
--------
Running command:
rm board.new.pcb
--------
--------
----------------------------------
Done processing. Work performed:
No elements to add so not creating board.new.pcb
Any tips would be helpful,
Thanks,
Nate
--001a1139ce304d0ae20517e36e57
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I tried using the tutorial=C2=A0<a href=3D"http://wiki.ged=
a-project.org/geda:gsch2pcb_tutorial">http://wiki.geda-project.org/geda:gsc=
h2pcb_tutorial</a><div><br></div><div>but I can't get gsch2pcb to gener=
ate a pcb file ( I get "No elements to add so not creating board.new.p=
cb")</div><div><br></div><div>When I run 'gsch2pcb -v project'=
I see that my installation on mac doesn't have the same path to the m4=
installation. So I override this in the project file with:</div><div>m4-pc=
bdir /sw/share/pcb/m4</div><div><br></div><div>That doesn't get me past=
that the PATH to the executable is hardwired. I note the instructions on h=
ow to overload this in the project gafrc file.=C2=A0</div><div>The syntax i=
n the verbose output doesn't seem to have any impact on finding my m4 p=
rocessor (and doesn't work if you specify it as directed</div><div>usin=
g gafrc =C2=A0ERROR: Unable to parse config from [/Users/villaume/gaf/mypro=
ject1/gafrc]: Unbound variable: gsch2pcb:pcb-m4-command:<br></div><p class=
=3D"p2"><br></p><div>ERROR: The gnetlist log may contain more information.)=
)</div><div><br></div><div>A friend said I shouldn't use the m4 macros.=
But I need a modern tutorial, or instructions on how to force gsch2pcb to =
see my m4 processor...</div><div><br></div><div>my project file:=C2=A0</div=
><div><div>schematics one.sch two.sch</div><div>output-name board</div><div=
>m4-pcbdir /sw/share/pcb/m4</div><div>pcb-m4-command /usr/bin/m4</div></div=
><div><br></div><div>
<p class=3D"p1">-----</p><p class=3D"p1">Reading project file: project</p>
<p class=3D"p1">=C2=A0 =C2=A0 schematics "one.sch two.sch"</p>
<p class=3D"p1">=C2=A0 =C2=A0 output-name "board"</p>
<p class=3D"p1">=C2=A0 =C2=A0 m4-pcbdir "/sw/share/pcb/m4"</p>
<p class=3D"p1">=C2=A0 =C2=A0 pcb-m4-command "/usr/bin/m4"</p>
<p class=3D"p1">Processing PCBLIBPATH=3D"/sw/share/pcb/pcblib-newlib:/=
sw/share/pcb/newlib"</p>
<p class=3D"p1">Adding /sw/share/pcb/pcblib-newlib to the newlib search pat=
h</p>
<p class=3D"p1">Adding /sw/share/pcb/newlib to the newlib search path</p>
<p class=3D"p1">Running command:</p>
<p class=3D"p1"><span class=3D"Apple-tab-span"> </span>gnetlist -g pcbpins =
-o board.cmd one.sch two.sch=C2=A0</p>
<p class=3D"p1">--------</p>
<p class=3D"p1">Loading schematic [/Users/villaume/gaf/myproject1/one.sch]<=
/p>
<p class=3D"p1">Loading schematic [/Users/villaume/gaf/myproject1/two.sch]<=
/p>
<p class=3D"p2"><br></p>
<p class=3D"p1">--------</p>
<p class=3D"p1">Running command:</p>
<p class=3D"p1"><span class=3D"Apple-tab-span"> </span>gnetlist -g PCB -o <=
a href=3D"http://board.net">board.net</a> one.sch two.sch=C2=A0</p>
<p class=3D"p1">--------</p>
<p class=3D"p1">Loading schematic [/Users/villaume/gaf/myproject1/one.sch]<=
/p>
<p class=3D"p1">Loading schematic [/Users/villaume/gaf/myproject1/two.sch]<=
/p>
<p class=3D"p2"><br></p>
<p class=3D"p1">--------</p>
<p class=3D"p1">Default m4-pcbdir: /sw/share/pcb/pcb/m4</p>
<p class=3D"p1">--------</p>
<p class=3D"p1">gnet-gsch2pcb-tmp.scm override file:</p>
<p class=3D"p1">=C2=A0 =C2=A0 (define gsch2pcb:pcb-m4-dir "/sw/share/p=
cb/m4")</p>
<p class=3D"p1">=C2=A0 =C2=A0 (define gsch2pcb:use-m4 #t)</p>
<p class=3D"p1">Running command:</p>
<p class=3D"p1"><span class=3D"Apple-tab-span"> </span>gnetlist -g gsch2pcb=
-o board.new.pcb -m gnet-gsch2pcb-tmp.scm one.sch two.sch=C2=A0</p>
<p class=3D"p1">--------</p>
<p class=3D"p1">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D</p>
<p class=3D"p1">gsch2pcb backend configuration:</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">=C2=A0=C2=A0 ----------------------------------------</p>
<p class=3D"p1">=C2=A0=C2=A0 Variables which may be changed in gafrc:</p>
<p class=3D"p1">=C2=A0=C2=A0 ----------------------------------------</p>
<p class=3D"p1">=C2=A0=C2=A0 gsch2pcb:pcb-m4-command:=C2=A0 =C2=A0 "/s=
w/bin/gm4"</p>
<p class=3D"p1">=C2=A0=C2=A0 gsch2pcb:pcb-m4-dir:=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 "/sw/share/pcb/m4"</p>
<p class=3D"p1">=C2=A0=C2=A0 gsch2pcb:pcb-m4-path: =C2=A0 =C2=A0 =C2=A0 (&q=
uot;$HOME/.pcb" ".")</p>
<p class=3D"p1">=C2=A0=C2=A0 gsch2pcb:m4-files:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 ""</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">=C2=A0=C2=A0 ----------------------------------------------=
-----</p>
<p class=3D"p1">=C2=A0=C2=A0 Variables which may be changed in the project =
file:</p>
<p class=3D"p1">=C2=A0=C2=A0 ----------------------------------------------=
-----</p>
<p class=3D"p1">=C2=A0=C2=A0 gsch2pcb:use-m4:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 yes</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">=C2=A0=C2=A0 ----------------</p>
<p class=3D"p1">=C2=A0=C2=A0 M4 command line:</p>
<p class=3D"p1">=C2=A0=C2=A0 ----------------</p>
<p class=3D"p1">=C2=A0=C2=A0 /sw/bin/gm4 -d -I/sw/share/pcb/m4 -I$HOME/.pcb=
-I. /sw/share/pcb/m4/common.m4=C2=A0 - >> board.new.pcb</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D</p>
<p class=3D"p1">Using the m4 processor for pcb footprints</p>
<p class=3D"p1">Loading schematic [/Users/villaume/gaf/myproject1/one.sch]<=
/p>
<p class=3D"p1">Loading schematic [/Users/villaume/gaf/myproject1/two.sch]<=
/p>
<p class=3D"p2"><br></p>
<p class=3D"p1">--------</p>
<p class=3D"p1">Running command:</p>
<p class=3D"p1"><span class=3D"Apple-tab-span"> </span>rm board.new.pcb.tmp=
=C2=A0</p>
<p class=3D"p1">--------</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">--------</p>
<p class=3D"p1">Running command:</p>
<p class=3D"p1"><span class=3D"Apple-tab-span"> </span>rm board.new.pcb=C2=
=A0</p>
<p class=3D"p1">--------</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">--------</p>
<p class=3D"p2"><br></p>
<p class=3D"p2"><br></p>
<p class=3D"p1">----------------------------------</p>
<p class=3D"p1">Done processing.=C2=A0 Work performed:</p>
<p class=3D"p1">No elements to add so not creating board.new.pcb</p><p clas=
s=3D"p1"><br></p><p class=3D"p1">Any tips would be helpful,=C2=A0</p><p cla=
ss=3D"p1">Thanks,</p><p class=3D"p1">Nate</p>
<p class=3D"p2"><br></p></div>
</div>
--001a1139ce304d0ae20517e36e57--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |