www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/03/09:15:42

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=EG7P8Flun4Er8oMdJAfb2PEHd9PKMJ8pU2bS0avjNJ0=;
b=ZlQxbtju2VBYqOvxs5OwDT7IgmpyEFRrOMYRMkzVtkKFO8cQPJV75AHUovaBbKwKnZ
E+GcvdtfnBf/ZaoBuz+MchRZE/jc5NSj6CQTwpnr6uwqLt/QbUW5Y169Rg+gElmkrb0z
BB0PfgUF4gi4zyn/UKWy9JRCfH01fZOERwFqq8Iky2vakHh/akx3XbrZ4+7Iofi1gsLS
BG8h4gIx80ffDvdn8KN6VslN5zcV+sDj1/pROuSugS7LFrRXMV06jSaUDFLOiCTPw1dU
a1ZdwRFQAe3B4gW+MTB4FmBLvKsNUAZSFud+A6Wqif5jh1zzpTxBRJSBlOBj4Vc8VQ2F
fBEg==
MIME-Version: 1.0
X-Received: by 10.194.116.97 with SMTP id jv1mr90842533wjb.38.1451830529947;
Sun, 03 Jan 2016 06:15:29 -0800 (PST)
In-Reply-To: <20160102091556.BBC6D809D79B@turkos.aspodata.se>
References: <20160102091556 DOT BBC6D809D79B AT turkos DOT aspodata DOT se>
Date: Sun, 3 Jan 2016 17:15:29 +0300
Message-ID: <CAMvDHVAoAnt3g6JBvgbnrR53LG6KpzWKBTmQgo1j+7ERvbESpg@mail.gmail.com>
Subject: Re: [geda-user] should we broaden scope of libgeda
From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: "geda-user AT delorie DOT com" <geda-user AT delorie DOT com>
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--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, &lt;<a href=3D"mailto:karl AT as=
podata.se">karl AT aspodata DOT se</a>&gt; wrote:<br>&gt; Both gaf and gnetlist de=
pends on libgeda<br>&gt;<br>&gt; $ ldd `which gaf ` | fgrep libgeda.so<br>&=
gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 libgeda.so.43 =3D&gt; /usr/local/lib/libged=
a.so.43 (0xb6a85000)<br>&gt; $ ldd `which gnetlist ` | fgrep libgeda.so<br>=
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 libgeda.so.43 =3D&gt; /usr/local/lib/libge=
da.so.43 (0xb7434000)<br>&gt;<br>&gt; and both are able to acess libgeda&#3=
9;s scheme functions:<br>&gt;<br>&gt; $ gaf shell<br>&gt; gEDA 1.9.0 (g01f8=
d13)<br>&gt; ** Message: Loaded RC file [/usr/local/share/gEDA/system-gafrc=
]<br>&gt;<br>&gt; ** Message: Loaded RC file [/home/karl/tmp/gnetlist_test/=
gafrc]<br>&gt;<br>&gt; guile&gt; (rc-config)<br>&gt; #&lt;geda-config 0x926=
e7b0&gt;<br>&gt; guile&gt;<br>&gt; $ gnetlist -g bom -o tt -i test.sch<br>&=
gt; Loading schematic [/home/karl/tmp/gnetlist_test/test.sch]<br>&gt; Found=
 a cpinlist head with a netname! [ac/output]<br>&gt; Found a cpinlist head =
with a netname! [ac/output]<br>&gt; Found a cpinlist head with a netname! [=
ac/output]<br>&gt; gnetlist&gt; (rc-config)<br>&gt; #&lt;geda-config 0x85e2=
3b0&gt;<br>&gt; gnetlist&gt;<br>&gt; $<br>&gt;<br>&gt; rc-config is in libg=
eda:<br>&gt;<br>&gt; $ grep rc-config geda-gaf/libgeda/src/g_register.c<br>=
&gt; =C2=A0 { &quot;rc-config&quot;,=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 0, 0, 0, g_rc_rc_config },<br>&gt; $<br>&gt;<br>&gt; But =
maybe libgeda is insufficient.<br>&gt;<br>&gt; $ gnetlist -g bom -o tt -i t=
est.sch<br>&gt; ...<br>&gt; gnetlist&gt; (component? 2)<br>&gt;<br>&gt; Bac=
ktrace:<br>&gt; In standard input:<br>&gt; =C2=A0 =C2=A03: 0* (component? 2=
)<br>&gt;<br>&gt; standard input:3:1: In expression (component? 2):<br>&gt;=
 standard input:3:1: Unbound variable: component?<br>&gt; ABORT: (unbound-v=
ariable)<br>&gt; gnetlist&gt;<br>&gt; $ gaf shell<br>&gt; ...<br>&gt; guile=
&gt; (component? 2)<br>&gt;<br>&gt; Backtrace:<br>&gt; In current input:<br=
>&gt; =C2=A0 =C2=A01: 0* (component? 2)<br>&gt;<br>&gt; &lt;unnamed port&gt=
;:1:1: In expression (component? 2):<br>&gt; &lt;unnamed port&gt;:1:1: Unbo=
und variable: component?<br>&gt; ABORT: (unbound-variable)<br>&gt; guile&gt=
;<br>&gt; $<br>&gt;<br>&gt; Ok, so things from &quot;info geda-scheme&quot;=
 does not work.<br>&gt;<br>&gt; Wouldn&#39;t it make sense to move things (=
that isn&#39;t related to a gui)<br>&gt; from gschem to libgeda ?<br>&gt;<b=
r>&gt; Regards,<br>&gt; /Karl Hammar<br>&gt;<br>&gt; ----------------------=
-------------------------------------------------<br>&gt; Asp=C3=B6 Data<br=
>&gt; Lilla Asp=C3=B6 148<br>&gt; S-742 94 =C3=96sthammar<br>&gt; Sweden<br=
>&gt; +46 173 140 57<br>&gt;<br>&gt;<br>&gt;

--001a1130d41c03039905286ea3ee--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019