[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-dev
Subject:    Re: Accessing SVN through Ruby
From:       John Lenz <lenz () cs ! wisc ! edu>
Date:       2005-04-13 3:24:34
Message-ID: 1113362674l.5846l.1l () hydra
[Download RAW message or body]

On 04/12/05 16:22:19, Bob Aman wrote:

> > Well, I managed to get a little bit more progress by moving around a
> > bunch of the .h files.  But apr.h seems to be missing.  I saw apr.h.in
> > and that seems to be what I'm looking for.  It says apr.h is a
> > generated file?  How do I generate it?  On a whim, I tried just
> > renaming apr.h.in to apr.h and got back an error from SWIG:
> > E:\svn-source\subversion-1.1.4\subversion\bindings\swig>swig -ruby apr.i
> > apr.h(257): Error: Syntax error in input.
> > *** No module name specified using %module or -module.
> >
> > So I assume that was the wrong thing to do :-P
> 
> Ok, so I gave up trying to figure out what to do with the .in file in
> Windows.  I ran ./configure for the apr on FreeBSD, everything,
> *poof*, went as expected, and it eventually spat out apr.h as well as
> a bunch of other stuff.  I borrowed that apr.h and stuck it on my
> Windows machine, hoping there wasn't anything FreeBSD specific in
> there as a result.  I no longer get a syntax error, but it's still
> telling me:
> *** No module name specified using %module or -module.
> 
> I have no idea what that means, but I guess I don't get a *_wrap.c
> file?  Or.... was I supposed to?
> 
> And uhm, could someone tell me what I was actually supposed to do with
> the apr.h.* files?  Please?

You need to run SWIG on the .i files inside subversion/bindings/swig.   
Thus, you need to run SWIG on core.i, svn_client.i, svn_delta.i, svn_fs.i,  
svn_ra.i, svn_repos.i, and svn_wc.i.  If you look, you can see that core.i  
includes apr.i, which includes apr.h.  Incidentally, core.i also includes  
the %module, which is what SWIG is looking for.

John


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic