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:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=xDF58pttGT7roe/aBNE+PiDK+NgJEGUwpWjB51ESHGQ=; b=eRWYDsmC607rtRtnLWYSVLt/xTjfOTcOOk+tKMDZ3JRF4YPzYtcz/NYCfBxkk0Px6E rIdX+MwaxvOnBkNdVNqlKwqdPfbLVs6sdhBwNkgX1kHA6Bze5A8Hj479AeayWy82vWR7 QpkFjpzLCuroZH9PssUxLIKxMOY2r31Ofb71XQGrWNzoLo7FumEsZYUlS6/SGBZ+OfS4 7tbbHMMl6ARcKOKKlYD3dhrGrO3MXYZrkzHmevEowQhYRydl41/YtIMJgajIdNNUv5pI rfFvG65027e16LGq4M1xnuVHbheoXpwyxoEKoh5oNA6P0kjxbSqK5ryIANIA72acZq9g XF5A== X-Received: by 10.129.146.20 with SMTP id j20mr51790796ywg.62.1435185438893; Wed, 24 Jun 2015 15:37:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Nate Villaume (natevillaume AT gmail DOT com)" Date: Wed, 24 Jun 2015 22:37:09 +0000 Message-ID: Subject: Re: [geda-help] gsch2pcb gives 'No elements found' To: geda-help AT delorie DOT com Content-Type: multipart/alternative; boundary=94eb2c08fd5c45abf705194b265c Reply-To: geda-help AT delorie DOT com --94eb2c08fd5c45abf705194b265c Content-Type: text/plain; charset=UTF-8 Ala'a it turns out that isn't a good tutorial. I don't know what is. I ran into the exact same problem. The issue has to do with your m4 processor ... I gave up and used another package. Sorry. Nate On Wed, Jun 24, 2015 at 2:23 PM Ala'a Mohammad (amalawi AT gmail DOT com) < geda-help AT delorie DOT com> wrote: > Hi, > > My name is Ala'a and I'm trying to follow the tutorial at > > http://www-mdp.eng.cam.ac.uk/web/CD/engapps/geda/geda-doc/tutorials/gsch2pcb/tutorial-old.html > . > > I have created two schematics and one project file, then tried to > generate PCB with gsch2pcb as follow > : gsch2pcb project > No elements found, so nothing to do. > > only two files are generated board.net and board.cmd where both files' > contents seems logical. but no pcb file is generated! > > I tried to run the program again with -v, and got the following > : gsch2pcb -v project > Reading project file: project > schematics "one.sch two.sch" > output-name "board" > Processing > PCBLIBPATH="/usr/local/share/pcb/pcblib-newlib:/usr/local/share/pcb/newlib" > Adding /usr/local/share/pcb/pcblib-newlib to the newlib search path > Adding /usr/local/share/pcb/newlib to the newlib search path > Running command: > gnetlist -g pcbpins -o board.cmd one.sch two.sch > -------- > > -------- > Running command: > gnetlist -g PCB -o board.net one.sch two.sch > -------- > > -------- > Default m4-pcbdir: PCBM4DIR > -------- > gnet-gsch2pcb-tmp.scm override file: > (define gsch2pcb:pcb-m4-dir "PCBM4DIR") > (define gsch2pcb:use-m4 #t) > Running command: > gnetlist -g gsch2pcb -o board.pcb -m gnet-gsch2pcb-tmp.scm one.sch two.sch > -------- > > -------- > Running command: > rm board.pcb.tmp > -------- > > -------- > Running command: > rm board.pcb > -------- > > -------- > No elements found, so nothing to do. > > when i then tried to run the indivisual commands up to > > "gnetlist -g gsch2pcb -o board.pcb -m gnet-gsch2pcb-tmp.scm one.sch > two.sch" > > while supplying fake gnet-gsch2pcb-tmp.scm file containing > (define gsch2pcb:use-m4 #t) > > this lead to the following output: > > > : gnetlist -g gsch2pcb -o board.new.pcb -m gnet-gsch2pcb-tmp.scm one.sch > two.sch > Loading schematic [/home/alaa/projects/pcb/t4/one.sch] > Loading schematic [/home/alaa/projects/pcb/t4/two.sch] > ===================================================== > gsch2pcb backend configuration: > > ---------------------------------------- > Variables which may be changed in gafrc: > ---------------------------------------- > gsch2pcb:pcb-m4-command: "/usr/bin/m4" > gsch2pcb:pcb-m4-dir: "/usr/local/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: > ---------------- > /usr/bin/m4 -d -I/usr/local/share/pcb/m4 -I$HOME/.pcb -I. > /usr/local/share/pcb/m4/common.m4 - > > ===================================================== > Using the m4 processor for pcb footprints > Backtrace: > In current input: > 1: 0* [gsch2pcb "board.new.pcb"] > In /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm: > 256: 1 (begin (set-current-output-port #) (gsch2pcb:write-top-header) > ...) > 293: 2* (if gsch2pcb:use-m4 (let* # # # ...) (begin # #)) > 295: 3 (let* (# # #) (message "Using the m4 processor for pcb footprints > ") ...) > 296: 4* [apply # #] > In unknown file: > ?: 5 [gsch2pcb:open-io-pipe "/usr/bin/m4" "-d" ...] > In /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm: > ... > 186: 6 (begin (ensure-batch-mode!) (let (# # #) (port-for-each #) > (if # #) ...)) > 188: 7* (ensure-batch-mode!) > > /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:188:10: In expression > (ensure-batch-mode!): > /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:188:10: Unbound > variable: ensure-batch-mode! > > Files are attached for reference (Note: cmd file was renamed with .bak > suffix to pass gmail uploading). > > software used: > > Linuxmint 17.1 (x86-64) > gsch2pcb 1.6 > gEDA 1.9.1 (g9303b37) > PCB version 1.99z > > Thanks in advance. > > Regards, > > Ala'a > --94eb2c08fd5c45abf705194b265c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Ala'a it turns out that isn't a good tutorial. I d= on't know what is. I ran into the exact same problem. The issue has to = do with your m4 processor ... I gave up and used another package.=C2=A0Sorry. Nate

On = Wed, Jun 24, 2015 at 2:23 PM Ala'a Mohammad (amalawi AT gmail DOT com) <geda-help AT delorie DOT com> wrote:
Hi,

My name is Ala'a and I'm trying to follow the tutorial at
http:/= /www-mdp.eng.cam.ac.uk/web/CD/engapps/geda/geda-doc/tutorials/gsch2pcb/tuto= rial-old.html.

I have created two schematics and one project file, then tried to
generate PCB with gsch2pcb as follow
: gsch2pcb project
No elements found, so nothing to do.

only two files are generated board.net and board.cmd where both files'
contents seems logical. but no pcb file is generated!

I tried to run the program again with -v, and got the following
: gsch2pcb -v project
Reading project file: project
=C2=A0 =C2=A0 schematics "one.sch two.sch"
=C2=A0 =C2=A0 output-name "board"
Processing PCBLIBPATH=3D"/usr/local/share/pcb/pcblib-newlib:/usr/local= /share/pcb/newlib"
Adding /usr/local/share/pcb/pcblib-newlib to the newlib search path
Adding /usr/local/share/pcb/newlib to the newlib search path
Running command:
gnetlist -g pcbpins -o board.cmd one.sch two.sch
--------

--------
Running command:
gnetlist -g PCB -o board.net one.sch two.sch
--------

--------
Default m4-pcbdir: PCBM4DIR
--------
gnet-gsch2pcb-tmp.scm override file:
=C2=A0 =C2=A0 (define gsch2pcb:pcb-m4-dir "PCBM4DIR")
=C2=A0 =C2=A0 (define gsch2pcb:use-m4 #t)
Running command:
gnetlist -g gsch2pcb -o board.pcb -m gnet-gsch2pcb-tmp.scm one.sch two.sch<= br> --------

--------
Running command:
rm board.pcb.tmp
--------

--------
Running command:
rm board.pcb
--------

--------
No elements found, so nothing to do.

when i then tried to run the indivisual commands up to

"gnetlist -g gsch2pcb -o board.pcb -m gnet-gsch2pcb-tmp.scm one.sch tw= o.sch"

while supplying fake gnet-gsch2pcb-tmp.scm file containing
(define gsch2pcb:use-m4 #t)

this lead to the following output:


: gnetlist -g gsch2pcb -o board.new.pcb -m gnet-gsch2pcb-tmp.scm one.sch tw= o.sch
Loading schematic [/home/alaa/projects/pcb/t4/one.sch]
Loading schematic [/home/alaa/projects/pcb/t4/two.sch]
=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=A0Variables which may be changed in gafrc:
=C2=A0 =C2=A0----------------------------------------
=C2=A0 =C2=A0gsch2pcb:pcb-m4-command:=C2=A0 =C2=A0 "/usr/bin/m4"<= br> =C2=A0 =C2=A0gsch2pcb:pcb-m4-dir:=C2=A0 =C2=A0 =C2=A0 =C2=A0 "/usr/loc= al/share/pcb/m4"
=C2=A0 =C2=A0gsch2pcb:pcb-m4-path:=C2=A0 =C2=A0 =C2=A0 =C2=A0("$HOME/.= pcb" ".")
=C2=A0 =C2=A0gsch2pcb:m4-files:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "&qu= ot;

=C2=A0 =C2=A0---------------------------------------------------
=C2=A0 =C2=A0Variables which may be changed in the project file:
=C2=A0 =C2=A0---------------------------------------------------
=C2=A0 =C2=A0gsch2pcb:use-m4:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yes<= br>
=C2=A0 =C2=A0----------------
=C2=A0 =C2=A0M4 command line:
=C2=A0 =C2=A0----------------
=C2=A0 =C2=A0/usr/bin/m4 -d -I/usr/local/share/pcb/m4 -I$HOME/.pcb -I.
/usr/local/share/pcb/m4/common.m4 -

=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
Backtrace:
In current input:
=C2=A0 =C2=A01: 0* [gsch2pcb "board.new.pcb"]
In /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:
=C2=A0256: 1=C2=A0 (begin (set-current-output-port #) (gsch2pcb:write-top-h= eader) ...)
=C2=A0293: 2* (if gsch2pcb:use-m4 (let* # # # ...) (begin # #))
=C2=A0295: 3=C2=A0 (let* (# # #) (message "Using the m4 processor for = pcb footprints
") ...)
=C2=A0296: 4* [apply #<procedure gsch2pcb:open-io-pipe #> #]
In unknown file:
=C2=A0 =C2=A0?: 5=C2=A0 [gsch2pcb:open-io-pipe "/usr/bin/m4" &quo= t;-d" ...]
In /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:
=C2=A0 =C2=A0...
=C2=A0186: 6=C2=A0 (begin (ensure-batch-mode!) (let (# # #) (port-for-each = #)
(if # #) ...))
=C2=A0188: 7* (ensure-batch-mode!)

/usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:188:10: In expression
(ensure-batch-mode!):
/usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:188:10: Unbound
variable: ensure-batch-mode!

Files are attached for reference (Note: cmd file was renamed with .bak
suffix to pass gmail uploading).

software used:

Linuxmint 17.1 (x86-64)
gsch2pcb 1.6
gEDA 1.9.1 (g9303b37)
PCB version 1.99z

Thanks in advance.

Regards,

Ala'a
--94eb2c08fd5c45abf705194b265c--