Thank you Greg.

As to icu-sword, the instructions on the wiki say to download it from site.icu-project.org. If there's a Sword specific version, perhaps the wiki could be updated to point there? Or if you can give me
the URL, I'll include it in my write up.

As to libcurl, I'm using VS2013 which apparently doesn't include the compiler version in the library name. In any case, the note to check the actual name of the library in the linker should probably
stay.

The syntax changes to the flatapi are driven by differences in MS C++ syntax. They're specific to Windows and probably are of no general interest to the broader Linux community.

In his NativeMethods class, Troy has a call to org_crosswire_sword_SWMgr_newWithPath, but that function is not declared or defined in flatapi. I just went ahead and implemented it. Whether
that should be a permanent change is, of course, his call.

I did rewicker the C# project so its layout made a bit more sense to me and so that it might be easier for cross platform development. If anyone is interested, I would be happy to include those
project files.

Finally, how would I go about submitting an entry to the wiki?

Jon

On 9/22/2014 2:36 PM, Greg Hellings wrote:
Jon,

It most definitely would be wiki material. Are there any code changes you needed to make? Patch files? If so, you can submit those as well for inclusion. A few comments about the steps you're following:

Changing out icu-sword for icu and the change to libcurl shouldn't be necessary. If you followed the directions in the wiki you should have built icu-sword from the Sword repository instead of the pre-distributed version of ICU from upstream. The change to libcurl appears to be specific to your version of Visual Studio. I've noticed that some versions don't include vcXX as well.

The other changes might be ones which should be incorporated into the codebase. Troy would need to comment more about the changes you're proposing to flatapi.cpp/h.

Glad to hear you've gotten it working now!

--Greg

On Mon, Sep 22, 2014 at 3:28 PM, Jon Behrens <j...@crimsonthread.com <mailto:j...@crimsonthread.com>> wrote:

    I've finally gotten the C# binding examples to run both on Linux
    and Windows. This means,
    of course, that one should be able to write C# code on either
    platform and have the resulting
    application also run on either. (At least at this point the C#
    examples packaged with the Sword
    distribution run on both platforms using identical C# code.)

    I've written a tutorial outlining the steps needed to accomplish
    this. That's attached as a
    text file. Would it be appropriate to add this to the developer's
    wiki?

    Be blessed,
    Jon


    _______________________________________________
    sword-devel mailing list: sword-devel@crosswire.org
    <mailto:sword-devel@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to