Re: gEDA-user: Schematic import (was why separate xgsch2pcb?)

2010-02-23 Thread Peter Clifton
On Sun, 2010-02-21 at 11:26 +, Peter Clifton wrote:

 Looks like a mistake.. PCB has defgnetlist hard-coded rather than
 gnetlist.
 
 Try with this environment variable set as a work-around for now:
 
 PCB_GNETLIST=gnetlist


This is no longer necessary.. I fixed the hard-coded default to be
gnetlist rather than defgnetlist.

Peter C.



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Schematic import (was why separate xgsch2pcb?)

2010-02-22 Thread Steven Michalske


On Feb 21, 2010, at 5:47 AM, Vanessa Ezekowitz wrote:


On Sun, 21 Feb 2010 08:14:42 -0500 (EST)
Stuart Brorson s...@cloud9.net wrote:


There is a bug in the git version of PCB.  If you put your newlib
footprints in a directory, the library import stuff can't find them.
The library import stuff looks in *subdirectories* of your footprint
directory.   This has to do with the way the importer works, as well
asl how the library data inside PCB is structured.

If you want to use the git stuff, put your footprints in a directory
*under* ~/GEDA/www/user/vanessa_ezekowitz/footprints/ (example:
~/GEDA/www/user/vanessa_ezekowitz/footprints/myfootprints).

I've been fiddling with creating a fix for this, but it's slow going
since I need to learn about how PCB itself works.



I ran into this a while back too, which is why I use a symlink.

In actuality, PCB is configured to look in /home/vanessa/ 
Footprints.  Contained within that directory is a symlink named  
Custom, which points to /home/vanessa/GEDA/www/user/ 
vanessa_ezekowitz/footprints , where the actual footprint files  
reside.


Without it, I'd see vanessa_ezekowitz as my top level, and  
symbols, footprints, attic and CVS under that.  This way,  
PCB just shows Footprints - Custom and I don't have to disturb  
the layout of my repository. :-)


At any rate, PCB's Library dialog can find and use the files just  
fine, it's just the Import function that doesn't.





Two thoughts.

what is the exact config line you used?  did you put in ~/Footprints  
or /home/vanessa/Footprints,  I am wondering if the importer is not  
decoding the ~


Out of curiosity, if you were to temporarily make a copy of the  
contents of /home/vanessa/GEDA/www/user/vanessa_ezekowitz/footprints  
to ~/GEDA/www/user/vanessa_ezekowitz/footprints/custom   does it  
work.  Is the importer not following soft links?


Steve


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Schematic import (was why separate xgsch2pcb?)

2010-02-22 Thread Peter Clifton
On Mon, 2010-02-22 at 16:31 -0600, Vanessa Ezekowitz wrote:
 Steven Michalske smichal...@gmail.com wrote:
 
  Out of curiosity, if you were to temporarily make a copy of the contents
  [...]
 
 Changing out the symlink for a real directory full of files didn't
 help, but I believe I have found the problem:
 
 Normally when you reference a stock footprint in a schematic, you do
 so by name, without any suffixes, e.g. you specify RCY100 instead of
 RCY100.fp.  This is how I reference my custom footprints as well,
 and it's enough to satisfy gsch2pcb.
 
 I tried changing all references to my custom footprints in the
 schematic to include .fp, and sure enough, it works.  The Import
 function finds them just fine this way.
 
 This of course represents a significant change in behavior, so I'd
 have to suggest that the suffix be made optional in the Import
 function.

Indeed.. sounds like a bug in the import function. It shouldn't need the
.fp at all.

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Schematic import (was why separate xgsch2pcb?)

2010-02-21 Thread Peter Clifton
On Sun, 2010-02-21 at 03:13 -0600, Vanessa Ezekowitz wrote:
 Since the Schematic Import was still giving me troubles, I've upgraded to 
 GEDA 1.6.1 and pulled the latest PCB changes from GIT, uninstalled it, 
 checked that there are no obvious references to PCB or GEDA anywhere under 
 /usr/local (including that symlink that was previously needed), rebuilt and 
 reinstalled.
 
 So now, the prefixes for PCB and GEDA are definitely the same.  :-)
 
 As before, I've copied a known working schematic to ~/test.sch, and saved an 
 empty board layout as ~/test.pcb, with test as the name on the layout.
 
 I then try to Import Schematics, but it looks like things have taken a 
 slight backward step:  I am greeted with that single-line error message in 
 the message log that cropped up before: Can't add rat lines because no 
 netlist is loaded.  The only message on the controlling terminal is:
 
 Could not open actions file /tmp/pcb.XXXCNCim/gnetlist_output
 
 So as before I ran PCB via strace.  The trace indicates that PCB is trying to 
 find and run defgnetlist  (and it checks in several places, including 
 /usr/bin) with test.sch as one of the arguments.   There are no executables 
 anywhere in my $PATH that start with def.  
 
 Did I miss a step?


