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)" Date: Sun, 07 Jun 2015 01:27:28 +0000 Message-ID: Subject: [geda-help] modern tutorial or gsch2pcb docs? To: geda-help AT delorie DOT com Content-Type: multipart/alternative; boundary=001a1139ce304d0ae20517e36e57 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
I tried using the tutorial=C2=A0http://wiki.geda-project.org/geda:gsc= h2pcb_tutorial

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")

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-pc= bdir /sw/share/pcb/m4

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
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
usin= g gafrc =C2=A0ERROR: Unable to parse config from [/Users/villaume/gaf/mypro= ject1/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:=C2=A0
schematics one.sch two.sch
output-name board
m4-pcbdir /sw/share/pcb/m4
pcb-m4-command /usr/bin/m4

-----

Reading project file: project

=C2=A0 =C2=A0 schematics "one.sch two.sch"

=C2=A0 =C2=A0 output-name "board"

=C2=A0 =C2=A0 m4-pcbdir "/sw/share/pcb/m4"

=C2=A0 =C2=A0 pcb-m4-command "/usr/bin/m4"

Processing PCBLIBPATH=3D"/sw/share/pcb/pcblib-newlib:/= sw/share/pcb/newlib"

Adding /sw/share/pcb/pcblib-newlib to the newlib search pat= h

Adding /sw/share/pcb/newlib to the newlib search path

Running command:

gnetlist -g pcbpins = -o board.cmd one.sch two.sch=C2=A0

--------

Loading schematic [/Users/villaume/gaf/myproject1/one.sch]<= /p>

Loading schematic [/Users/villaume/gaf/myproject1/two.sch]<= /p>


--------

Running command:

gnetlist -g PCB -o <= a href=3D"http://board.net">board.net one.sch two.sch=C2=A0

--------

Loading schematic [/Users/villaume/gaf/myproject1/one.sch]<= /p>

Loading schematic [/Users/villaume/gaf/myproject1/two.sch]<= /p>


--------

Default m4-pcbdir: /sw/share/pcb/pcb/m4

--------

gnet-gsch2pcb-tmp.scm override file:

=C2=A0 =C2=A0 (define gsch2pcb:pcb-m4-dir "/sw/share/p= cb/m4")

=C2=A0 =C2=A0 (define gsch2pcb:use-m4 #t)

Running command:

gnetlist -g gsch2pcb= -o board.new.pcb -m gnet-gsch2pcb-tmp.scm one.sch two.sch=C2=A0

--------

=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

gsch2pcb backend configuration:


=C2=A0=C2=A0 ----------------------------------------

=C2=A0=C2=A0 Variables which may be changed in gafrc:

=C2=A0=C2=A0 ----------------------------------------

=C2=A0=C2=A0 gsch2pcb:pcb-m4-command:=C2=A0 =C2=A0 "/s= w/bin/gm4"

=C2=A0=C2=A0 gsch2pcb:pcb-m4-dir:=C2=A0 =C2=A0 =C2=A0 =C2= =A0 "/sw/share/pcb/m4"

=C2=A0=C2=A0 gsch2pcb:pcb-m4-path: =C2=A0 =C2=A0 =C2=A0 (&q= uot;$HOME/.pcb" ".")

=C2=A0=C2=A0 gsch2pcb:m4-files:=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ""


=C2=A0=C2=A0 ----------------------------------------------= -----

=C2=A0=C2=A0 Variables which may be changed in the project = file:

=C2=A0=C2=A0 ----------------------------------------------= -----

=C2=A0=C2=A0 gsch2pcb:use-m4:=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 yes


=C2=A0=C2=A0 ----------------

=C2=A0=C2=A0 M4 command line:

=C2=A0=C2=A0 ----------------

=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


=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

Using the m4 processor for pcb footprints

Loading schematic [/Users/villaume/gaf/myproject1/one.sch]<= /p>

Loading schematic [/Users/villaume/gaf/myproject1/two.sch]<= /p>


--------

Running command:

rm board.new.pcb.tmp= =C2=A0

--------


--------

Running command:

rm board.new.pcb=C2= =A0

--------


--------



----------------------------------

Done processing.=C2=A0 Work performed:

No elements to add so not creating board.new.pcb


Any tips would be helpful,=C2=A0

Thanks,

Nate


--001a1139ce304d0ae20517e36e57--