前提・実現したいこと
processingについての質問です。
3Dを扱うときにP3Dを使いますが次のようなエラーが出てしまいます。
機種はm1 macです。
発生している問題・エラーメッセージ
java.lang.UnsatisfiedLinkError: Can't load library: /Users/xxxx/natives/macosx-universal//gluegen-rt
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1827)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
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.nativewindow.NativeWindowFactory$2.run(NativeWindowFactory.java:185)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.nativewindow.NativeWindowFactory.<clinit>(NativeWindowFactory.java:182)
at com.jogamp.newt.NewtFactory$1.run(NewtFactory.java:68)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.newt.NewtFactory.<clinit>(NewtFactory.java:65)
at processing.opengl.PSurfaceJOGL.initIcons(PSurfaceJOGL.java:498)
at processing.opengl.PSurfaceJOGL.initFrame(PSurfaceJOGL.java:134)
at processing.core.PApplet.initSurface(PApplet.java:11035)
at processing.core.PApplet.runSketch(PApplet.java:10922)
at processing.core.PApplet.main(PApplet.java:10620)
UnsatisfiedLinkError: Can't load library: /Users/xxxx/natives/macosx-universal//gluegen-rt
A library relies on native code that's not available.
Or only works properly when the sketch is run as a 32-bit application.
該当のソースコード
void setup() {
size(640, 480, P3D);
}
void draw() {
background(200);
translate(width/2, height/2, 0);
fill(0, 0, 128);
box(100, 100, 100);
}
あなたの回答
tips
プレビュー