简体   繁体   中英

JogAmp gluegen-rt can't find native library

I'm on OSX 10.7.5, Eclipse 3.8.0, using JDK 1.7. I'm trying to build a project using jzy3d and JogAmp: particularly jogl, gluegen, and gluegen-rt.

I've followed this tutorial for setting up a user library for JOGL in my java project. https://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE

I get this error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /Users/brendengarrison/Documents/workspace/jzy3d-15/natives/macosx-universal//gluegen-rt 
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854) 
    at java.lang.Runtime.load0(Runtime.java:795) 
    at java.lang.System.load(System.java:1062) 
    at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:624) 
    at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63) 
    at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106) 
    at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:487) 
    at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:421) 
    at com.jogamp.common.os.Platform$1.run(Platform.java:317) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at com.jogamp.common.os.Platform.<clinit>(Platform.java:287) 
    at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:147) 
    at org.jzy3d.chart.Settings.detectProfile(Settings.java:30) 
    at org.jzy3d.chart.Settings.<init>(Settings.java:14) 
    at org.jzy3d.chart.Settings.getInstance(Settings.java:47) 
    at org.jzy3d.analysis.AnalysisLauncher.open(AnalysisLauncher.java:17) 
    at org.jzy3d.analysis.AnalysisLauncher.open(AnalysisLauncher.java:13) 
    at Test15.main(Test15.java:18) 

My gluegen-rt-2.3.3.jar, gluegen-2.3.2.jar, and jogl-all-2.3.2.jar are in a folder called /jzy3d-newDependencies, as are my natives: gluegen-rt-natives-macosx-universal.jar and jogl-all-natives-macosx-universal.jar.

I left the natives out of the classpath, as instructed by the tutorial, but I'm not sure if I understood the instructions given that I'm receiving this error message. Where do I need to put the natives so that gluegen-rt can find them?

Since I was using JogAmp 2.3.2, I had to use the updated natives for 2.3.2, which can be downloaded here: http://search.maven.org/#search%7Cga%7C2%7Cjogamp

Jzy3d comes with outdated natives.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM