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

gEDA-user: Dashes in footprint names legal? Bug?



Guys:


I get a syntax error in pcb whenever I try to use Luciani's 
SOT23-95P-280L1-5N__LTC_S5_Package footprint, but I'm not sure it has 
anything to do with the footprint itself.  I created the schematic with 
gschem and footprint=SOT23-95P-280L1-5N__LTC_S5_Package.  The pcb file 
was created by gsch2pcb.   The pcb log:

Looking for default_font in .
Can't open ./default_font for reading
Looking for default_font in /usr/bin/../share/pcb
Found default_font in /usr/bin/../share/pcb
ERROR parsing file 'foo.pcb'
    line:        140
    description: 'syntax error'
The gtk gui currently ignores "grey50"as part of a menuitem resource.
Feel free to provide patches
ghid_load_menus():  Mouse resources are currently ignored by the GTK HID.
Please feel free to submit a patch to implement this!


Here is the element around line 140:


Element(0x00 "" "" "" 148 0 3 100 0x00)
(
    ElementLine(0 0 0 139 10)
    ElementLine(0 139 128 139 10)
    ElementLine(128 139 128 0 10)
    ElementLine(128 0 0 0 10)

    # 1st side, 1st pin
    Pad(25 107
           25 113
               34
                  "1" "1" 0x100)
     
   

    # 1st side, 2nd pin
   

    # 1st side, 3rd pin
    Pad(103 107
        103 113
               34
                  "2" "2" 0x100)
   

    # 2nd side, 3rd pin
   

    # 2nd side, 2nd pin
    Pad(64 25
           64 31
               34
                  "3" "3" 0x100)
      
     

    # 2nd side, 1st pin
   

    Mark(25 110)
)-95P-280L1-5N__LTC_S5_Package(SOT23-95P-280L1-5N__LTC_S5_Package,U2,unknown)
                             # 78 for SOT23
                                 # 82 for SOT23
          # 41 for SOT23
                   # 34 for SOT23, 24 for SOT25



The line beginning with ")-95P-280L1-5N..." is line 140.

Interestingly, if I create a symlink in the footprint directory that 
points to the footprint file but has no dashes or underscores in the 
name, and then use that name for the footprint (i.e. 
"SOT2395P280L15NLTCS5Package"), things appear to work properly.

I'm guessing this would be a bug in gsch2pcb.

$ gsch2pcb --version
gsch2pcb 1.6

The tools in question are from Debian testing:

$ dpkg -l | grep geda
ii  geda                                    1:1.4.0.2
ii  geda-doc                                1:1.4.3-1
ii  geda-examples                           1:1.4.3-1
ii  geda-gattrib                            1:1.4.3-2
ii  geda-gnetlist                           1:1.4.3-2
ii  geda-gschem                             1:1.4.3-2
ii  geda-gsymcheck                          1:1.4.3-3
ii  geda-symbols                            1:1.4.3-1
ii  geda-utils                              1:1.4.3-2
ii  libgeda-common                          1:1.4.3-1
ii  libgeda33                               1:1.4.3-1
bgat@mercury:~$ dpkg -l | grep pcb
ii  pcb                                     20080202-2
ii  pcb-common                              20080202-2
ii  pcb-gtk                                 20080202-2



b.g.

-- 
Bill Gatliff
bgat@xxxxxxxxxxxxxxx



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