[sword-devel] C# runtime problem
Troy A. Griffitts
scribe at crosswire.org
Wed Aug 27 22:01:40 MST 2014
:)
The shim is SWORD's flatapi. I still believe libsword.so is not found
by the bindings. How have you made it available?
It should either be:
installed by the make system. If you used autotools to build, then:
sudo make install
or you need to set your LD_LIBRARY_PATH variable to include a path which
contains libsword.so
On 08/27/2014 07:10 PM, Greg Hellings wrote:
> 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?
>
> --Greg
>
>
> On Wed, Aug 27, 2014 at 9:07 PM, Jon Behrens <jbb at crimsonthread.com
> <mailto:jbb at crimsonthread.com>> wrote:
>
> Hello again
>
> I though finding 'libsword.so' would fix the problem, but not so.
> Compiling and running
> the C# LookupExample in the distribution package still gives the
> following error:
>
> Unhandled Exception:
> System.EntryPointNotFoundException: org_crosswire_sword_SWMgr_new
> at (wrapper managed-to-native)
> Sword.NativeMethods:org_crosswire_sword_SWMgr_new ()
> at Sword.Manager..ctor () [0x00008] in
> /raid/swordProject/bindings/csharp/Manager.cs:26
> at Sword.Tests.LookupExample.Lookup (System.String modName,
> System.String key) [0x00001] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:33
> at Sword.Tests.LookupExample.Main (System.String[] args)
> [0x00020] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:27
> [ERROR] FATAL UNHANDLED EXCEPTION:
> System.EntryPointNotFoundException: org_crosswire_sword_SWMgr_new
> at (wrapper managed-to-native)
> Sword.NativeMethods:org_crosswire_sword_SWMgr_new ()
> at Sword.Manager..ctor () [0x00008] in
> /raid/swordProject/bindings/csharp/Manager.cs:26
> at Sword.Tests.LookupExample.Lookup (System.String modName,
> System.String key) [0x00001] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:33
> at Sword.Tests.LookupExample.Main (System.String[] args)
> [0x00020] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:27
>
> Since I assume the function 'org_crosswire_sword_SWMgr_new()' does
> in fact exist in libsword.so, the only thing I can imagine is that
> there's a path variable not set somewhere.
>
> As I mentioned before, I'm a real newby to Linux, so this may be
> something obvious to
> someone with more experience.
>
> Thanks for any help
>
> Jon
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> <mailto:sword-devel at crosswire.org>
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
>
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140827/80d2f68c/attachment.html>
More information about the sword-devel
mailing list