make errors with Nivdia OpenCL samples

Hello

I have downloaded some of the Nvidia OpenCL samples available on website for Linux, and when I tried to run make command in the appropriate folder; it gives me this error with every sample:

/usr/bin/ld: cannot find -loclUtil_x86_64
/usr/bin/ld: cannot find -lshrutil_x86_64

The complete output from the make command is however like this:

cc1plus: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from …/…/…//OpenCL//common//inc/CL/opencl.h:44:0,
from …/…/…//OpenCL//common//inc/oclUtils.h:26,
from inc/oclConvolutionSeparable_common.h:16,
from src/main.cpp:12:
…/…/…//OpenCL//common//inc/CL/cl_gl_ext.h:38:4: warning: “/" within comment [-Wcomment]
cc1plus: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from …/…/…//OpenCL//common//inc/CL/opencl.h:44:0,
from …/…/…//OpenCL//common//inc/oclUtils.h:26,
from inc/oclConvolutionSeparable_common.h:16,
from src/oclConvolutionSeparable_gold.cpp:12:
…/…/…//OpenCL//common//inc/CL/cl_gl_ext.h:38:4: warning: "/
” within comment [-Wcomment]
cc1plus: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from …/…/…//OpenCL//common//inc/CL/opencl.h:44:0,
from …/…/…//OpenCL//common//inc/oclUtils.h:26,
from src/oclConvolutionSeparable_launcher.cpp:12:
…/…/…//OpenCL//common//inc/CL/cl_gl_ext.h:38:4: warning: “/*” within comment [-Wcomment]
/usr/bin/ld: cannot find -loclUtil_x86_64
/usr/bin/ld: cannot find -lshrutil_x86_64
collect2: ld returned 1 exit status
make: *** […/…/…//OpenCL//bin//linux/release/oclConvolutionSeparable] Error 1

What am I missing that I can not run these samples? I have successfully installed Nvidia, AMD and Intel SDKs and my other OpenCL programs run successfully using these SDKs. Any help?

You need to run `make’ in NVIDIA_GPU_Computing_SDK/OpenCL directory. It will build the missing library in common/lib/ and it will put the compiled examples in bin.