-
Hi I'm tipping my tow into the water and trying to see if I could make a start of calling some OpenCascade (OCC) methods from Java using JavaCPP. I've managed to scrape together something that compiles but does not load (UnsatisfiedLinkError). I have hard time finding a description of how to the linking and loading is controlled in by/in/with JavaCPP. Is that documented somewhere? Specifically: OCC has thousands of header files, on my machine at How do I tell JavaCPP about these libraries and how do I load them in Java at runtime? For trivial examples it seems to work by magic but for anything more complex I stumped. Looking further down the road I would not like to link to libaries at cheers Kusti |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Please start here and let me know if you have any questions: https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes |
Beta Was this translation helpful? Give feedback.
-
Thanks I've read that but I find that a bit implicit and with other hurdles a noob faces it is difficult to know if one is on the right track or not. For example I created the following (see end of post). I pressumed that
this would link my library to refer to Is there anything else I need to do to make my code library load the native libraries? Unfortunately I cannot test this as I've yet not found a simple enough header in OpenCascade that would not make JavaCPP choke and which would contain a simple function I can trivially call.
|
Beta Was this translation helpful? Give feedback.
Thanks I've read that but I find that a bit implicit and with other hurdles a noob faces it is difficult to know if one is on the right track or not.
For example I created the following (see end of post).
I pressumed that
this would link my library to refer to
/usr/local/lib/libTKernel.dylib
, is that correct?Is there anything else I need to do to make my code library load the native libraries?
Unfortunately I cannot test this as I've yet not found a simple enough header in OpenCascade that would not make JavaCPP choke and which would contain a simple function I can trivially call.