[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: How to get pcb from gschem?



Dear sir,

I look at the web and i connect the circuit and set the footprint according to the example, it fails:

[root@localhost bin]# ./gschem2pcb /home/kevin/example/example.sch
gEDA/gnetlist version 20021103
gEDA/gnetlist comes with ABSOLUTELY NO WARRANTY; see COPYING for more details.
This is free software, and you are welcome to redistribute it under certain
conditions; please see the COPYING file for more details.

Loading schematic [/home/kevin/example/example.sch]
gEDA/gnetlist version 20021103
gEDA/gnetlist comes with ABSOLUTELY NO WARRANTY; see COPYING for more details.
This is free software, and you are welcome to redistribute it under certain
conditions; please see the COPYING file for more details.

Loading schematic [/home/kevin/example/example.sch]
ERROR! no footprint attribute in J3

Error: the footprint AMPHENOL_ARFX1229 for the device J2 does not exist
Error: the footprint AMPHENOL_ARFX1229 for the device J1 does not exist
Error: the footprint R1206 for the device R5 does not exist
Error: the footprint R1206 for the device R4 does not exist
Error: the footprint R1203 for the device R3 does not exist
Error: the footprint R1203 for the device R2 does not exist
Error: the footprint C1206 for the device C3 does not exist
Error: the footprint C1206 for the device C2 does not exist


I install the pcb and gEDA by default setting, it means that i have nothing special suring the installation. I make most of the web did, for example the making of directories and copying the gschemrc to gnetlistrc. HeHe!!! Since i found that there is the maxim library in gschem so i don't create the component by myself. I can find the common.m4 in the /usr/local/share/pcb/ and gnet-PCBboard.scm in /usr/local/share/gEDA/scheme. I haven't anything do of them since i don't understand the reason to do so. (PCB-1.99n is installed, note that).

---common.m4------
include(pci.inc)
include(geda.inc)
include(smt.inc)
include(genericsmt.inc)
include(local.inc)
include(rules.inc)
include(connector.inc)
include(dil.inc)
include(misc.inc)
include(plcc.inc)
include(to.inc)
include(qfp.inc)
include(qfp2.inc)
include(zif.inc)

# Add myself
sinclude(site-config.inc)
sinclude(usr-config.inc)
sinclude(proj-config.inc)

divert(0)dnl




---gnet-PCBboard---
(define *m4-pcbdir* "/usr/local/share/pcb/m4")

;; To emulate popen. Guileish again.
; Needed after guile ver. 1.3.2. To save 1.3a users, wrap it in.
(false-if-exception (use-modules (ice-9 popen)))

(define (PCBboard output-filename)
(let ((port (open-output-file output-filename)))
(PCBboard:write-top-header port)
(close-port port))
;; pipe with the macro define in pcb program
;; (let ((pipe (open-output-pipe (string-append "m4 " *m4-pcbdir* "/common.m4 - | sed '/^PKG/d' - >> " output-filename))))
;; leave the packages that have not been found in the file.pcb
;; will be process in the script gschem2pcb
;; Original pipe command commented out by AVH (bugfix by Rich Walker)
;; (let ((pipe (open-output-pipe (string-append "m4 " *m4-pcbdir* "/common.m4 - >> " output-filename))))
;; Fixed pipe command (AVH 1/27/02)
(let ((pipe (open-output-pipe (string-append "m4 -d -I" *m4-pcbdir* " " *m4-pcbdir* "/common.m4 - >> " output-filename))))


;; packages is a list with the different uref value
(PCBboard:write-value-footprint pipe packages)
(close-pipe pipe))
(let ((port (open output-filename (logior O_WRONLY O_APPEND))))
(PCBboard:write-bottom-footer port)
close-port port))










What am I miss to do? Would anyone tell me the complete the process? I ask about i so long and I hope i can finish it as soon as possible!



Thanks a lot



From: mcmahill@mtl.mit.edu
Reply-To: geda-user@seul.org
To: geda-user@seul.org
Subject: Re: gEDA-user: How to get pcb from gschem?
Date: Thu, 24 Apr 2003 08:16:36 -0400 (EDT)


you may want to look at:

http://www-mtl.mit.edu/~mcmahill/PCB/gEDA-PCB.html

but note that everywhere where it says 'uref' you should use 'refdes'


-Dan


On Thu, 24 Apr 2003, Rui Cheang wrote:

>
> Dear all,
>
> Indeed, i am a new one who starts on the gschem and pcb, would u give me
> some examples (there is only a LED example under the pcb which is so
> complicated to be understood), please? I hope i can understand the use of
> this pvb and gschem more through some simple examples, is that okay?
>
> Could the schema (in gschem) must include the footprints attribute? if not,
> then how can i make them in pcb program?
>
> Thanks a lot!
> Rui
>
>
>
>
>
>
>
> >From: DJ Delorie <dj@delorie.com>
> >Reply-To: geda-user@seul.org
> >To: geda-user@seul.org
> >CC: geda-user@moria.seul.org
> >Subject: Re: gEDA-user: How to get pcb from gschem?
> >Date: Wed, 23 Apr 2003 21:32:07 -0400
> >
> >Are you doing the right steps?
> >
> >First, you have to generate both a netlist and an initial pcb file
> >with gnetlist and/or gschem2pcb.
> >
> >Then, open the new pcb file. This will have all the right components
> >in it.
> >
> >Now import the netlist, select a suitable layer, and generate the
> >ratlist.
> >
> >Based on reading gschem2pcb, you should be able to edit the
> >schematics, rerun gschem2pcb, and have it update the pcb (well,
> >generated a merged one) - keeping the placements and traces you've
> >already done. You just have to import the new netlist to validate the
> >net against the existing traces.
>
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus