Re: [sword-devel] SWIG Perl

2003-01-31 Thread Joachim Ansorg
Hi! These commands should od it: export CVSROOT=:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot cvs login Password: anonymous cvs checkout sword You have to isntall the program cvs. The bindings are in the usual place. Let me know if it works, Joachim > Joachim, > > How do you get the CVS versi

Re: [sword-devel] SWIG Perl

2003-01-30 Thread Chad Snow
Joachim, How do you get the CVS version? I am not using CVS and I don't know much about it? But I would like to learn so if you could help me get started I would appreciate it. Thanks Chad On Thu, 2003-01-30 at 19:04, Joachim Ansorg wrote: > Chad, > it's done now. > Update your CVS to get the

Re: [sword-devel] SWIG Perl

2003-01-30 Thread Chad Snow
Thanks I give it a try. I got the creating modules problem fixed. I just had the syntax wrong. Thanks so much for you help. Chad On Thu, 2003-01-30 at 19:04, Joachim Ansorg wrote: > Chad, > it's done now. > Update your CVS to get the new functions. > > I implemented bookCount, bookName, chap

Re: [sword-devel] SWIG Perl

2003-01-30 Thread Joachim Ansorg
Chad, it's done now. Update your CVS to get the new functions. I implemented bookCount, bookName, chapterCount, verseCount. All in VerseKey. See versekey.i for documentation iof these functions. See attached script as an example. This script prints out the Bible structure. If you ask me, it's s

Re: [sword-devel] SWIG Perl

2003-01-30 Thread Joachim Ansorg
Hi! No, I don't think we have this in the bindings. I'll do it soon. Does creating modules work now? Joachim > In SWIG Perl, is there a way to find out how many verses are in a > chapter and how many chapters are in a book? > > Thanks > Chad > > ___ >

[sword-devel] SWIG Perl

2003-01-30 Thread Chad Snow
In SWIG Perl, is there a way to find out how many verses are in a chapter and how many chapters are in a book? Thanks Chad ___ sword-devel mailing list [EMAIL PROTECTED] http://www.crosswire.org/mailman/listinfo/sword-devel

Re: [sword-devel] SWIG Perl

2003-01-20 Thread Joachim Ansorg
Use these commands: cd bindings/swig ./configure make perlswig The compile as usual. Don't forget the make install in the perl subdir. Joachim > How do you rebuild Sword.pm and Sword.cxx using SWIG? > > Thanks > Chad > > On Sun, 2003-01-19 at 21:29, Joachim Ansorg wrote:

Re: [sword-devel] SWIG Perl

2003-01-20 Thread Chad Snow
How do you rebuild Sword.pm and Sword.cxx using SWIG? Thanks Chad On Sun, 2003-01-19 at 21:29, Joachim Ansorg wrote: > Perl normally assumes that you call a function like > > sub mysub { > my $self = shift; # or use $_[0]; > my $class = $self->someFunction(); > } > In this example so

Re: [sword-devel] SWIG Perl

2003-01-19 Thread Joachim Ansorg
Perl normally assumes that you call a function like sub mysub { my $self = shift; # or use $_[0]; my $class = $self->someFunction(); } In this example someFunction is called with one parameter, the class it belongs to! Strange but sometime useful! I looked into Sword.pm, the decl

Re: [sword-devel] SWIG Perl

2003-01-19 Thread Chad Snow
OK, the class is in the zcom.i file but after I build SWIG and install Perl it does not show up in the Sword.pm file. So ever time I try and use it, Perl can't find that function. And when I try and create a RawText module or other modules I get this message. Usage: RawText_createModule(self,pat

Re: [sword-devel] SWIG Perl

2003-01-19 Thread Joachim Ansorg
Normally build it with cd bindings/swig ./configure make cd perl; make install The make install is important, otherwise the Sword module is not available and can't load the shared lib. Have a look into the .i files which functions are available in which classes. Basically it's most of the thin

Re: [sword-devel] SWIG Perl

2003-01-19 Thread Chad Snow
That did not work. I get a message when I try creating an zCom module in Perl. Can't locate auto/Sword/zCom/createModul.al in @INC I don't find zCom::createModule in the Sword.pm file. Did I build SWIG Perl wrong or something. Thanks Chad On Sun, 2003-01-19 at 05:25, Joachim Ansorg wrote: >

Re: [sword-devel] SWIG Perl

2003-01-19 Thread Joachim Ansorg
Chad, Have a look at the following messy Perl script. It was never intended for a release, so the code isn't very good. At the end you'll see how I created a compressed commentary module using the Swig bindings. If you need more help let me know. Joachim > Can someone tell me how to create a m

[sword-devel] SWIG Perl

2003-01-18 Thread Chad Snow
Can someone tell me how to create a module in SWIG Perl? I try and follow the example given but I get an error message like this: Usage: xText_createModule(self,path,blockBound); Can any one help? Thanks Chad ___ sword-devel mailing list [EMAIL PROTE