Mail Archives: geda-user/2016/01/03/09:15:42
--001a1130d41c03039905286ea3ee
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Karl,
In order to use the component? function, you have to plug in the module it
is in: (use-modules (geda object))
I am far from home and have no computer and typing on gadjets is horrible,
so I will not elaborate more, sorry.
On Saturday, January 2, 2016, <karl AT aspodata DOT se> wrote:
> Both gaf and gnetlist depends on libgeda
>
> $ ldd `which gaf ` | fgrep libgeda.so
> libgeda.so.43 =3D> /usr/local/lib/libgeda.so.43 (0xb6a85000)
> $ ldd `which gnetlist ` | fgrep libgeda.so
> libgeda.so.43 =3D> /usr/local/lib/libgeda.so.43 (0xb7434000)
>
> and both are able to acess libgeda's scheme functions:
>
> $ gaf shell
> gEDA 1.9.0 (g01f8d13)
> ** Message: Loaded RC file [/usr/local/share/gEDA/system-gafrc]
>
> ** Message: Loaded RC file [/home/karl/tmp/gnetlist_test/gafrc]
>
> guile> (rc-config)
> #<geda-config 0x926e7b0>
> guile>
> $ gnetlist -g bom -o tt -i test.sch
> Loading schematic [/home/karl/tmp/gnetlist_test/test.sch]
> Found a cpinlist head with a netname! [ac/output]
> Found a cpinlist head with a netname! [ac/output]
> Found a cpinlist head with a netname! [ac/output]
> gnetlist> (rc-config)
> #<geda-config 0x85e23b0>
> gnetlist>
> $
>
> rc-config is in libgeda:
>
> $ grep rc-config geda-gaf/libgeda/src/g_register.c
> { "rc-config", 0, 0, 0, g_rc_rc_config },
> $
>
> But maybe libgeda is insufficient.
>
> $ gnetlist -g bom -o tt -i test.sch
> ...
> gnetlist> (component? 2)
>
> Backtrace:
> In standard input:
> 3: 0* (component? 2)
>
> standard input:3:1: In expression (component? 2):
> standard input:3:1: Unbound variable: component?
> ABORT: (unbound-variable)
> gnetlist>
> $ gaf shell
> ...
> guile> (component? 2)
>
> Backtrace:
> In current input:
> 1: 0* (component? 2)
>
> <unnamed port>:1:1: In expression (component? 2):
> <unnamed port>:1:1: Unbound variable: component?
> ABORT: (unbound-variable)
> guile>
> $
>
> Ok, so things from "info geda-scheme" does not work.
>
> Wouldn't it make sense to move things (that isn't related to a gui)
> from gschem to libgeda ?
>
> Regards,
> /Karl Hammar
>
> -----------------------------------------------------------------------
> Asp=C3=B6 Data
> Lilla Asp=C3=B6 148
> S-742 94 =C3=96sthammar
> Sweden
> +46 173 140 57
>
>
>
--001a1130d41c03039905286ea3ee
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Karl,<br>In order to use the component? function, you have to plug in the m=
odule it is in: (use-modules (geda object))<br>I am far from home and have =
no computer and typing on gadjets is horrible, so I will not elaborate more=
, sorry.<br><br>On Saturday, January 2, 2016, <<a href=3D"mailto:karl AT as=
podata.se">karl AT aspodata DOT se</a>> wrote:<br>> Both gaf and gnetlist de=
pends on libgeda<br>><br>> $ ldd `which gaf ` | fgrep libgeda.so<br>&=
gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 libgeda.so.43 =3D> /usr/local/lib/libged=
a.so.43 (0xb6a85000)<br>> $ ldd `which gnetlist ` | fgrep libgeda.so<br>=
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 libgeda.so.43 =3D> /usr/local/lib/libge=
da.so.43 (0xb7434000)<br>><br>> and both are able to acess libgeda=
9;s scheme functions:<br>><br>> $ gaf shell<br>> gEDA 1.9.0 (g01f8=
d13)<br>> ** Message: Loaded RC file [/usr/local/share/gEDA/system-gafrc=
]<br>><br>> ** Message: Loaded RC file [/home/karl/tmp/gnetlist_test/=
gafrc]<br>><br>> guile> (rc-config)<br>> #<geda-config 0x926=
e7b0><br>> guile><br>> $ gnetlist -g bom -o tt -i test.sch<br>&=
gt; Loading schematic [/home/karl/tmp/gnetlist_test/test.sch]<br>> Found=
a cpinlist head with a netname! [ac/output]<br>> Found a cpinlist head =
with a netname! [ac/output]<br>> Found a cpinlist head with a netname! [=
ac/output]<br>> gnetlist> (rc-config)<br>> #<geda-config 0x85e2=
3b0><br>> gnetlist><br>> $<br>><br>> rc-config is in libg=
eda:<br>><br>> $ grep rc-config geda-gaf/libgeda/src/g_register.c<br>=
> =C2=A0 { "rc-config",=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 0, 0, 0, g_rc_rc_config },<br>> $<br>><br>> But =
maybe libgeda is insufficient.<br>><br>> $ gnetlist -g bom -o tt -i t=
est.sch<br>> ...<br>> gnetlist> (component? 2)<br>><br>> Bac=
ktrace:<br>> In standard input:<br>> =C2=A0 =C2=A03: 0* (component? 2=
)<br>><br>> standard input:3:1: In expression (component? 2):<br>>=
standard input:3:1: Unbound variable: component?<br>> ABORT: (unbound-v=
ariable)<br>> gnetlist><br>> $ gaf shell<br>> ...<br>> guile=
> (component? 2)<br>><br>> Backtrace:<br>> In current input:<br=
>> =C2=A0 =C2=A01: 0* (component? 2)<br>><br>> <unnamed port>=
;:1:1: In expression (component? 2):<br>> <unnamed port>:1:1: Unbo=
und variable: component?<br>> ABORT: (unbound-variable)<br>> guile>=
;<br>> $<br>><br>> Ok, so things from "info geda-scheme"=
does not work.<br>><br>> Wouldn't it make sense to move things (=
that isn't related to a gui)<br>> from gschem to libgeda ?<br>><b=
r>> Regards,<br>> /Karl Hammar<br>><br>> ----------------------=
-------------------------------------------------<br>> Asp=C3=B6 Data<br=
>> Lilla Asp=C3=B6 148<br>> S-742 94 =C3=96sthammar<br>> Sweden<br=
>> +46 173 140 57<br>><br>><br>>
--001a1130d41c03039905286ea3ee--
- Raw text -