<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm experiencing trouble installing gr-fosphor on my new laptop using ubuntu 18.04 LTS<br></div><div>Fist installed opengl/cl drivers, gnu-radio over the package manager, and gr-fosphor also with package manager,</div><div><br></div><div>After that tried building gr-fosphor from source like described in the osmocom wiki.</div><div>Also tried fresh ubuntu install with gnuradio an gr-fosphor using pybombs.this seems to fail the same.</div><div><br></div><div>Although my old laptop runs fosphor (3.7.13.4) fine under just intel's openclas well as my old workstation with just nvidia fosphor, (3.8.0.0)<br></div><div>This new install won't with either  combination i try.</div><div></div><div><div></div><div><br></div><div>who can help me out or point me in the right direction solving this?</div><div><br></div><div>Thanks in advance, Paul</div></div><div><br></div><div><br></div><div>Here is a description of what i did on the last try :<br></div><div><br></div><div><br></div><div><br></div><div>Installed ubuntu 18.04 Lts Desktop >> Default settings, 3th party drivers enabled.<br><br>Update:<br><i>sudo apt-get update<br>sudo apt-get upgrade<br></i><br>Installed nvidia driver 4.30 on: "Additional Drivers" tab in "Software & Updates":<br><i>software-properties-gtk</i><br>(Apply and reboot)<br><br>Installed gnuradio via package manager:<br><i>sudo apt install gnuradio</i><br><br>Installed clinfo / glxinfo:<br><i>sudo apt install clinfo mesa-utils</i><br>     <br>Download and install latest intel opencl runtime:<br><i>sudo apt-get install lsb-core<br>wget <a href="http://registrationcenter-download.intel.com/*****/****/**/****/**/l_opencl_p_18.1.0.015.tgz">http://registrationcenter-download.intel.com/*****/****/**/****/**/l_opencl_p_18.1.0.015.tgz</a><br>tar xvzf l_opencl_p_18.1.0.015.tgz <br>cd l_opencl_p_18.1.0.015/<br>sudo ./install_GUI.sh</i><br>(Follow steps with Defaults)<br><br>Check clinfo:<br><i>clinfo<br><br>    Number of platforms                               2<br>      Platform Name                                   NVIDIA CUDA<br>         Platform Vendor                                 NVIDIA Corporation<br>   Platform Version                                OpenCL 1.2 CUDA 10.2.120<br>     Platform Profile                                FULL_PROFILE<br>         Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer<br>   Platform Extensions function suffix             NV<br><br>   Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications<br>    Platform Vendor                                 Intel(R) Corporation<br>         Platform Version                                OpenCL 2.1 LINUX<br>     Platform Profile                                FULL_PROFILE<br>         Platform Extensions                             cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint <br>          Platform Host timer resolution                  1ns<br>         Platform Extensions function suffix             INTEL</i><br><br>Check glxinfo:<br><i>glxinfo</i><br>        <i>name of display: :0<br>  display: :0  screen: 0<br>       direct rendering: Yes<br> server glx vendor string: NVIDIA Corporation<br>  server glx version string: 1.4<br>        server glx extensions:<br>            GLX_ARB_context_flush_control, GLX_ARB_create_context, <br>     GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, <br>           GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, <br>         GLX_ARB_multisample, GLX_EXT_buffer_age, <br>           GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, <br>     GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_libglvnd, <br>        GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, <br>      GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, <br>           GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, <br>          GLX_NV_robustness_video_memory_purge, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, <br>         GLX_SGI_swap_control, GLX_SGI_video_sync<br>        client glx vendor string: NVIDIA Corporation<br>  client glx version string: 1.4<br>        client glx extensions:<br>            GLX_ARB_context_flush_control, GLX_ARB_create_context, <br>     GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, <br>           GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, <br>         GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, <br>         GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, <br>     GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, <br>           GLX_EXT_import_context, GLX_EXT_stereo_tree, GLX_EXT_swap_control, <br>         GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, <br>            GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_buffer, <br>            GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, <br>          GLX_NV_multisample_coverage, GLX_NV_present_video, <br>         GLX_NV_robustness_video_memory_purge, GLX_NV_swap_group, <br>           GLX_NV_video_capture, GLX_NV_video_out, GLX_SGIX_fbconfig, <br>         GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync<br>      GLX version: 1.4<br>      GLX extensions:<br>           GLX_ARB_context_flush_control, GLX_ARB_create_context, <br>     GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, <br>           GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, <br>         GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, <br>         GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, <br>     GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_stereo_tree, <br>     GLX_EXT_swap_control, GLX_EXT_swap_control_tear, <br>           GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, <br>           GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, <br>          GLX_NV_robustness_video_memory_purge, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, <br>         GLX_SGI_swap_control, GLX_SGI_video_sync<br>        Memory info (GL_NVX_gpu_memory_info):<br>     Dedicated video memory: 2048 MB<br>     Total available memory: 2048 MB<br>     Currently available dedicated video memory: 1710 MB<br>     OpenGL vendor string: NVIDIA Corporation<br>      OpenGL renderer string: GeForce MX250/PCIe/SSE2<br>       OpenGL core profile version string: 4.6.0 NVIDIA 430.26<br>       OpenGL core profile shading language version string: 4.60 NVIDIA<br>      OpenGL core profile context flags: (none)<br>     OpenGL core profile profile mask: core profile<br>        OpenGL core profile extensions:<br>           GL_AMD_multi_draw_indirect, GL_AMD_sea........................</i><br><br><br>Run volk to create profile:<br><i>      volk_profile</i><br><br>Execute a gnuradio-companion flowgraph (FastNoiseSource>Throttle>FosphorSink):<br><i><br>     GLFW No Gui error:<br>            Executing: /usr/bin/python -u /home/paul/top_block.py<br><br>               Press Enter to quit: [+] Selected device: GeForce MX250<br>               [!] CL Error (-5, /build/gr-fosphor-D4UWhK/gr-fosphor-3.7.0.2.7b6b996/lib/fosphor/cl.c:480): Unable to share spectrum VBO into OpenCL context<br><br>               >>> Done</i><br><br> QT Gui error:<br>         <i>Executing: /usr/bin/python -u /home/paul/top_block.py<br><br>                File "/home/paul/top_block.py", line 75<br>              self.fosphor_qt_sink_c_0 = Template error: #set $win = 'self._%s_win'%$id<br>                                                           ^<br>           SyntaxError: invalid syntax<br><br>         >>> Done (return code 1</i>)<br><br><br>       WX Gui error:<br>         <i>Executing: /usr/bin/python -u /home/paul/top_block.py<br><br>              Warning: failed to XInitThreads()<br>             [xcb] Unknown request in queue while dequeuing<br>                [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called<br>                [xcb] Aborting, sorry about that.<br>             python: ../../src/xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.<br><br>               >>> Done</i><br><br><br>Install from source:<br><br>Install GnuRadio 3.7.x build dependencies:<br><i>sudo apt install cmake git g++ libboost-all-dev python-dev python-mako python-numpy python-wxgtk3.0 python-sphinx python-cheetah swig libzmq3-dev libfftw3-dev libgsl-dev libcppunit-dev doxygen libcomedi-dev libqt4-opengl-dev python-qt4 libqwt-dev libsdl1.2-dev libusb-1.0-0-dev python-gtk2 python-lxml pkg-config python-sip-dev<br></i><br>Install GLFW build dependencies:<br><i>sudo apt-get install git cmake xorg-dev libglu1-mesa-dev</i><br><br>Install glfw from source:<br><i>git clone <a href="https://github.com/glfw/glfw">https://github.com/glfw/glfw</a><br>cd glfw<br>mkdir build<br>cd build<br>cmake ../ -DBUILD_SHARED_LIBS=true<br>make<br>sudo make install<br>sudo ldconfig</i><br><br>Install gr-fosphor build dependencies:<br><i>sudo apt-get install nvidia-opencl-dev opencl-headers<br>sudo apt-get install nvidia-modprobe<br>sudo apt-get install gnuradio-dev opencl-headers libboost-system-dev libboost-thread-dev</i><br><br>Install gr-fosphor from source:<br><i>git clone git://<a href="http://git.osmocom.org/gr-fosphor">git.osmocom.org/gr-fosphor</a><br>cd gr-fosphor<br>cd build<br>cmake ../<br>make<br>sudo make install<br>sudo ldconfig</i></div><div><br></div><div><br>After reading <a href="https://lists.gnu.org/archive/html/discuss-gnuradio/2018-08/msg00019.html">https://lists.gnu.org/archive/html/discuss-gnuradio/2018-08/msg00019.html</a> and <a href="https://lists.osmocom.org/pipermail/osmocom-sdr/2017-June/001594.html">https://lists.osmocom.org/pipermail/osmocom-sdr/2017-June/001594.html</a> :<br>nano gr-fosphor/lib/fosphor/private.h<br><br>Change: #define FLG_FOSPHOR_USE_CLGL_SHARING       (0<<0) :<br><br>recompile and install:<br><i>cd gr-fosphor<br>cd build<br>cmake ../<br>make<br>sudo make install<br>sudo ldconfig</i><br><br>Tried (0<<0) (1<<0) (1<<1) (0<<1) All combinations keep giving the same errors as before.</div><div>l<br></div><div><br></div><div><br></div></div>