Login  Register

Re: Problem running JOCL on Linux

Posted by Michael Bien on Jun 22, 2011; 1:24am
URL: https://forum.jogamp.org/Problem-running-JOCL-on-Linux-tp3093748p3093822.html

  if you are running it on a 64bit jvm you will have to use 64bit natives.

64bit -> *-linux-amd64
32bit -> *-linux-i586

amd64 is the old term for x86_64 not for the OpenCL amd sdk :)

regards,
michael

On 06/22/2011 03:05 AM, Giovanni Idili [via jogamp] wrote:

>
> I am back with yet another beginner question.
>
> I've go 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!
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Problem-running-JOCL-on-Linux-tp3093748p3093748.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/