While it is possible to mix-and-match DLLs from Visual Studio with those
from MinGW or those from other compilers, it is not recommended as it
requires special work during the compiling and linking phase. It's rather
difficult. Thus, it would be easiest on you to build the bindings with the
same compiler and linker that Python is built with (and Python does not, as
yet, support building with MinGW although they are working towards that).
That said, I have no idea if Swig is compatible with Visual Studio, nor if
there is a version available for running on Windows, nor if it would
produce a DLL that would link happily on Windows against Python, nor how to
install a Python module on Windows, nor anything else related to the
building of the bindings on Windows. I am the "pumpkin holder" for the Swig
bindings, though, so if you come across any enhancement that need to be
made to the building of the Sword bindings on Windows, I'd be happy to work
with you to get it incorporated into the trunk. One thing to note - there
are currently only two ways to build the Swig bindings - through autotools
and through CMake. I have tried to build the CMake scripts such that they
will build the engine on Windows, but I don't believe I completely
succeeded from the sounds of it - the last report I heard was that it
didn't quite work. You could either tap into the existing vc++ project file
or work to update and edit the existing CMake scripts which already have
support for the Swig bindings as built-in as they can be.
Other than that, the best I can do is wish you Good Luck!
On Mon, Feb 24, 2014 at 4:33 PM, rj_qgsous_sword <
rj_qgsous_sword at objectmail.com> wrote:
> I would like to make Python bindings to Sword. From reading the
> documentation that comes with Sword, I see that I need to build the entire
> Sword library in order to do this. What would be the recommended compiler
> to use?
> I am running Windows 8.1. I don't have any experience with making SWIG
> bindings, so I'm not sure whether or not I would need to use the same
> version of Visual Studio that Python is compiled with (which, for Python 2,
> is VC2008). If not, my guess would be that I should use a newer version of
> Visual Studio, but I could also use MinGW or anything else that works.
> Also, if I should use Visual Studio, would the Express edition work?
> Thank you.
> -- Timothy
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...