It looks like you need a newer version of SWIG.<br><br clear="all">God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>Multitudes, multitudes,<br> in the valley of decision!<br>
For the day of the LORD is near<br> in the valley of decision.<br><br>Giôên 3:14 (ESV)<br><br>
<br><br><div class="gmail_quote">On Tue, Oct 20, 2009 at 12:05 PM, Nathan Anderson <span dir="ltr"><<a href="mailto:nathan@andersonsplace.net">nathan@andersonsplace.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">Ben,</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span> <font size="2" face="Arial" color="#0000ff">Ok, you got my attention <g>
totally! </font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"> I could not not find any way to compile
the Sword.cxx module generated by swig in 1.60/1.60svn (I could do it fine
in 1.5.11) How exactly did you get past the VerseManager
referencing the inner TreeView PositionListener class in
1.60? </font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"> Is their some swig parameter that allows it to
generate some of the inner classes. </font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">I just pulled a fresh trunk version. This is compiled
against Clucene 0.9.21b and ICU 4.2.1.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">Here is the error messages from a fresh SVN trunk (w/o my
patch) version :</font></span></div></font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">After compiling Sword with the following
options:</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">OPTIONS="--prefix=/usr
$OPTIONS"<br>OPTIONS="--libdir=/usr/local/lib
$OPTIONS"<br>OPTIONS="--sysconfdir=/etc $OPTIONS"<br>OPTIONS="--without-conf
$OPTIONS"<br>OPTIONS="--enable-shared $OPTIONS"<br>OPTIONS="--disable-debug
$OPTIONS"<br></font></span><span><font size="2" face="Arial" color="#0000ff">OPTIONS="--with-icu $OPTIONS"<br>OPTIONS="--with-clucene
$OPTIONS"<br></font></span><span><font size="2" face="Arial" color="#0000ff">OPTIONS="--disable-tests $OPTIONS"<br></font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">I type:</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">cd bindings/swig/packages</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">./autogen.sh</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">./configure</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">make pythonswig</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">make python_make</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">--- </font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">I get:</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">Sword.cxx: In function `PyObject*<br>
_wrap_TreeKey_setPositionChangeListener(PyObject*,
PyObject*)':<br>Sword.cxx:42224: error: `PositionChangeListener' undeclared
(first use this<br> function)<br>Sword.cxx:42224: error: (Each
undeclared identifier is reported only once for<br> each function it
appears in.)<br>Sword.cxx:42224: error: `arg2' undeclared (first use this
function)<br>Sword.cxx:42224: error: parse error before `)'
token<br>Sword.cxx:42242: error: parse error before `*' token<br>error: command
'/scratchbox/compilers/host-gcc/bin/gcc' failed with exit status 1<br>make: ***
[python_make] Error 1<br></font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">----</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">Swig Version 1.3.29</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">After applying my patch I can build it
</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"> </font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff">Nathan</font></span></div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" face="Arial" color="#0000ff"></font></span> </div><font size="2" face="Arial" color="#0000ff"></font><br>
<div dir="ltr" lang="en-us" align="left">
<hr>
<font size="2" face="Tahoma"><b>From:</b> Ben Morgan [mailto:<a href="mailto:benpmorgan@gmail.com" target="_blank">benpmorgan@gmail.com</a>]
<br><b>Sent:</b> Monday, October 19, 2009 5:10 PM<div class="im"><br><b>To:</b> SWORD
Developers' Collaboration Forum<br><b>Subject:</b> Re: [sword-devel] Submitting
a Patch against 1.60svn<br></div></font><br></div><div><div></div><div class="h5">
<div></div>
<div class="gmail_quote">On Tue, Oct 20, 2009 at 8:36 AM, Troy A. Griffitts <span dir="ltr"><<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks
for the patch Nathan,<br><br>Is this really necessary? This has been in
the code for quite some time<br>and BPBible has been working with swig
bindings for quite some time with<br>this in the code. I don't believe
this inner class should ever be<br>exposed in the bindings, as it is a
mechanism we use in the<br>implementation of a specific derived class, and not
a basic interface.<br><br></blockquote>
<div>This isn't necessary for me; SWIG will give warnings about nested classes,
but not errors (they just won't be wrapped).<br>It is actually possible to get
round these restrictions, but here it isn't worth it.<br><br>The place I'd
actually be a little more worried about the nested classes is in the av11n code,
with VerseMgr::System, etc.<br><br><br clear="all">God
Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>Multitudes,
multitudes,<br> in the valley of decision!<br>For the day of the
LORD is near<br> in the valley of decision.<br><br>Giôên 3:14
(ESV)<br><br></div></div></div></div></div>
<br>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br></blockquote></div><br>