simondlevy / BreezySLAM

Simple, efficient, open-source package for Simultaneous Localization and Mapping
GNU Lesser General Public License v3.0
758 stars 251 forks source link

How to run java examples on OSX? #15

Open jabrena opened 7 years ago

jabrena commented 7 years ago

Hi,

I followed the documentation but only I could run Python examples. With Java, I receive the following error:

 examples git:(master) ✗ make javatest                        
java -classpath ../java:. -Djava.library.path=../java/edu/wlu/cs/levy/breezyslam/algorithms:../java/edu/wlu/cs/levy/breezyslam/components Log2PGM \
         exp2 0 9999
Loading data from exp2.dat ... 
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jnibreezyslam_algorithms in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at edu.wlu.cs.levy.breezyslam.algorithms.RMHCSLAM.<clinit>(RMHCSLAM.java:36)
        at Log2PGM.<init>(Log2PGM.java:202)
        at Log2PGM.main(Log2PGM.java:330)
make: *** [javatest] Error 1
➜  examples git:(master) ✗ A

Any help?