delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2015/06/24/17:19:29

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=/FutEI8Z8SW9Q0WGLp0Xulm9DWsHXEApTzmBCub0df8=;
b=BDDysz9fBF+TqKTXq19/ZXPBFUfd2PwN8IwcICDA756FuLVFEIblaUYVZwm5EYaDfW
8YOniaFMrmyxNvLpJOa0s38g53R3bu+40rJx1Y8MbyAROt5/9hZQ59KPdaP3kyDpJ5+F
LL+iYizWiDiWyTxyEzzvCGbNrrgBBnq34ZfWqpI2M84WXly9IGp44gU1ajZfaUXWOV7T
ECatAN45v+mdNcXv0VcTVLjq6RwJTf8OgmdWp+QaLfrAVIHxtK2Q0Jfej4kt9o17vfY5
P4Reup6upe6K6LHXgZhyhM6AP0PNCx0+UUBVrUZrmQ60BqOTwr/CSrN+wIkDT1rjl89c
g5fQ==
X-Received: by 10.152.115.199 with SMTP id jq7mr13838108lab.113.1435180706540;
Wed, 24 Jun 2015 14:18:26 -0700 (PDT)
MIME-Version: 1.0
From: "Ala'a Mohammad (amalawi AT gmail DOT com)" <geda-help AT delorie DOT com>
Date: Thu, 25 Jun 2015 01:17:45 +0400
Message-ID: <CAJ--6mY1kvj5dvVD7r6-v+Zm9jtC-iq2zwwQ+RBArz0Q94iKOA@mail.gmail.com>
Subject: [geda-help] gsch2pcb gives 'No elements found'
To: geda-help AT delorie DOT com
Reply-To: geda-help AT delorie DOT com

--001a11c2588e34620005194a0c65
Content-Type: text/plain; charset=UTF-8

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

--001a11c2588e34620005194a0c65
Content-Type: application/x-kicad-schematic; name="two.sch"
Content-Disposition: attachment; filename="two.sch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ibb952l30

diAyMDE0MDMwOCAyCkMgNDAwMDAgNDAwMDAgMCAwIDAgdGl0bGUtQi5zeW0KQyA0MzAwMCA0NzEw
MCAxIDAgMCBpbnB1dC0yLnN5bQp7ClQgNDMwMDAgNDczMDAgNSAxMCAwIDAgMCAwIDEKbmV0PXZt
aXhlcjoxClQgNDM2MDAgNDc4MDAgNSAxMCAwIDAgMCAwIDEKZGV2aWNlPW5vbmUKVCA0MzUwMCA0
NzIwMCA1IDEwIDEgMSAwIDcgMQp2YWx1ZT1W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AwIDAgMCAxCmRldmljZT1SRVNJU1RPUgpU
IDQ1MjAwIDQ3NjAwIDUgMTAgMSAxIDAgMCAxCnJlZmRlcz1SMgpUIDQ1NTAwIDQ3NjAwIDUgMTAg
MSAxIDAgMCAxCnZhbHVlPTEwSwpUIDQ1MDAwIDQ3MzAwIDUgMTAgMCAxIDAgMCAxCmZvb3Rwcmlu
dD1BQ1k0MDAKfQpDIDQ3MTAwIDQ3ODAwIDEgMCAwIHZjYy0xLnN5bQpDIDQ3MDAwIDQ2MTAwIDEg
MCAwIHZlZS0xLnN5bQpOIDQ2NzAwIDQ1NTAwIDQ2MzAwIDQ1NTAwIDQKTiA0NjMwMCA0NTUwMCA0
NjMwMCA0NDcwMCA0Ck4gNDYzMDAgNDQ3MDAgNDc3MDAgNDQ3MDAgNApOIDQ3NzAwIDQ0NzAwIDQ3
NzAwIDQ1NzAwIDQKTiA0NTkwMCA0ODAwMCA0NTkwMCA0NzQwMCA0Ck4gNDY4MDAgNDc2MDAgNDU5
MDAgNDc2MDAgNApOIDQ2OTAwIDQ4NzAwIDQ2NDAwIDQ4NzAwIDQKTiA0NjQwMCA0ODcwMCA0NjQw
MCA0NzYwMCA0Ck4gNDc4MDAgNDg3MDAgNDgzMDAgNDg3MDAgNApOIDQ4MzAwIDQ4NzAwIDQ4MzAw
IDQ2NTAwIDQKTiA0ODMwMCA0NjUwMCA0NjMwMCA0NjUwMCA0Ck4gNDYzMDAgNDY1MDAgNDYzMDAg
NDU5MDAgNApOIDQ2MzAwIDQ1OTAwIDQ2NzAwIDQ1OTAwIDQKTiA0NzgwMCA0NzQwMCA0ODMwMCA0
NzQwMCA0Cg==
--001a11c2588e34620005194a0c65
Content-Type: application/octet-stream; name=project
Content-Disposition: attachment; filename=project
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ibb952lw2

c2NoZW1hdGljcyBvbmUuc2NoIHR3by5zY2gKb3V0cHV0LW5hbWUgYm9hcmQK
--001a11c2588e34620005194a0c65
Content-Type: application/x-pcb-netlist; name="board.net"
Content-Disposition: attachment; filename="board.net"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ibb9cphm4

dW5uYW1lZF9uZXQzCUNPTk4xLTEgUTEtMSBSMS0yIAp2bWl4ZXIJUTEtMiBVMS03IFUxLTYgClZl
ZQlSMS0xIFUxLTQgClZjYwlRMS0zIFUxLTggCnVubmFtZWRfbmV0MglVMS01IFIzLTIgVTEtMSAK
dW5uYW1lZF9uZXQxCVIzLTEgUjItMiBSMS0yIFUxLTIgCkdORAlDT05OMS0yIFUxLTMgCg==
--001a11c2588e34620005194a0c65
Content-Type: application/x-trash; name="board.cmd.bak"
Content-Disposition: attachment; filename="board.cmd.bak"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ibb9dc8t4

IyBQaW4gbmFtZSBhY3Rpb24gY29tbWFuZCBmaWxlCgojIFN0YXJ0IG9mIGVsZW1lbnQgQ09OTjEK
Q2hhbmdlUGluTmFtZShDT05OMSwgMSwgMSkKQ2hhbmdlUGluTmFtZShDT05OMSwgMiwgMikKCiMg
U3RhcnQgb2YgZWxlbWVudCBRMQpDaGFuZ2VQaW5OYW1lKFExLCAyLCAyKQpDaGFuZ2VQaW5OYW1l
KFExLCAxLCAxKQpDaGFuZ2VQaW5OYW1lKFExLCAzLCAzKQoKIyBTdGFydCBvZiBlbGVtZW50IFIy
CkNoYW5nZVBpbk5hbWUoUjIsIDEsIDEpCkNoYW5nZVBpbk5hbWUoUjIsIDIsIDIpCgojIFN0YXJ0
IG9mIGVsZW1lbnQgUjMKQ2hhbmdlUGluTmFtZShSMywgMSwgMSkKQ2hhbmdlUGluTmFtZShSMywg
MiwgMikKCiMgU3RhcnQgb2YgZWxlbWVudCBSMQpDaGFuZ2VQaW5OYW1lKFIxLCAxLCAxKQpDaGFu
Z2VQaW5OYW1lKFIxLCAyLCAyKQpDaGFuZ2VQaW5OYW1lKFIxLCAxLCAxKQpDaGFuZ2VQaW5OYW1l
KFIxLCAyLCAyKQoKIyBTdGFyd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