Discussion:
[sword-devel] C# binding difficulty
Jon Behrens
2014-08-27 20:40:24 UTC
Permalink
Hello

I'm a Windows developer moving to Linux. I've downloaded the latest
Sword project
via SVN and have finally gotten everything to build and install per the
INSTALL file
in the main directory.

Moving on to the C# bindings, I've gotten the project to build. When I
run the
LookupExample, I get 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

Looking at the code, in NativeMethods.cs, it appears to be looking for
'libsword.so'

That library does not exist on my computer. Could some kind soul please
direct me to
how to build that library or where to download it?

Thanks,
Jon
refdoc at gmx.net ()
2014-08-27 20:52:03 UTC
Permalink
Libsword.so is the compiled binary, so i guess you have it somewhere, but hiding

----- Reply message -----
From: "Jon Behrens" <jbb at crimsonthread.com>
To: <sword-devel at crosswire.org>
Subject: [sword-devel] C# binding difficulty
Date: Wed, Aug 27, 2014 21:40


Hello

I'm a Windows developer moving to Linux. I've downloaded the latest Sword project
via SVN and have finally gotten everything to build and install per the INSTALL file
in the main directory.

Moving on to the C# bindings, I've gotten the project to build. When I run the
LookupExample, I get 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

Looking at the code, in NativeMethods.cs, it appears to be looking for 'libsword.so'

That library does not exist on my computer. Could some kind soul please direct me to
how to build that library or where to download it?

Thanks,
Jon


_______________________________________________
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/6b68aeca/attachment.html>
Greg Hellings
2014-08-27 20:53:12 UTC
Permalink
It also might have a version in its name like "libsword.1.7.3.so" or
"libsword.so.1.7" or something like that.

--Greg
Post by refdoc at gmx.net ()
Libsword.so is the compiled binary, so i guess you have it somewhere, but hiding
----- Reply message -----
From: "Jon Behrens" <jbb at crimsonthread.com>
To: <sword-devel at crosswire.org>
Subject: [sword-devel] C# binding difficulty
Date: Wed, Aug 27, 2014 21:40
Hello
I'm a Windows developer moving to Linux. I've downloaded the latest Sword project
via SVN and have finally gotten everything to build and install per the INSTALL file
in the main directory.
Moving on to the C# bindings, I've gotten the project to build. When I run the
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
Looking at the code, in NativeMethods.cs, it appears to be looking for 'libsword.so'
That library does not exist on my computer. Could some kind soul please direct me to
how to build that library or where to download it?
Thanks,
Jon
_______________________________________________
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
_______________________________________________
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/9164624f/attachment.html>
Daniel Hughes
2014-08-27 21:39:21 UTC
Permalink
Hi,
I wrote the c# bindings. If sword is correctly built and installed
there should be a libsword.so. usually this is a sim link to the one
with the version that Greg Hellings has mentioned.

I vaguely remember that the default build doesn't create a .so file
unless you change a setting. Will try and figure it out for you when I
get home from work tonight.

Cheers,
Daniel
Post by Greg Hellings
It also might have a version in its name like "libsword.1.7.3.so" or
"libsword.so.1.7" or something like that.
--Greg
Post by refdoc at gmx.net ()
Libsword.so is the compiled binary, so i guess you have it somewhere, but hiding
----- Reply message -----
From: "Jon Behrens" <jbb at crimsonthread.com>
To: <sword-devel at crosswire.org>
Subject: [sword-devel] C# binding difficulty
Date: Wed, Aug 27, 2014 21:40
Hello
I'm a Windows developer moving to Linux. I've downloaded the latest Sword project
via SVN and have finally gotten everything to build and install per the INSTALL file
in the main directory.
Moving on to the C# bindings, I've gotten the project to build. When I run the
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
Looking at the code, in NativeMethods.cs, it appears to be looking for 'libsword.so'
That library does not exist on my computer. Could some kind soul please direct me to
how to build that library or where to download it?
Thanks,
Jon
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
Jon Behrens
2014-08-28 01:13:25 UTC
Permalink
Found it - duh. The makefile prints out a configuration. So now I just have
to figure out how to get MonoDevelop to point to it.
It's been 20 years since I messed with make files, so it's a whole new
world.
Thanks to all who replied.
Be blessed,
Jon
Post by Daniel Hughes
Hi,
I wrote the c# bindings. If sword is correctly built and installed
there should be a libsword.so. usually this is a sim link to the one
with the version that Greg Hellings has mentioned.
I vaguely remember that the default build doesn't create a .so file
unless you change a setting. Will try and figure it out for you when I
get home from work tonight.
Cheers,
Daniel
Post by Greg Hellings
It also might have a version in its name like "libsword.1.7.3.so" or
"libsword.so.1.7" or something like that.
--Greg
Post by refdoc at gmx.net ()
Libsword.so is the compiled binary, so i guess you have it somewhere, but hiding
----- Reply message -----
From: "Jon Behrens" <jbb at crimsonthread.com>
To: <sword-devel at crosswire.org>
Subject: [sword-devel] C# binding difficulty
Date: Wed, Aug 27, 2014 21:40
Hello
I'm a Windows developer moving to Linux. I've downloaded the latest Sword project
via SVN and have finally gotten everything to build and install per the INSTALL file
in the main directory.
Moving on to the C# bindings, I've gotten the project to build. When I run the
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
Looking at the code, in NativeMethods.cs, it appears to be looking for 'libsword.so'
That library does not exist on my computer. Could some kind soul please direct me to
how to build that library or where to download it?
Thanks,
Jon
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
Loading...