Wednesday 15 April 2015

java - Wrapping C++ code with SWIG to be used in Processing.org -



java - Wrapping C++ code with SWIG to be used in Processing.org -

i'd utilize c++ libraries in processing project not sure how (i newbie in processing , java).

the way proceeded using swig create shared library (.so) can loaded (using system.load command) in java application in same way explained in tutorial:

http://www.swig.org/tutorial.html

this might super basic question, uncertainty (i have not been able find solution in google or stackoverflow) how import library processing?

using illustration provided in link, neither:

# compiled library .so rather .dll, using mac os x system.load("/path/to/example.so")

nor

# putting example.so file in library folder system.loadlibrary("example")

seem import library. when seek like:

double var = example.fact(5);

processing complains saying "cannot find named example". help me this? hint or resource explains on how import .so libraries in processing appreciated.

many thanks!

@tryskele

java c++ processing swig

No comments:

Post a Comment