[sword-devel] Greek/Hebrew Reader screenshots

Tobias Klein contact at tklein.info
Sat Jun 26 02:45:15 EDT 2021


Hi Jeff,

> I get a complete build on the sword-build-win32 sword\bindings\csharp\Sword.csproj which includes the NativeMethods class. That class seems to be calls to a libsword.dll which I haven’t been able to locate.

For sword-build-win32 I am using CMake to build sword.

The CMake configuration for the library name looks like this:
ADD_LIBRARY(sword SHARED ${sword_SOURCES})


So I think that’s where the file name sword.dll comes from. Maybe the dll name has been different in other build configurations previously used by the csharp bindings.

What happens if you simply rename sword.dll to libsword.dll?

>  
> I’m unable to build the SWORD project but the reasons change as I correct the problems. My guess is it’s related to the particular VS 2017 configuration on my machine.

Have you tried VS 2019? That’s what I am using on GitHub actions.
Feel free to fork the sword-build-win32 project and play with it via GitHub. It builds automatically each time you change something. Also it automatically generates an archive of the dlls once you generate a release.

Alternatively you could try to work with a clean Windows VM and a fresh installation of the Visual Studio compiler toolchain.

Microsoft provides free Windows 10 VMs here:
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ <https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/>

>  
> Do you have a SWORD dll without dependencies?  This might give me a better idea of what’s happening on my system.  

Fork sword-build-win32. Then make an adjustment in the build_sword.bat removing all library options from the CMake call. Then remove everything but build_sword.bat in build_all.bat and .github/workflows/build.yml.
Once you have pushed those changes and generate a new release via GitHub you will get a sword.dll with no dependencies.

Best regards,
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20210626/939df04e/attachment.html>


More information about the sword-devel mailing list