Mail Archives: geda-user/2016/01/02/04:16:33
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f
|
X-Recipient: | geda-user AT delorie DOT com
|
X-Mailer: | exmh version 2.8.0 04/21/2012 (debian 1:2.8.0~rc1-2) with nmh-1.5
|
X-Exmh-Isig-CompType: | comp
|
X-Exmh-Isig-Folder: | inbox
|
From: | karl AT aspodata DOT se
|
To: | geda-user AT delorie DOT com
|
Subject: | [geda-user] should we broaden scope of libgeda
|
Mime-Version: | 1.0
|
Message-Id: | <20160102091556.BBC6D809D79B@turkos.aspodata.se>
|
Date: | Sat, 2 Jan 2016 10:15:56 +0100 (CET)
|
X-Virus-Scanned: | ClamAV using ClamSMTP
|
Reply-To: | geda-user AT delorie DOT com
|
Both gaf and gnetlist depends on libgeda
$ ldd `which gaf ` | fgrep libgeda.so
libgeda.so.43 => /usr/local/lib/libgeda.so.43 (0xb6a85000)
$ ldd `which gnetlist ` | fgrep libgeda.so
libgeda.so.43 => /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ö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Raw text -