| 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: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: | <CAJ--6mY1kvj5dvVD7r6-v+Zm9jtC-iq2zwwQ+RBArz0Q94iKOA AT mail DOT gmail DOT com> |
| In-Reply-To: | <CAJ--6mY1kvj5dvVD7r6-v+Zm9jtC-iq2zwwQ+RBArz0Q94iKOA@mail.gmail.com> |
| From: | "Nate Villaume (natevillaume AT gmail DOT com)" <geda-help AT delorie DOT com> |
| Date: | Wed, 24 Jun 2015 22:37:09 +0000 |
| Message-ID: | <CAAMuX+NU6Daht=d5O7985FA==x9wnh=Khc8bsbdkKqmxUyQgUg@mail.gmail.com> |
| Subject: | Re: [geda-help] gsch2pcb gives 'No elements found' |
| To: | geda-help AT delorie DOT com |
| 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 #<procedure gsch2pcb:open-io-pipe #> #]
> 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
<div dir=3D"ltr">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=A0<div=
>Sorry. Nate</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On =
Wed, Jun 24, 2015 at 2:23 PM Ala'a Mohammad (<a href=3D"mailto:amalawi@=
gmail.com">amalawi AT gmail DOT com</a>) <<a href=3D"mailto:geda-help AT delorie DOT c=
om">geda-help AT delorie DOT com</a>> wrote:<br></div><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex">Hi,<br>
<br>
My name is Ala'a and I'm trying to follow the tutorial at<br>
<a href=3D"http://www-mdp.eng.cam.ac.uk/web/CD/engapps/geda/geda-doc/tutori=
als/gsch2pcb/tutorial-old.html" rel=3D"noreferrer" target=3D"_blank">http:/=
/www-mdp.eng.cam.ac.uk/web/CD/engapps/geda/geda-doc/tutorials/gsch2pcb/tuto=
rial-old.html</a>.<br>
<br>
I have created two schematics and one project file, then tried to<br>
generate PCB with gsch2pcb as follow<br>
: gsch2pcb project<br>
No elements found, so nothing to do.<br>
<br>
only two files are generated <a href=3D"http://board.net" rel=3D"noreferrer=
" target=3D"_blank">board.net</a> and board.cmd where both files'<br>
contents seems logical. but no pcb file is generated!<br>
<br>
I tried to run the program again with -v, and got the following<br>
: gsch2pcb -v project<br>
Reading project file: project<br>
=C2=A0 =C2=A0 schematics "one.sch two.sch"<br>
=C2=A0 =C2=A0 output-name "board"<br>
Processing PCBLIBPATH=3D"/usr/local/share/pcb/pcblib-newlib:/usr/local=
/share/pcb/newlib"<br>
Adding /usr/local/share/pcb/pcblib-newlib to the newlib search path<br>
Adding /usr/local/share/pcb/newlib to the newlib search path<br>
Running command:<br>
gnetlist -g pcbpins -o board.cmd one.sch two.sch<br>
--------<br>
<br>
--------<br>
Running command:<br>
gnetlist -g PCB -o <a href=3D"http://board.net" rel=3D"noreferrer" target=
=3D"_blank">board.net</a> one.sch two.sch<br>
--------<br>
<br>
--------<br>
Default m4-pcbdir: PCBM4DIR<br>
--------<br>
gnet-gsch2pcb-tmp.scm override file:<br>
=C2=A0 =C2=A0 (define gsch2pcb:pcb-m4-dir "PCBM4DIR")<br>
=C2=A0 =C2=A0 (define gsch2pcb:use-m4 #t)<br>
Running command:<br>
gnetlist -g gsch2pcb -o board.pcb -m gnet-gsch2pcb-tmp.scm one.sch two.sch<=
br>
--------<br>
<br>
--------<br>
Running command:<br>
rm board.pcb.tmp<br>
--------<br>
<br>
--------<br>
Running command:<br>
rm board.pcb<br>
--------<br>
<br>
--------<br>
No elements found, so nothing to do.<br>
<br>
when i then tried to run the indivisual commands up to<br>
<br>
"gnetlist -g gsch2pcb -o board.pcb -m gnet-gsch2pcb-tmp.scm one.sch tw=
o.sch"<br>
<br>
while supplying fake gnet-gsch2pcb-tmp.scm file containing<br>
(define gsch2pcb:use-m4 #t)<br>
<br>
this lead to the following output:<br>
<br>
<br>
: gnetlist -g gsch2pcb -o board.new.pcb -m gnet-gsch2pcb-tmp.scm one.sch tw=
o.sch<br>
Loading schematic [/home/alaa/projects/pcb/t4/one.sch]<br>
Loading schematic [/home/alaa/projects/pcb/t4/two.sch]<br>
=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<br>
gsch2pcb backend configuration:<br>
<br>
=C2=A0 =C2=A0----------------------------------------<br>
=C2=A0 =C2=A0Variables which may be changed in gafrc:<br>
=C2=A0 =C2=A0----------------------------------------<br>
=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"<br>
=C2=A0 =C2=A0gsch2pcb:pcb-m4-path:=C2=A0 =C2=A0 =C2=A0 =C2=A0("$HOME/.=
pcb" ".")<br>
=C2=A0 =C2=A0gsch2pcb:m4-files:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "&qu=
ot;<br>
<br>
=C2=A0 =C2=A0---------------------------------------------------<br>
=C2=A0 =C2=A0Variables which may be changed in the project file:<br>
=C2=A0 =C2=A0---------------------------------------------------<br>
=C2=A0 =C2=A0gsch2pcb:use-m4:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yes<=
br>
<br>
=C2=A0 =C2=A0----------------<br>
=C2=A0 =C2=A0M4 command line:<br>
=C2=A0 =C2=A0----------------<br>
=C2=A0 =C2=A0/usr/bin/m4 -d -I/usr/local/share/pcb/m4 -I$HOME/.pcb -I.<br>
/usr/local/share/pcb/m4/common.m4 -<br>
<br>
=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<br>
Using the m4 processor for pcb footprints<br>
Backtrace:<br>
In current input:<br>
=C2=A0 =C2=A01: 0* [gsch2pcb "board.new.pcb"]<br>
In /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:<br>
=C2=A0256: 1=C2=A0 (begin (set-current-output-port #) (gsch2pcb:write-top-h=
eader) ...)<br>
=C2=A0293: 2* (if gsch2pcb:use-m4 (let* # # # ...) (begin # #))<br>
=C2=A0295: 3=C2=A0 (let* (# # #) (message "Using the m4 processor for =
pcb footprints<br>
") ...)<br>
=C2=A0296: 4* [apply #<procedure gsch2pcb:open-io-pipe #> #]<br>
In unknown file:<br>
=C2=A0 =C2=A0?: 5=C2=A0 [gsch2pcb:open-io-pipe "/usr/bin/m4" &quo=
t;-d" ...]<br>
In /usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:<br>
=C2=A0 =C2=A0...<br>
=C2=A0186: 6=C2=A0 (begin (ensure-batch-mode!) (let (# # #) (port-for-each =
#)<br>
(if # #) ...))<br>
=C2=A0188: 7* (ensure-batch-mode!)<br>
<br>
/usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:188:10: In expression<br>
(ensure-batch-mode!):<br>
/usr/local/share/gEDA/scheme/gnet-gsch2pcb.scm:188:10: Unbound<br>
variable: ensure-batch-mode!<br>
<br>
Files are attached for reference (Note: cmd file was renamed with .bak<br>
suffix to pass gmail uploading).<br>
<br>
software used:<br>
<br>
Linuxmint 17.1 (x86-64)<br>
gsch2pcb 1.6<br>
gEDA 1.9.1 (g9303b37)<br>
PCB version 1.99z<br>
<br>
Thanks in advance.<br>
<br>
Regards,<br>
<br>
Ala'a<br>
</blockquote></div>
--94eb2c08fd5c45abf705194b265c--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |