<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2>Ben,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009> <FONT
face=Arial color=#0000ff size=2>So a newer version of Swig will actually parse
inner classes? </FONT></SPAN><SPAN class=234342101-20102009><FONT
face=Arial color=#0000ff size=2>Sweet. I did try 1.3.40 (I
downloaded it an compiled it) but I had a different issue (CLucene
0.9.23) and decided not to pursue it since</FONT></SPAN><SPAN
class=234342101-20102009><FONT face=Arial color=#0000ff size=2> I don't think I
can even get a newer version of swig on the "build-bots" that I have to target
the sword deb package for. But, that gives me another way to do it
-- I can pre-build the bindings and then submit the package with the
.cxx file and work around it that way I believe. Thanks for the
insight; now that I solved all the other issues, I really should have
retried the 1.3.40 again. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009>
<DIV dir=ltr align=left><SPAN class=234342101-20102009>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><A
href="http://code.google.com/p/bpbible/source/browse/trunk/README.txt"><FONT
face=Arial
size=2>http://code.google.com/p/bpbible/source/browse/trunk/README.txt</FONT></SPAN></A><FONT
face=Arial><FONT color=#0000ff><FONT size=2> <SPAN
class=234342101-20102009>- </SPAN><SPAN class=234342101-20102009>Lists that
1.5.11 is the recommended version.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left></SPAN></SPAN><SPAN class=234342101-20102009><FONT
face=Arial color=#0000ff size=2>---</FONT></SPAN></DIV></DIV></DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2> Troy, I owe you an apology -- After
re-reading my message -- I realize I came down a bit hard on
you. You are right the code does not need to be changed
if using a much later version of Swig.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2>--</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2> That patch will fix it for people who
aren't running the latest swig, it is up to you guys if you want to update the
code to support older swig versions or if you want to update the documentation
and makefile to check for a later version of swig. Either way, I
recommend one of the fixes so that it isn't presenting difficult to
diagnose errors for no reason is not good. ;-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=234342101-20102009><FONT face=Arial
color=#0000ff size=2>Nathan.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ben Morgan [mailto:benpmorgan@gmail.com]
<BR><B>Sent:</B> Monday, October 19, 2009 8:19 PM<BR><B>To:</B> SWORD
Developers' Collaboration Forum<BR><B>Subject:</B> Re: [sword-devel] Submitting
a Patch against 1.60svn<BR></FONT><BR></DIV>
<DIV></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Ben,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN> <FONT face=Arial
color=#0000ff size=2>Ok, you got my attention <g>
totally! </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2> 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 face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2> 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 face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>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 face=Arial color=#0000ff size=2>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 face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>After
compiling Sword with the following options:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>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 face=Arial color=#0000ff
size=2>OPTIONS="--with-icu $OPTIONS"<BR>OPTIONS="--with-clucene
$OPTIONS"<BR></FONT></SPAN><SPAN><FONT face=Arial color=#0000ff
size=2>OPTIONS="--disable-tests $OPTIONS"<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I
type:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>cd
bindings/swig/packages</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>./autogen.sh</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>./configure</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>make
pythonswig</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>make
python_make</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>---
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I
get:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>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 face=Arial color=#0000ff
size=2>----</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Swig
Version 1.3.29</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>After
applying my patch I can build it </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Nathan</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><FONT face=Arial color=#0000ff
size=2></FONT><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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></BODY></HTML>