Sign in to follow this  
LizardGamer

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this