java - Cannot load native libOpenCL.so library from Maven resource -


i'm getting unsatisfied link errors when trying use jocl. error typical unsatisfied link error:

stack trace attempt load library resource: java.lang.unsatisfiedlinkerror: not initialize native library. implementation library 'libopencl.so' not loaded 

it goes on that:

could not load libopencl.so, error libopencl.so: cannot open shared object file: no such file or directory 

i tried adding resource maven via:

<build>     <sourcedirectory>src/main/scala</sourcedirectory>     <testsourcedirectory>src/test/scala</testsourcedirectory>     <resources>         <resource>             <filtering>false</filtering>             <directory>/opt/amdappsdk-3.0-0-beta/lib/x86_64</directory>             <includes>                 <include>libopencl.so</include>             </includes>         </resource>     </resources>     ... 

as disclaimer, libopencl.so soft link -> libopencl.so.1, don't know if that'll mess things up. anyway, checked file name , path several times, file there. how can add lib class path?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -