*Console logs:***
thangz@thangz-VirtualBox:~$ sudo apt-get install libuhd-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libuhd-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3.230 kB of archives.
After this operation, 19,2 MB of additional disk space will be used.
Selecting previously unselected package libuhd-dev.
(Reading database ... 245194 files and directories currently installed.)
Preparing to unpack
.../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
thangz@thangz-VirtualBox:~$ cd $install_prefix/lib/uhd/examples
thangz@thangz-VirtualBox:/lib/uhd/examples$ ls
benchmark_rate python rx_ascii_art_dft
rx_timed_samples test_pps_input tx_samples_c
benchmark_streamer replay_samples_from_file rx_multi_samples
sync_to_gps test_timed_commands tx_samples_from_file
gpio rfnoc_nullsource_ce_rx rx_samples_c test_clock_synch
twinrx_freq_hopping tx_timed_samples
latency_test rfnoc_radio_loopback rx_samples_to_file
test_dboard_coercion tx_bursts tx_waveforms
network_relay rfnoc_rx_to_file rx_samples_to_udp
test_messages txrx_loopback_to_file usrp_list_sensors
thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100;
UHD_3.15.0.0-release
No UHD Devices Found
thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100;
UHD_3.15.0.0-release
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address
Looking forward to your kind help, thanks in advance.
Regards,
Thangaraj
*Von:*Marcus D. Leech <patchvonbr...@gmail.com>
*Gesendet:* Mittwoch, 22. September 2021 15:55
*An:* Thangaraj Mukara Dhakshinamoorthy <thanga...@komro.net>;
usrp-users@lists.ettus.com
*Betreff:* Re: AW: AW: AW: AW: [USRP-users] Re: Help_Failed to build
UHD in Ubuntu 20.04
On 2021-09-22 9:35 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:
Hello Marcus,
Unfortunately, the pre-packaged versions of UHD and GNU-Radio are
also problematic!
This looks like you don't have a Python2.7 install on your
system--or it cannot be found. During the build. What version of
UHD are you trying to build?
> UHD v3.14.0.0 (as mentioned in the installation guidelines)
Also, in Ubuntu 20.04, if you're just using Gnu Radio and not
doing RFNOC work, you can just use the pre-packaged versions of
UHD and Gnu Radio, and use
apt-install to install them:
*_GNU Installation:_*
*thangaraj@KOM1292:~$ sudo apt install gnuradio*
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gnuradio-dev
Suggested packages:
gr-fosphor gr-osmosdr
Recommended packages:
python3-qwt-qt5
The following NEW packages will be installed:
gnuradio gnuradio-dev
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 6374 kB of archives.
After this operation, 38.8 MB of additional disk space will be used.
*Do you want to continue? [Y/n] y*
Get:1 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
<http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu>
focal/main amd64 gnuradio amd64 3.10.0.git~master~14443~focal-1
[6052 kB]
Get:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
<http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu>
focal/main amd64 gnuradio-dev amd64
3.10.0.git~master~14443~focal-1 [322 kB]
Fetched 6374 kB in 3s (2292 kB/s)
Selecting previously unselected package gnuradio.
(Reading database ... 103340 files and directories currently
installed.)
Preparing to unpack
.../gnuradio_3.10.0.git~master~14443~focal-1_amd64.deb ...
Unpacking gnuradio (3.10.0.git~master~14443~focal-1) ...
Selecting previously unselected package gnuradio-dev:amd64.
Preparing to unpack
.../gnuradio-dev_3.10.0.git~master~14443~focal-1_amd64.deb ...
Unpacking gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ...
Setting up gnuradio (3.10.0.git~master~14443~focal-1) ...
Setting up gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
*thangaraj@KOM1292:~$ gnuradio-companion (failed to start)*
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
/usr/lib/python3/dist-packages/apport/report.py:13:
DeprecationWarning: the imp module is deprecated in favour of
importlib; see the module's documentation for alternative uses
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
File "/usr/bin/gnuradio-companion", line 92, in <module>
run_main()
File "/usr/bin/gnuradio-companion", line 85, in run_main
exit(main())
File "/usr/lib/python3/dist-packages/gnuradio/grc/main.py", line
70, in main
from .gui.Platform import Platform
File
"/usr/lib/python3/dist-packages/gnuradio/grc/gui/Platform.py",
line 14, in <module>
from . import canvas
File
"/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/__init__.py",
line 10, in <module>
from .param import Param
File
"/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/param.py",
line 11, in <module>
from .. import ParamWidgets, Utils, Constants, Actions
File
"/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py",
line 58, in <module>
add_style_provider()
File
"/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py",
line 53, in add_style_provider
Gtk.StyleContext.add_provider_for_screen(
TypeError: Argument 0 does not allow None as a value
This looks like a problem with your Ubuntu 20.04 system image--it's
missing some configuration or something. Not sure what.
I'm not a Windows guy, nor do I know anything about WSL. Further
questions about *GNURADIO* should really be directed
to the discuss-gnuradio mailing list, rather than here.
IF you mix PPA packages and packages from the distribution, you'll be
in a world of hurt. Don't do that.
It turns out that the "gnuradio" package alone is enough to bring in
compatible versions of UHD and friends, so you shouldn't need
to install anything other than that. Until a couple of weeks ago, I
was running Ubuntu 20.04 on a real physical system, using a variety
of SDR hardware including UHD (USRP) hardware without issue. I
upgraded to Ubuntu 21.04 to get past a bug in Gnu Radio 3.8.1.0.
I know this stuff works, but I have no experience with WSL.
But like I had previously mentioned in this thread, you'll need to
dedicate a network port to your N310, and I have no idea how that
works in the WSL environment, and perhaps someone with more
familiarity with WSL can comment.
*_UHD Installation:_*
**
*thangaraj@KOM1292:~$ sudo apt install uhd libuhd*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package uhd
E: Unable to locate package libuhd
*thangaraj@KOM1292:~$ sudo apt-get install uhd libuhd*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package uhd
E: Unable to locate package libuhd
*thangaraj@KOM1292:~$ sudo add-apt-repository ppa:ettusresearch/uhd*
More info:
https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd
<https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd>
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Get:1 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
<http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal
InRelease [18.1 kB]
Hit:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
<http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> focal
InRelease
Hit:3 https://download.docker.com/linux/ubuntu
<https://download.docker.com/linux/ubuntu> focal InRelease
Hit:4 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu
<http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu> focal
InRelease
Hit:5 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal InRelease
Get:6 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal-updates InRelease [114 kB]
Get:7 http://security.ubuntu.com/ubuntu
<http://security.ubuntu.com/ubuntu> focal-security InRelease [114 kB]
Get:8 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal-backports InRelease [101 kB]
Get:9 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
<http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
amd64 Packages [1048 B]
Get:10 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
<http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
Translation-en [600 B]
Fetched 348 kB in 5s (68.1 kB/s)
Reading package lists... Done
*thangaraj@KOM1292:~$ sudo apt-get update*
Hit:1 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal-updates InRelease
Hit:3 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
<http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal InRelease
Hit:4 https://download.docker.com/linux/ubuntu
<https://download.docker.com/linux/ubuntu> focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal-backports InRelease
Hit:6 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
<http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> focal
InRelease
Hit:7 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu
<http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu> focal
InRelease
Hit:8 http://security.ubuntu.com/ubuntu
<http://security.ubuntu.com/ubuntu> focal-security InRelease
Reading package lists... Done
*thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003
uhd-host (failed)*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libuhd003 is not available, but is referred to by another
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libuhd3.15.0
E: Package 'libuhd003' has no installation candidate
*thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev
libuhd003.15.0 uhd-host (failed)*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libuhd003.15.0
E: Couldn't find any package by glob 'libuhd003.15.0'
E: Couldn't find any package by regex 'libuhd003.15.0'
*thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev
libuhd003.14.0 uhd-host (failed)*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libuhd003.14.0
E: Couldn't find any package by glob 'libuhd003.14.0'
E: Couldn't find any package by regex 'libuhd003.14.0'
*thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev uhd-host
(completed)*
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libuhd3.15.0 python-is-python2 python-tk
Suggested packages:
tix python-tk-dbg
The following NEW packages will be installed:
libuhd-dev python-is-python2 python-tk
The following packages will be upgraded:
libuhd3.15.0 uhd-host
2 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 13.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal/universe amd64
python-is-python2 all 2.7.17-4 [2496 B]
Get:2 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
<http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
amd64 uhd-host amd64 3.15.0.0-1-1ubuntu1~focal1 [5463 kB]
Get:3 http://archive.ubuntu.com/ubuntu
<http://archive.ubuntu.com/ubuntu> focal/universe amd64 python-tk
amd64 2.7.18-1 [25.3 kB]
Get:4 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
<http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
amd64 libuhd3.15.0 amd64 3.15.0.0-1-1ubuntu1~focal1 [3061 kB]
Get:5 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
<http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
amd64 libuhd-dev amd64 3.15.0.0-1-1ubuntu1~focal1 [3230 kB]
Fetched 11.8 MB in 6s (2110 kB/s)
(Reading database ... 105690 files and directories currently
installed.)
Preparing to unpack
.../uhd-host_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking uhd-host (3.15.0.0-1-1ubuntu1~focal1) over
(3.15.0.0-2build5) ...
Selecting previously unselected package python-is-python2.
Preparing to unpack .../python-is-python2_2.7.17-4_all.deb ...
Unpacking python-is-python2 (2.7.17-4) ...
Preparing to unpack
.../libuhd3.15.0_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) over
(3.15.0.0-2build5) ...
Selecting previously unselected package libuhd-dev.
Preparing to unpack
.../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
Selecting previously unselected package python-tk.
Preparing to unpack .../python-tk_2.7.18-1_amd64.deb ...
Unpacking python-tk (2.7.18-1) ...
Setting up python-tk (2.7.18-1) ...
Setting up python-is-python2 (2.7.17-4) ...
Setting up libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) ...
Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
Setting up uhd-host (3.15.0.0-1-1ubuntu1~focal1) ...
sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or
directory
sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or
directory
Warning: Could not update sysctl settings for network devices.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Looking forward to your kind response.
Regards,
Thangaraj
*Von:*Marcus D. Leech <patchvonbr...@gmail.com>
<mailto:patchvonbr...@gmail.com>
*Gesendet:* Mittwoch, 22. September 2021 15:04
*An:* Thangaraj Mukara Dhakshinamoorthy <thanga...@komro.net>
<mailto:thanga...@komro.net>; usrp-users@lists.ettus.com
<mailto:usrp-users@lists.ettus.com>
*Betreff:* Re: AW: AW: AW: [USRP-users] Re: Help_Failed to build
UHD in Ubuntu 20.04
On 2021-09-22 7:47 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:
Hello Marcus,
As you mentioned, I have followed the step-by-step
installation guide, while building and installing UHD from
source code, it throws an error which I mentioned previously!
thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake ..
--
-- Configuring the python interpreter...
-- Python interpreter: /usr/bin/python3
-- Override with: -DPYTHON_EXECUTABLE=<path-to-python>
-- Python runtime interpreter: /usr/bin/python3
-- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python>
-- Working off of feature or development branch. Updating
version number.
-- Using UHD Images Directory: /usr/local/share/uhd/images
-- Build type not specified: defaulting to release.
--
-- Configuring Boost C++ Libraries...
-- Looking for optional Boost components...
-- Found Boost:
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake
(found suitable version "1.71.0", minimum required is "1.53")
found components: python
-- Looking for required Boost components...
-- Found Boost:
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake
(found suitable version "1.71.0", minimum required is "1.53")
found components: chrono date_time filesystem program_options
regex system unit_test_framework serialization thread
-- Boost include directories: /usr/include
-- Boost library directories: /usr/lib/x86_64-linux-gnu
-- Boost libraries:
Boost::chrono;Boost::date_time;Boost::filesystem;Boost::program_options;Boost::regex;Boost::system;Boost::unit_test_framework;Boost::serialization;Boost::thread
CMake Warning (dev) at cmake/Modules/UHDLog.cmake:68 (set):
implicitly converting 'FILE' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:365 (include)
This warning is for project developers. Use -Wno-dev to
suppress it.
--
-- Python checking for Python version 2.7 or greater
-- Python checking for Python version 2.7 or greater - "assert
platform.python_version() >= '2.7' and
platform.python_version() < '3.0'" failed
--
-- Python checking for Mako templates 0.4.2 or greater
-- Python checking for Mako templates 0.4.2 or greater - found
--
-- Python checking for requests 2.0 or greater
-- Python checking for requests 2.0 or greater - found
--
-- Python checking for numpy 1.7 or greater
-- Python checking for numpy 1.7 or greater - found
--
-- Configuring LibUHD support...
-- Dependency Boost_FOUND = TRUE
-- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = FALSE
-- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
CMake Error at cmake/Modules/UHDComponent.cmake:59 (message):
Dependencies for required component LibUHD not met.
Call Stack (most recent call first):
CMakeLists.txt:430 (LIBUHD_REGISTER_COMPONENT)
-- Configuring incomplete, errors occurred!
See also
"/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeOutput.log".
See also
"/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeError.log".
*_Also, tried executing below commands but got the same above
output:_*
thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake
-DPYTHON_EXECUTABLE=/usr/bin/python3 ..
thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake
-DPYTHON_EXECUTABLE=/usr/bin/python3
-DRUNTIME_PYTHON_EXECUTABLE=/usr/bin/python3 ..
thangaraj@KOM1292:~/workarea/uhd/host/build$ /usr/bin/cmake ..
thangaraj@KOM1292:~/workarea/uhd/host/build$
PATH=/usr/bin:$PATH cmake ..
thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake
–DCMAKE_FIND_ROOT_PATH=/usr ..
PFA CMake logfiles.
I am stumbled with this UHD & GNU installation issue for
almost a week, it would great if anyone can help me out, I
would appreciate it and be very thankful!
PS: I am using WSL-Windows Subsytem for Linux (running Ubuntu
20.04.3 LTS)!
Regards,
Thangaraj
This looks like you don't have a Python2.7 install on your
system--or it cannot be found. During the build. What version of
UHD are you trying to build?
Also, in Ubuntu 20.04, if you're just using Gnu Radio and not
doing RFNOC work, you can just use the pre-packaged versions of
UHD and Gnu Radio, and use
apt-install to install them:
sudo apt install gnuradio
sudp apt install uhd libuhd