We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › Processing wrapper for C++ library
Page Index Toggle Pages: 1
Processing wrapper for C++ library (Read 1571 times)
Processing wrapper for C++ library
Apr 4th, 2010, 5:16pm
 
Dear all,

I'm a new user of Processing.
I wrote a C++ library for Mac OSX.
My goal would be to take advantage of Processing for use this library under a Web browser.

I've never ported a C++ library into Java before.
My question is: does is exist a straightforward way to use my library from Processing? Does someone already try to do something like that?

Thank you in advance for any help.

Best,
Bruno

Re: Processing wrapper for C++ library
Reply #1 - Apr 5th, 2010, 1:44am
 
You can wrap your C++ library using JNI or JNA.
But then it would be harder to use it in a Web browser (security issue, portability issue, etc.).
Re: Processing wrapper for C++ library
Reply #2 - Apr 25th, 2010, 12:48pm
 
Hi,

somehow that's what I did with proscene: http://code.google.com/p/proscene/

Give it a try and then you may contact me...

All I can say by now is that if you have C++ skills, most likely you will find that porting your library to java is both easy and fun.

Cheers,

-jp
Page Index Toggle Pages: 1