Gr-fosphor. builds OK, throws runtime error

Ubuntu 14.04.
Have updated to gnuradio 3.7.5git-194-g76a271ac, seems to run fine.

I rebuilt / reinstalled gr-fosphor. No problems with the build. The
location of Nvidia’s OpenCL library
changed from Ubuntu 13.10 to 14.04. The cmake command was:

cmake …/
-DOPENCL_LIBRARY=/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1

cmake and make complete successfully.

The QT fosphor block shows up in Gnuradio Companion OK. When trying to
run, I get the following error:

from gnuradio import fosphor
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/init.py”,
line
45, in
from fosphor_swig import *
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/fosphor_swig.py”,
line 28, in
_fosphor_swig = swig_import_helper()
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/fosphor_swig.py”,
line 24, in swig_import_helper
_mod = imp.load_module(’_fosphor_swig’, fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-fosphor-3.7.0git.so.0.0.0:
undefined symbol: clBuildProgram

The version of gr-fosphor (which git tells me is the latest) is:
Revision: 9aea19a
Author: Sylvain M.
Date: 2014-07-24 22:34:07
fosphor: Allow operation without CL/GL sharing extension

Any advice?

– Tom, N5EG

cmake …/ -DOPENCL_LIBRARY=/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1

That’s not correct.

libnvidia-opencl.so.1 is the backend driver. You need to link against
the ICD loader which should be named libOpenCL.so

Cheers,

Sylvain

Thank you, Manaut. That indeed was my problem, it runs fine making
that
change.

gr-fosphor is such an incredibly useful tool, it’s painful to do
without.

– Tom, N5EG

Thank you Sylvain. Apologies for misspelling your name.

– Tom, N5EG