Login  Register

Problem running JOCL on Linux

Posted by Giovanni Idili on Jun 22, 2011; 1:05am
URL: https://forum.jogamp.org/Problem-running-JOCL-on-Linux-tp3093748.html

I am back with yet another beginner question.

I've got a project running Ok on mac and Windows, now I am trying to test it on Linux SUSE (11, Enterprise SP1, 64bit) and I am running into some issues.

I am using the native libraries packaged in jocl-0.9-b13-20110303-linux-i586.7z -- I only need gluegen and jocl so I am using libgluegen-rt.so and libjocl.so (where on mac I was using libgluegen-rt.jnilib and libjocl.dylib).

This is what I get when I run it:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /lib/libjocl.so: /lib/libjocl.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:218)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:51)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:81)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:146)
at com.jogamp.opencl.JOCLJNILibLoader.loadOpenCL(JOCLJNILibLoader.java:46)
at com.jogamp.opencl.CLPlatform$2.run(CLPlatform.java:152)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.opencl.CLPlatform.initialize(CLPlatform.java:149)
at com.jogamp.opencl.CLPlatform.getDefault(CLPlatform.java:181)
at com.jogamp.opencl.CLContext.create(CLContext.java:168)
at com.jogamp.opencl.CLContext.create(CLContext.java:143)
at AlphaHHKernel_Tuning_Test.main(AlphaHHKernel_Tuning_Test.java:48)


Where's the catch?

Any help appreciated!