Open HuaRongSAO opened 7 years ago
Looks like you dont have opencl installed on your system
Hello, I have the same problem, but my drivers are already updated :-/
I am facing the exact same issue on a newly set up Ubuntu 16.04 system, all libs are installed as described in README.md. When running make I get this:
cc -c -std=c11 -Wall -pedantic -O2 -o sia-gpu-miner.o sia-gpu-miner.c sia-gpu-miner.c: In function ‘main’: sia-gpu-miner.c:484:2: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations] command_queue = clCreateCommandQueue(context, device_id, 0, &ret); ^ In file included from sia-gpu-miner.c:18:0: /usr/include/CL/cl.h:1359:1: note: declared here clCreateCommandQueue(cl_context /* context */, ^ cc -c -std=c11 -Wall -pedantic -O2 -o network.o network.c cc -o sia-gpu-miner sia-gpu-miner.o network.o -lOpenCL -lcurl /usr/bin/ld: cannot find -lOpenCL collect2: error: ld returned 1 exit status Makefile:23: recipe for target 'sia-gpu-miner' failed make: *** [sia-gpu-miner] Error 1
Managed to fix this with a downgrade to Ubuntu 14.04 where it works as it should.
I had the same error on ubuntu 16.04, and it resolved by following steps given in the following link : [https://askubuntu.com/questions/850281/opencl-on-ubuntu-16-04-intel-sandy-bridge-cpu](OpenCL On ubuntu 16.04, Intel Sandy Bridge CPU)
cc -c -std=c11 -Wall -pedantic -O2 -o network.o network.c cc -o sia-gpu-miner sia-gpu-miner.o network.o -lOpenCL -lcurl /usr/bin/ld: no find -lOpenCL collect2: error: ld returned 1 exit status Makefile:23: recipe for target 'sia-gpu-miner' failed make: *** [sia-gpu-miner] Error 1