Project

General

Profile

Bug #3817

Unable to use fosphor display on Ubuntu 18.10

Added by gravytrain21 about 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/26/2019
Due date:
% Done:

0%

Resolution:
Spec Reference:

Description

I hope this is the right place to ask. I went through both the gr-osmosdr and gr-fosphor install processes. The one hang up I had was with installing opencl, which was solved by following the instructions listed here https://askubuntu.com/questions/850281/opencl-on-ubuntu-16-04-intel-sandy-bridge-cpu

I'm running this on an intel machine (i5 8250U, 620 Kabylake GT2 graphics)

Output from trying to run 'osmocom_fft -F':

$ osmocom_fft -F
gr-osmosdr v0.1.4-127-g4d83c606 (0.1.5git) gnuradio 3.7.13.4
built-in source types: file fcd rtl_tcp hackrf rfspace redpitaya
Using HackRF One with firmware git-1b95b2e
Traceback (most recent call last):
File "/usr/local/bin/osmocom_fft", line 850, in <module>
main ()
File "/usr/local/bin/osmocom_fft", line 846, in main
app = stdgui2.stdapp(app_top_block, "osmocom Spectrum Browser", nstatus=1)
File "/usr/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 46, in init
wx.App.__init__ (self, redirect=False)
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_core.py", line 8628, in init
self._BootstrapApp()
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_core.py", line 8196, in BootstrapApp
return _core
.PyApp__BootstrapApp(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File "/usr/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 76, in init
self.panel = stdpanel (self, self, top_block_maker)
File "/usr/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 98, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File "/usr/local/bin/osmocom_fft", line 228, in init
from gnuradio import fosphor
File "/usr/lib/python2.7/dist-packages/gnuradio/fosphor/__init__.py", line 27, in <module>
File "/usr/lib/python2.7/dist-packages/gnuradio/fosphor/fosphor_swig.py", line 17, in <module>
File "/usr/lib/python2.7/dist-packages/gnuradio/fosphor/fosphor_swig.py", line 16, in swig_import_helper
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
import(name)
ImportError: No module named _fosphor_swig

Output from fosphor install:

$ cmake ..
-- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- system
-- thread
-- chrono
-- date_time
-- atomic
CMake Warning (dev) at /usr/share/cmake-3.12/Modules/FindOpenGL.cmake:270 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:
OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so
and GLVND libraries for OpenGL and GLX:
OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
CMakeLists.txt:97 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'glfw3'
-- Found glfw3, version 3.3.0
-- Found GLFW3: /usr/local/include, /usr/local/lib/libglfw.so
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.7", minimum required is "4.2.0")
Checking for GNU Radio Module: RUNTIME
-- Checking for module 'gnuradio-runtime'
-- Found gnuradio-runtime, version 3.7.13 * INCLUDES=/usr/include * LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/liblog4cpp.so
-- Found GNURADIO_RUNTIME: /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/liblog4cpp.so
GNURADIO_RUNTIME_FOUND = TRUE
Checking for GNU Radio Module: FFT
-- Checking for module 'gnuradio-fft'
-- Found gnuradio-fft, version 3.7.13 * INCLUDES=/usr/include * LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-fft.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/liblog4cpp.so
-- Found GNURADIO_FFT: /usr/lib/x86_64-linux-gnu/libgnuradio-fft.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/liblog4cpp.so
GNURADIO_FFT_FOUND = TRUE
-- Checking for module 'cppunit'
-- Found cppunit, version 1.14.0
-- Found CPPUNIT: /usr/lib/x86_64-linux-gnu/libcppunit.so;dl
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen missing components: dot
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.15+", minimum required is "2")
--
-- Checking for module SWIG
-- Found SWIG version 3.0.12.
-- Found SWIG: /usr/bin/swig3.0
--
-- The build system will automatically enable all components.
-- Use DENABLE_DEFAULT=OFF to disable components by default.
-

-- Configuring Python support...
-- Dependency PYTHONLIBS_FOUND = TRUE
-- Dependency SWIG_FOUND = TRUE
-- Enabling Python support.
-- Override with DENABLE_PYTHON=ON/OFF
-

-- Configuring GLFW support...
-- Dependency GLFW3_FOUND = TRUE
-- Enabling GLFW support.
-- Override with DENABLE_GLFW=ON/OFF
-

-- Configuring QT support...
-- Dependency QT_FOUND = TRUE
-- Enabling QT support.
-- Override with DENABLE_QT=ON/OFF
-

-- Configuring WX support...
-- Dependency PYTHONLIBS_FOUND = TRUE
-- Dependency SWIG_FOUND = TRUE
-- Dependency ENABLE_PYTHON = ON
-- Enabling WX support.
-- Override with DENABLE_WX=ON/OFF
-
Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.15", minimum required is "2")
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success
--
-- ######################################################
-- # Gnuradio enabled components
-- ######################################################
-- * Python
-- * GLFW
-- * QT
-- * WX
--
-- ######################################################
-- # Gnuradio disabled components
-- ######################################################
--
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/person/repos/gr-fosphor/build

person@machine:~/repos/gr-fosphor/build$ make
Scanning dependencies of target gnuradio-fosphor_autogen
[ 2%] Automatic MOC for target gnuradio-fosphor
[ 2%] Built target gnuradio-fosphor_autogen
[ 5%] Generating fosphor/resource_data.c
Scanning dependencies of target gnuradio-fosphor
[ 8%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/axis.c.o
/home/jacob/repos/gr-fosphor/lib/fosphor/axis.c: In function ‘freq_axis_build’:
/home/jacob/repos/gr-fosphor/lib/fosphor/axis.c:124:34: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
sprintf(fx->abs_fmt, "%%.%dlf%s", y, prefix);
^
In file included from /usr/include/stdio.h:873,
from /home/jacob/repos/gr-fosphor/lib/fosphor/axis.c:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 6 and 17 bytes into a destination of size 16
return builtinsprintf_chk (s, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (
_s), _fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jacob/repos/gr-fosphor/lib/fosphor/axis.c:147:33: warning: ‘%s’ directive writing up to 1 bytes into a region of size between 0 and 10 [-Wformat-overflow=]
sprintf(fx->rel_fmt, "%%+.%dlf%s", y, prefix);
^~ ~~~~
In file included from /usr/include/stdio.h:873,
from /home/jacob/repos/gr-fosphor/lib/fosphor/axis.c:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘
_builtin
sprintf_chk’ output between 7 and 18 bytes into a destination of size 16
return builtin_sprintf_chk (s, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (
_s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 11%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/cl.c.o
In file included from /usr/include/CL/cl.h:36,
from /home/jacob/repos/gr-fosphor/lib/fosphor/cl_platform.h:39,
from /home/jacob/repos/gr-fosphor/lib/fosphor/cl.c:36:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
^~~~~
[ 14%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/cl_compat.c.o
In file included from /usr/include/CL/cl.h:36,
from /home/jacob/repos/gr-fosphor/lib/fosphor/cl_platform.h:39,
from /home/jacob/repos/gr-fosphor/lib/fosphor/cl_compat.h:33,
from /home/jacob/repos/gr-fosphor/lib/fosphor/cl_compat.c:45:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
^~~~~
[ 17%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/fosphor.c.o
[ 20%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/gl.c.o
[ 23%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/gl_cmap.c.o
[ 26%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/gl_cmap_gen.c.o
[ 29%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/gl_font.c.o
[ 32%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/resource.c.o
[ 35%] Building C object lib/CMakeFiles/gnuradio-fosphor.dir/fosphor/resource_data.c.o
[ 38%] Building CXX object lib/CMakeFiles/gnuradio-fosphor.dir/fifo.cc.o
[ 41%] Building CXX object lib/CMakeFiles/gnuradio-fosphor.dir/base_sink_c_impl.cc.o
[ 44%] Building CXX object lib/CMakeFiles/gnuradio-fosphor.dir/glfw_sink_c_impl.cc.o
[ 47%] Building CXX object lib/CMakeFiles/gnuradio-fosphor.dir/QGLSurface.cc.o
[ 50%] Building CXX object lib/CMakeFiles/gnuradio-fosphor.dir/qt_sink_c_impl.cc.o
[ 52%] Building CXX object lib/CMakeFiles/gnuradio-fosphor.dir/wx_core_sink_c_impl.cc.o
[ 55%] Building CXX object lib/CMakeFiles/gnuradio-fosphor.dir/gnuradio-fosphor_autogen/mocs_compilation.cpp.o
[ 58%] Linking CXX shared library libgnuradio-fosphor.so
[ 58%] Built target gnuradio-fosphor
Scanning dependencies of target fosphor_swig_swig_doc
[ 58%] Built target fosphor_swig_swig_doc
Scanning dependencies of target _fosphor_swig_swig_tag
[ 61%] Building CXX object swig/CMakeFiles/_fosphor_swig_swig_tag.dir/_fosphor_swig_swig_tag.cpp.o
[ 64%] Linking CXX executable _fosphor_swig_swig_tag
[ 64%] Built target _fosphor_swig_swig_tag
[ 67%] Generating fosphor_swig.tag
Scanning dependencies of target fosphor_swig_swig_2d0df
[ 70%] Building CXX object swig/CMakeFiles/fosphor_swig_swig_2d0df.dir/fosphor_swig_swig_2d0df.cpp.o
[ 73%] Linking CXX executable fosphor_swig_swig_2d0df
Swig source
[ 73%] Built target fosphor_swig_swig_2d0df
Scanning dependencies of target _fosphor_swig
[ 76%] Building CXX object swig/CMakeFiles/_fosphor_swig.dir/fosphor_swigPYTHON_wrap.cxx.o
[ 79%] Linking CXX shared module _fosphor_swig.so
[ 85%] Built target _fosphor_swig
Scanning dependencies of target pygen_swig_89a7d
[ 88%] Generating fosphor_swig.pyc
[ 91%] Generating fosphor_swig.pyo
[ 94%] Built target pygen_swig_89a7d
Scanning dependencies of target pygen_python_73fe0
[ 97%] Generating __init
.pyc, wx_sink_c.pyc
[100%] Generating init.pyo, wx_sink_c.pyo
[100%] Built target pygen_python_73fe0
Scanning dependencies of target pygen_apps_9a6dd
[100%] Built target pygen_apps_9a6dd

person@machine:~/repos/gr-fosphor/build$ sudo make install
[ 2%] Automatic MOC for target gnuradio-fosphor
[ 2%] Built target gnuradio-fosphor_autogen
[ 58%] Built target gnuradio-fosphor
[ 58%] Built target fosphor_swig_swig_doc
[ 64%] Built target fosphor_swig_swig_tag
[ 73%] Built target fosphor_swig_swig_2d0df
[ 85%] Built target _fosphor_swig
[ 94%] Built target pygen_swig_89a7d
[100%] Built target pygen_python_73fe0
[100%] Built target pygen_apps_9a6dd
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/pkgconfig/gnuradio-fosphor.pc
-- Installing: /usr/local/include/gnuradio/fosphor/api.h
-- Installing: /usr/local/include/gnuradio/fosphor/base_sink_c.h
-- Installing: /usr/local/include/gnuradio/fosphor/glfw_sink_c.h
-- Installing: /usr/local/include/gnuradio/fosphor/qt_sink_c.h
-- Installing: /usr/local/include/gnuradio/fosphor/wx_core_sink_c.h
-- Installing: /usr/local/lib/libgnuradio-fosphor.so.3.7.0git
-- Set runtime path of "/usr/local/lib/libgnuradio-fosphor.so.3.7.0git" to ""
-- Installing: /usr/local/lib/libgnuradio-fosphor.so
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/_fosphor_swig.so
-- Set runtime path of "/usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/_fosphor_swig.so" to ""
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/fosphor_swig.py
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/fosphor_swig.pyc
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/fosphor_swig.pyo
-- Installing: /usr/local/include/gnuradio/fosphor/swig/fosphor_swig.i
-- Installing: /usr/local/include/gnuradio/fosphor/swig/fosphor_swig_doc.i
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/
_init__.py
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/wx_sink_c.py
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/__init__.pyc
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/wx_sink_c.pyc
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/__init__.pyo
-- Installing: /usr/local/lib/python2.7/dist-packages/gnuradio/fosphor/wx_sink_c.pyo
-- Installing: /usr/local/share/gnuradio/grc/blocks/fosphor_glfw_sink_c.xml
-- Installing: /usr/local/share/gnuradio/grc/blocks/fosphor_qt_sink_c.xml
-- Installing: /usr/local/share/gnuradio/grc/blocks/fosphor_wx_sink_c.xml

History

#1 Updated by gravytrain21 about 2 months ago

GNU Radio version: 3.7.13.4

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)