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: 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]" To: "geda-user AT delorie DOT com" Content-Type: multipart/alternative; boundary=001a1130d41c03039905286ea3ee 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 Precedence: bulk --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, 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) > # > 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) > # > 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) > > :1:1: In expression (component? 2): > :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,
In order to use the component? function, you have to plug in the m= odule 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 de= pends on libgeda
>
> $ ldd `which gaf ` | fgrep libgeda.so
&= gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 libgeda.so.43 =3D> /usr/local/lib/libged= a.so.43 (0xb6a85000)
> $ ldd `which gnetlist ` | fgrep libgeda.so
= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 libgeda.so.43 =3D> /usr/local/lib/libge= da.so.43 (0xb7434000)
>
> and both are able to acess libgeda= 9;s scheme functions:
>
> $ gaf shell
> gEDA 1.9.0 (g01f8= d13)
> ** 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 0x926= e7b0>
> guile>
> $ gnetlist -g bom -o tt -i test.sch
&= gt; 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 0x85e2= 3b0>
> gnetlist>
> $
>
> rc-config is in libg= eda:
>
> $ grep rc-config geda-gaf/libgeda/src/g_register.c
= > =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 },
> $
>
> But = maybe libgeda is insufficient.
>
> $ gnetlist -g bom -o tt -i t= est.sch
> ...
> gnetlist> (component? 2)
>
> Bac= ktrace:
> In standard input:
> =C2=A0 =C2=A03: 0* (component? 2= )
>
> standard input:3:1: In expression (component? 2):
>= standard input:3:1: Unbound variable: component?
> ABORT: (unbound-v= ariable)
> gnetlist>
> $ gaf shell
> ...
> guile= > (component? 2)
>
> Backtrace:
> In current input:> =C2=A0 =C2=A01: 0* (component? 2)
>
> <unnamed port>= ;:1:1: In expression (component? 2):
> <unnamed port>:1:1: Unbo= und 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--