Include platform-specific java dependencies (without tanning my hair)

I would like to use Clojure's HDF5 java library . Unfortunately, the usual way to enable java dependencies (i.e., via Leiningen support for Maven repositories) is not available. This is most likely because the HDF5-Java library is a collection of compiled C ++ and Fortran code with JNI support.

I looked at Maven-izing the recent version of HDF5-Java, but did not understand how the versions for a particular platform are processed there, and decided that this was too big a problem. Assuming I'm stuck with using platform-specific cans released by the HDF group, is there a relatively good way to deal with them while continuing to live mostly in a comfortable Leiningen world?

+5
source share
1 answer

I have never tried this myself, but it looks like you should have your own dependencies in Leiningen, packing the HDF5 library into a JAR file, following the directory structure described here , installing it in Maven and adding a regular dependency on this library to project.clj. Leiningen must handle the dirty work of discovering your OS and architecture and including the right parts along the way to the project.

For more information, visit:

http://nakkaya.com/2010/04/05/managing-native-dependencies-with-leiningen/

http://bially.posterous.com/using-jogl-in-your-clojure-project

Clojure, Lein, JavaFx, native fingerprints

+1
source

All Articles