Native libraries [closed]
The Clojure tutorial (http://docs.opencv.org/2.4/doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.html) specifies how to pack the native libraries, using a specific folder structure.
However, I haven't found in the tutorial where and what is this used for, if at all. Only the main library is loaded:
(clojure.lang.RT/loadLibrary org.opencv.core.Core/NATIVE_LIBRARY_NAME)
What about the native ones? How are they extracted from the jar? In Java, you have to do it manually to the temp folder.
This is a basic tutorial of how to use JNI : http://blog.edwards-research.com/2012/04/tutorial-android-jni/
Thanks for the link, but I am referring to the part in the Clojure tutorial where it specifies how to pack the native libraries inside the jar, but doesn't specify a way of loading those. As far as I know, Java cannot load native libraries from within a jar.