bastibl / gr-foo

Some GNU Radio blocks that I use.
GNU General Public License v3.0
106 stars 56 forks source link

UHD warning on build w/ APT installed GR 3.9.5 #32

Closed cclamb closed 2 years ago

cclamb commented 2 years ago

Hey, so I installed GR 3.9.5 via APT on Ubutnu 20.04.4 LTS, and then attempted to build gr-foo from the maint-3.9 branch. When attempting to configure via cmake, I get this:

CMake Warning at CMakeLists.txt:73 (find_package):
  By not providing "FindUHD.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "UHD", but
  CMake did not find one.

  Could not find a package configuration file provided by "UHD" with any of
  the following names:

    UHDConfig.cmake
    uhd-config.cmake

  Add the installation prefix of "UHD" to CMAKE_PREFIX_PATH or set "UHD_DIR"
  to a directory containing one of the above files.  If "UHD" provides a
  separate development package or SDK, be sure it has been installed.

-- UHD library not found, no support for timed TX.

UHD is installed:

libgnuradio-uhd3.9.5/focal,now 3.9.5.0-0~gnuradio~focal-1 amd64 [installed,automatic]
  gnuradio universal hardware driver functions

Seems like the correct library to use with GR 3.9.5:

❯ apt-cache show libgnuradio-uhd3.9.5
Package: libgnuradio-uhd3.9.5
Source: gnuradio
Priority: optional
Section: libs
Installed-Size: 422
Maintainer: A. Maitland Bottoms <bottoms@debian.org>
Architecture: amd64
Version: 3.9.5.0-0~gnuradio~focal-1
Depends: libboost-thread1.71.0, libc6 (>= 2.14), libgcc-s1 (>= 3.0), libgnuradio-pmt3.9.5 (>= 3.9.5.0-0~gnuradio~focal), libgnuradio-runtime3.9.5 (>= 3.9.5.0-0~gnuradio~focal), liblog4cpp5v5, libstdc++6 (>= 9), libuhd3.15.0 (>= 3.15.0.0)
Filename: pool/main/g/gnuradio/libgnuradio-uhd3.9.5_3.9.5.0-0~gnuradio~focal-1_amd64.deb
Size: 140828
MD5sum: 2ddead760686c161688c703fc9703bba
SHA1: ce166f532dd442e036ea9576f6e7b8f75209d17c
SHA256: ef98b6893b8af873ef4cc6b38fc56c434cdd3bf8a955af51db24f90cfc1074b9
Description-en: gnuradio universal hardware driver functions
 The gnuradio interface to the UHD library to connect to and send and
 receive data between to the Ettus Research, LLC product line -
 including the USRP family of software radio peripheral devices.
 Part of the main gnuradio build.
Description-md5: 99e0943e04dc3702c287f7beab797428
Multi-Arch: same

Seems to build fine after this warning. Is this really a problem?

bastibl commented 2 years ago

What you would need to enable this feature is libuhd-dev but it's nor required.