<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Jon,<br>
<br>
Yes, you need to be sure your install of SWORD is working well
before trying the bindings.<br>
<br>
make<br>
sudo make install<br>
sudo make install_config<br>
<br>
?<br>
<br>
And then you had an internet connection when you typed the
installmgr commands, and agreed to the warning about using remote
content?<br>
<br>
From the utilities folder, what does: sudo ./installmgr -rl
CrossWire<br>
show? It should list available modules in the CrossWire
repository.<br>
<br>
Do the installmgr commands return positive feedback to you? Here
is the output when I run them on my system:<br>
<br>
[(master) scribe@charisLaptop utilities]$ sudo ./installmgr -sc<br>
[ File Bytes:
484 ]<br>
--------------------------------------------------------------------------<br>
Sync'd config file with master remote source list.<br>
<br>
<br>
<br>
[(master) scribe@charisLaptop utilities]$ sudo ./installmgr -r
CrossWire<br>
[ File Bytes:
131843 ]<br>
--------------------------------------------------------------------------<br>
Remote Source Refreshed<br>
<br>
<br>
<br>
[(master) scribe@charisLaptop utilities]$ sudo ./installmgr -ri
CrossWire KJV<br>
[ Total Bytes: 4294269; Completed Bytes:
0 ]<br>
<br>
<br>
Downloading (1 of 7): kjvpref.rtf<br>
[ File Bytes:
70500 ]<br>
--------------------------------------------------------------------------<br>
[ Total Bytes: 4294269; Completed Bytes:
70500 ]<br>
=<br>
<br>
Downloading (2 of 7): nt.bzs<br>
[ File Bytes:
336 ]<br>
--------------------------------------------------------------------------<br>
[ Total Bytes: 4294269; Completed Bytes:
70836 ]<br>
=<br>
<br>
Downloading (3 of 7): nt.bzv<br>
[ File Bytes:
82460 ]<br>
--------------------------------------------------------------------------<br>
[ Total Bytes: 4294269; Completed Bytes:
153296 ]<br>
==<br>
<br>
Downloading (4 of 7): nt.bzz<br>
[ File Bytes:
1756115 ]<br>
--------------------------------------------------------------------------<br>
[ Total Bytes: 4294269; Completed Bytes:
1909411 ]<br>
================================<br>
<br>
Downloading (5 of 7): ot.bzs<br>
[ File Bytes:
480 ]<br>
--------------------------------------------------------------------------<br>
[ Total Bytes: 4294269; Completed Bytes:
1909891 ]<br>
================================<br>
<br>
Downloading (6 of 7): ot.bzv<br>
[ File Bytes:
241150 ]<br>
--------------------------------------------------------------------------<br>
[ Total Bytes: 4294269; Completed Bytes:
2151041 ]<br>
=====================================<br>
<br>
Downloading (7 of 7): ot.bzz<br>
[ File Bytes:
2143228 ]<br>
--------------------------------------------------------------------------<br>
Installed module: [KJV]<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 08/28/2014 01:35 PM, Jon Behrens wrote:<br>
</div>
<blockquote cite="mid:53FF92A4.8060602@crimsonthread.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Still no go.<br>
<br>
I've completely removed everything, gotten a new copy via SVN and
followed<br>
the install instructions included in that distribution.<br>
<br>
Everything goes as expected until I get here:<br>
<br>
Now let's grab some content:<br>
<br>
cd utilities/<br>
sudo ./installmgr -sc<br>
sudo ./installmgr -r CrossWire<br>
sudo ./installmgr -ri CrossWire KJV<br>
<br>
The last command returns:<br>
Remote source [CrossWire] does not make available module [KJV]<br>
<br>
OK - so I follow the instructions later in the install file and
download KJV.zip and<br>
extract it to /usr/share/sword<br>
<br>
I then go to the command line example<br>
<br>
Now lets try it out:<br>
<br>
cd ../examples/cmdline<br>
make<br>
./lookup KJV Jn.3.16<br>
<br>
The last command returns:<br>
Could not find module [KJV]. Available modules:<br>
<br>
This at least tells me that libsword.so is available and working -
it doesn't throw<br>
an exception, just can't find the module.<br>
<br>
As advised below, I set LD_LIBRARY_PATH="/usr/lib" which is where
setup put <br>
libsword.so. Reboot, open a shell and type 'env' to make sure the
path is set. It is.<br>
<br>
Finally, I open MonoDevelop and load up the C# project. Make the
project and try<br>
to run the LookupExample<br>
<br>
I still get the same exception.<br>
<br>
Again, thanks to all who are trying to help.<br>
<br>
<br>
<div class="moz-cite-prefix">On 08/27/2014 11:01 PM, Troy A.
Griffitts wrote:<br>
</div>
<blockquote cite="mid:53FEB7B4.6000904@crosswire.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">:)<br>
<br>
The shim is SWORD's flatapi. I still believe libsword.so is
not found by the bindings. How have you made it available?<br>
It should either be:<br>
installed by the make system. If you used autotools to build,
then: sudo make install<br>
or you need to set your LD_LIBRARY_PATH variable to include a
path which contains libsword.so<br>
<br>
<br>
On 08/27/2014 07:10 PM, Greg Hellings wrote:<br>
</div>
<blockquote
cite="mid:CAHxvOVLVrs12FYTcB4os7BMzxU-a2qb9ep+i4qsLiD3hxiMgZA@mail.gmail.com"
type="cite">
<div dir="ltr">I'm fairly sure that
org_crosswire_sword_SWMgr_new() is a specific thing to the
C# bindings. The appropriate namespace in the C++ library is
"sword::SWMgr::new". The org.crosswire part is left out of
the C++ namespacing. Perhaps there is a shim library that
bridges the gap between the C++ lib and the C# bindings
that's missing?
<div>
<div><br>
</div>
<div>--Greg</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Aug 27, 2014 at 9:07 PM,
Jon Behrens <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jbb@crimsonthread.com" target="_blank">jbb@crimsonthread.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font
face="Helvetica, Arial, sans-serif">Hello again<br>
<br>
I though finding 'libsword.so' would fix the
problem, but not so. Compiling and running<br>
the C# LookupExample in the distribution package
still gives the following error:<br>
<br>
Unhandled Exception:<br>
System.EntryPointNotFoundException:
org_crosswire_sword_SWMgr_new<br>
at (wrapper managed-to-native)
Sword.NativeMethods:org_crosswire_sword_SWMgr_new ()<br>
at Sword.Manager..ctor () [0x00008] in
/raid/swordProject/bindings/csharp/Manager.cs:26 <br>
at Sword.Tests.LookupExample.Lookup (System.String
modName, System.String key) [0x00001] in
/raid/swordProject/bindings/csharp/examples/LookupExample.cs:33
<br>
at Sword.Tests.LookupExample.Main (System.String[]
args) [0x00020] in
/raid/swordProject/bindings/csharp/examples/LookupExample.cs:27
<br>
[ERROR] FATAL UNHANDLED EXCEPTION:
System.EntryPointNotFoundException:
org_crosswire_sword_SWMgr_new<br>
at (wrapper managed-to-native)
Sword.NativeMethods:org_crosswire_sword_SWMgr_new ()<br>
at Sword.Manager..ctor () [0x00008] in
/raid/swordProject/bindings/csharp/Manager.cs:26 <br>
at Sword.Tests.LookupExample.Lookup (System.String
modName, System.String key) [0x00001] in
/raid/swordProject/bindings/csharp/examples/LookupExample.cs:33
<br>
at Sword.Tests.LookupExample.Main (System.String[]
args) [0x00020] in
/raid/swordProject/bindings/csharp/examples/LookupExample.cs:27
<br>
<br>
Since I assume the function '<span
style="color:#444444">org_crosswire_sword_SWMgr_new</span><span
style="color:#444444">()' does in fact exist in
libsword.so, the only thing I can imagine is that
there's a path variable not set somewhere.<br>
<br>
As I mentioned before, I'm a real newby to Linux,
so this may be something obvious to<br>
someone with more experience.<br>
<br>
Thanks for any help<span class="HOEnZb"><font
color="#888888"><br>
<br>
Jon</font></span></span> </font> </div>
<br>
_______________________________________________<br>
sword-devel mailing list: <a moz-do-not-send="true"
href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a moz-do-not-send="true"
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>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sword-devel mailing list: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sword-devel mailing list: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
</body>
</html>