Looks like a mistake.. PCB has defgnetlist hard-coded rather than
gnetlist.

Try with this environment variable set as a work-around for now:

PCB_GNETLIST=gnetlist

(Use a full path if necessary).

Peter C



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Schematic import (was why separate xgsch2pcb?)

2010-02-21 Thread Stuart Brorson

There is a bug in the git version of PCB.  If you put your newlib
footprints in a directory, the library import stuff can't find them.
The library import stuff looks in *subdirectories* of your footprint
directory.   This has to do with the way the importer works, as well
asl how the library data inside PCB is structured.

If you want to use the git stuff, put your footprints in a directory
*under* ~/GEDA/www/user/vanessa_ezekowitz/footprints/ (example:
~/GEDA/www/user/vanessa_ezekowitz/footprints/myfootprints).

I've been fiddling with creating a fix for this, but it's slow going
since I need to learn about how PCB itself works.

Good luck,

Stuart



On Sun, 21 Feb 2010, Vanessa Ezekowitz wrote:


On Sun, 21 Feb 2010 11:26:19 +
Peter Clifton pc...@cam.ac.uk wrote:


PCB_GNETLIST=gnetlist


Setting this variable (I used the full path) gets the import function working 
and gets me back to the point I was at in the other thread:

I have PCB configured to look in ~/GEDA/www/user/vanessa_ezekowitz/footprints/  
(by way of a symlink, for readability), and the Library dialog lets me pick and 
place them as desired, but the Schematic Import function can't find them when 
they're called for in the schematic.  The connections to/from those components 
seem to be present in the generated netlist, though.

Two example schematics:

http://starbase.globalpc.net/~ezekowitz/vanessa/hobbies/projects/Stereo-SID-0.1.1.sch
http://starbase.globalpc.net/~ezekowitz/vanessa/hobbies/projects/powersid-0.2.3.sch

(if any of the symbols come up missing, they're in my gedasymbols.org 
repository.. I'm still getting used to embedding my symbols)

--
There are some things in life worth obsessing over.  Most
things aren't, and when you learn that, life improves.
http://starbase.globalpc.net/~ezekowitz
Vanessa Ezekowitz vanessaezekow...@gmail.com


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user




___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Schematic import (was why separate xgsch2pcb?)

2010-02-21 Thread Vanessa Ezekowitz
On Sun, 21 Feb 2010 08:14:42 -0500 (EST)
Stuart Brorson s...@cloud9.net wrote:

 There is a bug in the git version of PCB.  If you put your newlib
 footprints in a directory, the library import stuff can't find them.
 The library import stuff looks in *subdirectories* of your footprint
 directory.   This has to do with the way the importer works, as well
 asl how the library data inside PCB is structured.
 
 If you want to use the git stuff, put your footprints in a directory
 *under* ~/GEDA/www/user/vanessa_ezekowitz/footprints/ (example:
 ~/GEDA/www/user/vanessa_ezekowitz/footprints/myfootprints).
 
 I've been fiddling with creating a fix for this, but it's slow going
 since I need to learn about how PCB itself works.
 

I ran into this a while back too, which is why I use a symlink.

In actuality, PCB is configured to look in /home/vanessa/Footprints.  Contained 
within that directory is a symlink named Custom, which points to 
/home/vanessa/GEDA/www/user/vanessa_ezekowitz/footprints , where the actual 
footprint files reside.

Without it, I'd see vanessa_ezekowitz as my top level, and symbols, 
footprints, attic and CVS under that.  This way, PCB just shows 
Footprints - Custom and I don't have to disturb the layout of my repository. 
:-)

At any rate, PCB's Library dialog can find and use the files just fine, it's 
just the Import function that doesn't.

-- 
There are some things in life worth obsessing over.  Most
things aren't, and when you learn that, life improves.
http://starbase.globalpc.net/~ezekowitz
Vanessa Ezekowitz vanessaezekow...@gmail.com


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user