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

Started by
1 comment, last by Danny02 12 years, 10 months ago
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?
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.

I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532

i think using JNA is much easier then JNI, so i would only use JNI if performance is a really big concern

This topic is closed to new replies.

Advertisement