delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/02/14:02:26

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: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] What Xorn does, and why it does it like that
In-reply-to: <alpine.DEB.2.11.1601021830270.2089@newt>
References: <alpine DOT DEB DOT 2 DOT 00 DOT 1508271146310 DOT 4001 AT lichen> <20160102162101 DOT 75D72809D79A AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 11 DOT 1601021830270 DOT 2089 AT newt>
Comments: In-reply-to Roland Lutz <rlutz AT hedmen DOT org>
message dated "Sat, 02 Jan 2016 19:14:28 +0100."
Mime-Version: 1.0
Message-Id: <20160102190219.D384D809D79A@turkos.aspodata.se>
Date: Sat, 2 Jan 2016 20:02:19 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
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

Roland Lutz:
> On Sat, 2 Jan 2016, karl AT aspodata DOT se wrote:
> > I would like to test xorn, I did "git pull -a" and found that
> > there are two xorn branches. Which one should I use ?
> >
> > $ git branch -a | grep xorn
> >  remotes/origin/home/rlutz/xorn-integration
> >  remotes/origin/xorn
> 
> Xorn has already been merged into the master banch.  The branch 'xorn' 
> reflects the current 'master' branch of the xorn repository, and 
> 'home/rlutz/xorn-integration' was a temporary branch which should be 
> deleted.

Ok, found it, geda-gaf/xorn, just under the nose so to say...

The README says 

$ autoreconf -i
autopoint: *** The AM_GNU_GETTEXT_VERSION declaration in your configure.ac
               file requires the infrastructure from gettext-0.18.2 but this version
               is older. Please upgrade to gettext-0.18.2 or newer.
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

so I'll look into that tomorrow...

> > And for the exercise, I have an program I'd like to implement as you
> > probably have seen in the mail thread of 'should we broaden scope of
> > libgeda':
> >
> > Given a sch file, collect all sym files to a save directory.
> >
> > So, in xorn, which bindings are available, c and python, any more ?
> 
> For this program, you'll want to load a schematic file including all 
> referenced and embedded symbol files.  This means you need:
> 
> * libxornstorage (a C library for which Python bindings exist)
> * the symbol library mechanism (a Python module called 'xorn.geda.clib')
> * the function 'read' from the Python module 'xorn.geda.read'
> 
> Right now, you'll either have to write the program in Python or embed a 
> Python interpreter into your C program in order to call the necessary 
> Python functions.  I'm planning to add a back-binding library so you can 
> call the functions implemented in Python as C functions (or in any other 
> language for which there are bindings), but I didn't find the time to do 
> so yet.
> 
> The process would be about as follows:
> * Add a DirectorySource for each directory to the symbol library (you 
> might want to re-use the function 'symbol_library_search' from 
> xorn/src/command/netlist.py).
> * Load the schematic while passing 'load_symbols = True' to the function
> 'xorn.geda.read.read'.
> * Iterate over all Component objects, writing the prim_objs of each unique 
> symbol to the target directory.
> 

Soo, currently it is python that is available.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


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