使用 PYBOMBS 安装 gnuradio 期间出现 CMake 错误

使用 PYBOMBS 安装 gnuradio 期间出现 CMake 错误
bumblebee@JARVIS:~$ sudo pybombs install gr-osmosdr
PyBOMBS - INFO - PyBOMBS Version 2.3.2
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
PyBOMBS.install_manager - INFO - Phase 1: Creating install tree and installing binary packages:
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
The directory '/home/bumblebee/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Install tree:
|
\- gr-osmosdr
   |
   +- airspy
   |
   +- hackrf
   |
   +- gnuradio
   |
   +- bladeRF
   |
   +- gr-iqbal
   |  |
   |  +- libosmo-dsp
   |  |
   |  \- gnuradio
   |
   \- soapysdr
PyBOMBS.install_manager - INFO - Phase 2: Recursively installing source packages to prefix:
PyBOMBS.install_manager - INFO - Installing package: soapysdr
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
Cloning:     (100%) [==========================================================================================================================================================================================================]
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
Configuring: (100%) [==========================================================================================================================================================================================================]
Building:    (100%) [==========================================================================================================================================================================================================]
Installing:  (100%) [==========================================================================================================================================================================================================]
PyBOMBS.install_manager - INFO - Installation successful.
PyBOMBS.install_manager - INFO - Installing package: gnuradio
PyBOMBS.PackageManager - WARNING - A source build for package gnuradio was requested, but binary install was found!
Install gnuradio from source despite binary install available Y/[N]? y
Cloning:     (100%) [==========================================================================================================================================================================================================]
Configuring: (100%) [==========================================================================================================================================================================================================]
PyBOMBS.Packager.source - WARNING - Configuration failed. Re-trying with higher verbosity.
-- Build type set to RelWithDebInfo.
-- Extracting version information from git describe...
-- Compiler Version: cc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- Compiler Flags: /usr/bin/cc:::-O2 -g -DNDEBUG  -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized
/usr/bin/c++:::-O2 -g -DNDEBUG  -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized
-- ADDING PERF COUNTERS
-- Building Static Libraries: OFF
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   date_time
--   program_options
--   filesystem
--   system
--   regex
--   thread
--   chrono
--   atomic
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.14", minimum required is "2.7") 
-- 
-- Checking for module SWIG
-- Found SWIG version 2.0.12.
-- 
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
-- 
-- Configuring python-support support...
--   Dependency PYTHONLIBS_FOUND = TRUE
--   Dependency SWIG_FOUND = TRUE
--   Dependency SWIG_VERSION_CHECK = TRUE
--   Enabling python-support support.
--   Override with -DENABLE_PYTHON=ON/OFF
-- Checking for module 'cppunit'
--   No package 'cppunit' found
-- Could NOT find CPPUNIT (missing:  CPPUNIT_INCLUDE_DIRS) 
-- 
-- Configuring testing-support support...
--   Dependency CPPUNIT_FOUND = FALSE
CMake Error at cmake/Modules/GrComponent.cmake:75 (message):
  user force-enabled testing-support but configuration checked failed
Call Stack (most recent call first):
  CMakeLists.txt:373 (GR_REGISTER_COMPONENT)


-- Configuring incomplete, errors occurred!
See also "/usr/local/src/gnuradio/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/gnuradio/build/CMakeFiles/CMakeError.log".
PyBOMBS.Packager.source - ERROR - Configuration failed after running at least twice.
PyBOMBS.Packager.source - ERROR - Problem occurred while building package gnuradio:
Configuration failed
PyBOMBS.install_manager - ERROR - Error installing package gnuradio. Aborting.

答案1

似乎缺少一些要求。

我也遇到过这种情况 - 有时包管理器不能很好地处理这些错误。但是,在 Ubuntu 18.04 + Python 2 + PyBOMBS + GNU Radio 3.7 上安装尽可能广泛的依赖项解决了这个问题:

  1. 来自 GNU Radio 的Ubuntu安装

    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
    
  2. 来自 Ettus Research 的知识库

    sudo apt-get -y install git swig cmake doxygen build-essential libboost-all-dev \
    libtool libusb-1.0-0 libusb-1.0-0-dev libudev-dev libncurses5-dev libfftw3-bin \
    libfftw3-dev libfftw3-doc libcppunit-1.14-0 libcppunit-dev libcppunit-doc \
    ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg \
    python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-dev libqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-dev \
    python-qt4-doc python-qt4-doc libqwt6abi1 libfftw3-bin libfftw3-dev \
    libfftw3-doc ncurses-bin libncurses5 libncurses5-dev libncurses5-dbg \
    libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf \
    libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev \
    libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk3.0 git libqt4-dev \
    python-numpy ccache python-opengl libgsl-dev python-cheetah python-mako \
    python-lxml doxygen qt4-default qt4-dev-tools libusb-1.0-0-dev \
    libqwtplot3d-qt5-dev pyqt4-dev-tools python-qwt5-qt4 cmake git wget libxi-dev \
    gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev \
    libasound2-dev python-gtk2 libzmq3-dev libzmq5 python-requests python-sphinx \
    libcomedi-dev python-zmq libqwt-dev libqwt6abi1 python-six libgps-dev libgps23 \
    gpsd gpsd-clients python-gps python-setuptools
    

我希望这有帮助。

相关内容