wbarnha / gr-gmuground

GNU Radio blocks for GMU's ECE/VSE Satellite Communications Ground Station
GNU General Public License v3.0
6 stars 2 forks source link

setup.sh incompatible with gr-fosphor dependencies #20

Closed wbarnha closed 4 years ago

wbarnha commented 4 years ago
OpenCL required to compile gr-fosphor

-- Configuring incomplete, errors occurred!
See also "/home/stars/gr-fosphor/build/CMakeFiles/CMakeOutput.log".
See also "/home/stars/gr-fosphor/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
gcc -Wall -Werror -O2 `pkg-config freetype2 glfw3 --cflags` -g   -c -o main.o main.c
gcc -Wall -Werror -O2 `pkg-config freetype2 glfw3 --cflags` -g   -c -o resource.o resource.c
./mkresources.py fft.cl display.cl cmap_simple.glsl cmap_bicubic.glsl cmap_fallback.glsl DroidSansMonoDotted.ttf > resource_data.c
gcc -Wall -Werror -O2 `pkg-config freetype2 glfw3 --cflags` -g   -c -o resource_data.o resource_data.c
gcc -Wall -Werror -O2 `pkg-config freetype2 glfw3 --cflags` -g   -c -o axis.o axis.c
gcc -Wall -Werror -O2 `pkg-config freetype2 glfw3 --cflags` -g   -c -o cl.o cl.c
In file included from cl.c:36:0:
cl_platform.h:40:11: fatal error: CL/cl.h: No such file or directory
 # include <CL/cl.h>
           ^~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'cl.o' failed
make: *** [cl.o] Error 1

Looks like missing OpenCL causes this bug.

wbarnha commented 4 years ago

Additionally, this creates write-protected directories. These directories should probably be removed by the program.

wbarnha commented 4 years ago

Added a few packages to be installed by setup.sh, such as ocl-icd-opencl-dev, opencl-clhpp-headers, and opencl-headers, fixed the issue. Will test further to ensure no further issues arise.

wbarnha commented 4 years ago

It seems a manual installation of the OpenCL libraries on some distros will be necessary. However, this should be automated for Ubuntu 19.04+ since Intel's apt packages directly support it.