I just upgraded from leiningen version 1.5.2 to 2.0.0 and noticed that the native library path no longer seems to be set correctly.
Here is my project file:
(defproject naojure "0.1.0-SNAPSHOT"
:description "Clojure wrapper for Aldebaran Robotics java NAOQI binding. Depends on the Aldebaran jar file being installed in a local repo and the shared library being in the dynamic library load path"
:url "
https://github.com/davesnowdon/naojure"
:repositories {"local" ~(str (.toURI (java.io.File. "maven_repository")))}
:native-path "native"
:dependencies [[org.clojure/clojure "1.4.0"] [com.aldebaran/jnaoqi "1.14.0"]])
The native library is in a folder "native" at the top-level of the project and the corresponding jar in a local repo also contained within the leiningen project.
If I run lein1 repl (I renamed the old leiningen script before upgrading) then I can create instances of native classes from the repl, If I run lein repl (leiningen 2.0.0) then I get the following error:
CompilerException java.lang.UnsatisfiedLinkError: no jnaoqi in java.library.path, compiling:(NO_SOURCE_PATH:1)
Here are the exact values reported by lein version (running on Linux - Fedora Core 14)
Leiningen 1.5.2 on Java 1.6.0_20 OpenJDK 64-Bit Server VM
&
Leiningen 2.0.0 on Java 1.6.0_20 OpenJDK 64-Bit Server VM
I've looked online for issues related to leiningen and native path handling but the bugs I found all related to leiningen 1 and have been supposedly fixed.
Can anyone suggest why the native library is not being located?
thanks
Dave