<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 3:48 PM, R Johnson <span dir="ltr"><<a href="mailto:ps16thypresenceisfullnessofjoy@gmail.com" target="_blank">ps16thypresenceisfullnessofjoy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, Greg and Ben.<div> </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">If we could get that working, it would be great! Unfortunately, I don't have any experience with CMake either (in fact, I had never heard of it until I started trying to build Sword). But I'm willing to learn, and will try to do what I can.<br>
</div>
<br>
Following the instructions in some of the Sword README files, I was successfully able to create a VS2010 project for Sword with CMake (with the argument -DSWORD_BINDINGS="Python" added). But when I tried to build the Visual Studio project that it created, I got several errors. The output from the attempted build was 1625 lines, but many of them were not fatal errors, just warnings. I used a regex to remove all the warnings, and have attached the resulting file.<br>
<br>
It appears that the problem is that two header files cannot be found: 'dirent.h' and 'inttypes.h'. As far as I can tell, the former is in the Sword repository, but the latter is not (but is mentioned, along with HAVE_INTTYPES_H, in '<a href="http://config.h.in" target="_blank">config.h.in</a>' in the 'include' directory). The fatal errors that I got afterwards are likely caused by the previous builds failing, I think. Perhaps the problem could be fixed by simply adding these files to the correct directory?<br>
</blockquote><div><br></div><div>dirent.h is present in most Linux/Unix environments but is absent in windows environments. There is an appropriate flag we will need to enable in CMakeLists.txt to tell SWORD to use the bundled dirent.h file. I believe it's just a matter of setting the appropriate include directory when building with MSVC (dirent.h is available when cross-compiling from MinGW but that doesn't really help the MSVC/Python case).<br>
<br></div><div>I'll have to look into inttypes.h - it's probably an issue with finding the appropriate compiler flags to set. I know that Sword builds with and supports MSVC as there is a native MSVC build file that works fine with VS2010. So it's just a matter of garnering from it to figure out what CMake needs to do.<br>
<br></div><div>--Greg<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also, since the C# project solution file is unmaintained, do you think it would be a good idea to remove it from the repository? If that was done, it wouldn't cause confusion for other Sword newbies in the future like it did me.<br>
<br>
Thank you for your help.<br>
<br>
-- Timothy<br>
<br>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a 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></div>