cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

xpam24
Journeyman III

libOpenCL.so: cannot open shared object file Ubuntu 10.04

Hi all,

 

I´m trying to run an application with the lastest SDK in a Linux Ubuntu 10.04 in 32 bits and i have this error:

 

./oclHashcat32.bin: error while loading shared libraries: libOpenCL.so: cannot open shared object file: No such file or directory

My export is:

declare -x ATISTREAMSDKROOT="/usr/share/ati-sdk"

declare -x ATISTREAMSDKSAMPLESROOT="/usr/share/ati-sdk"

declare -x LD_LIBRARY_PATH="/usr/share/ati-sdk/lib/x86"

The dir /usr/share/ati-sdk is.:

pepito@deadhouse:/usr/share/ati-sdk$ ls -l
total 148
-rw-r--r-- 1 pepito pepito 61562 2010-12-07 01:42 ATI_Stream_SDK_Installation_
Notes.pdf
drwxr-xr-x 3 pepito pepito  4096 2010-12-07 01:42 bin
drwxr-xr-x 3 pepito pepito  4096 2010-12-07 01:42 docs
drwxr-xr-x 3 pepito pepito  4096 2011-04-03 22:18 etc
-rwxr-xr-x 1 pepito pepito   566 2010-12-07 01:42 glut_notice.txt
-rw-r--r-- 1 pepito pepito   213 2010-12-07 01:42 icd-registration.tgz
drwxr-xr-x 5 pepito pepito  4096 2010-12-07 01:42 include
drwxr-xr-x 4 pepito pepito  4096 2010-12-07 01:42 lib
-rwxr-xr-x 1 pepito pepito  3169 2010-12-07 01:42 LICENSE-llvm.txt
-rwxr-xr-x 1 pepito pepito 35567 2010-12-07 01:42 LICENSE-mingw.txt
drwxr-xr-x 2 pepito pepito  4096 2010-12-07 01:42 make
-rwxr-xr-x 1 pepito pepito   135 2010-12-07 01:42 Makefile
drwxr-xr-x 4 pepito pepito  4096 2010-12-07 01:42 samples
drwxr-xr-x 3 pepito pepito  4096 2011-04-03 23:29 TempSDKUtil
pepito@deadhouse:/usr/share/
ati-sdk$

pepito@deadhouse:/etc/OpenCL/vendors$ ls
atiocl32.icd  atiocl64.icd
pepito@deadhouse:/etc/OpenCL/
vendors$

After i create the var is necesary to do a make or something else?

Or what should i do?

 

Regards,

0 Likes
3 Replies
fox_alan
Journeyman III

Hi,

What I did was:

1. create a OpenCL.conf inside your /etc/ld.so.conf.d/

write the following inside your your OpenCL.conf:

"/usr/share/ati-sdk/lib/x86"

save and close the editor

type: ldconfig in your terminal

 

hope that helps

0 Likes

install my packages for ubuntu. and check ldd ./oclHashcat32.bin for which libOpenCl.so it search

0 Likes
xpam24
Journeyman III

Hi, thanks a lot fox_alan with that the software found the lib, but i had some troubles so i installed the package from nou y all works now

Great work Nou and thanks for the answer fox_alan

0 Likes