connect a C++ API to Java with SWIG
This project received 2 bids from talented freelancers with an average bid price of $236 USD.Get free quotes for a project like this
Browse Related Skills
Other things people do on Freelancer
Project Budget$30 - $250 USD
We have a C++ API with 3 classes, we have successfully connected to Python using SWIG, this works fine. The API only uses POD and std::strings. When complex objects have to be passed, we serialize them with JSON so it should be straightforward to encode/decode them in Java. Attached you will find the header files and a Python test which exercises the methods we are interested in (about 20).
Now we need to connect it with Java, and translate the Python test to an equivalent Java test.
There is an issue with callbacks: 3 methods exist in a synchronous and in an asynchronous variant, for the asynchronous mode they expose an interface to set up call backs to handle some events. We haven't been able to make these work with Python yet. If you have any idea how to do it in Java, describe your proposed approach and include it in the scope of your bid. If not, you can just connect the synchronous variants and forget about the callbacks.
- SWIG input file (should be very compact and similar to the one for Python)
- Java test code
- build instructions for your preferred development environment
Our preferred development environment is Debian wheezy, and the buildsystem we use is bjam.
On project award, we will supply the implementation so that you can test etc.
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online