• Advertisement
Sign in to follow this  

[java] Making a binding to a C++ library

This topic is 2410 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to make a binding to the Irrlicht Graphics library, and I happened to notice that both of the outdated librarys used SWIG to generate the bindings to java.

Would it be easy to use SWIG (to generate a binding) or another method/program?

Share this post


Link to post
Share on other sites
Advertisement
I have used SWIG on multiple libraries, and I did not find it easy. I you have a swig.i file, which you should, and you are just trying to update it to use the latest release, that won't be easy, but can be done.
SWIG works well, if that is your concern.

What I have done is to make a Header file that wraps the library, and then tweak my C++ wrapper to be SWIG friendly. If you are doing an entire library that might not be the best solution, but it's and idea.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement