소스에서 컴파일하기 위한 GNU 라디오의 종속성 관리

소스에서 컴파일하기 위한 GNU 라디오의 종속성 관리

Ettus 연구는종속성의 큰 목록18.04의 경우 소스에서 GNU 라디오를 컴파일하는 데 거의 작동합니다.

cmake는 다음 구성 오류를 제공합니다.

-- Python checking for PyQt5 - found
-- Checking for module 'Qt5Qwt6'
--   No package 'Qt5Qwt6' found
-- QWT Version: 6.1.3
-- Found Qwt: /usr/lib/libqwt.so  

그러나 내가 가지고 있는 패키지에 따르면(가능한 모든 버전인 것 같습니다. 아마도 너무 많은 것 같습니다.) 필요한 것이 있어야 합니다.

apt-cache search qwt
libqwt-dev - Qt widgets library for technical applications (development, qt4)
libqwt-doc - Qt widgets library for technical applications (documentation)
libqwt-headers - Qt widgets library for technical applications (header files)
libqwt-qt5-6 - Qt widgets library for technical applications (runtime, qt5)
libqwt-qt5-dev - Qt widgets library for technical applications (development, qt5)
libqwt5-doc - Qt widgets library for technical applications (documentation)
libqwt5-qt4 - Qt4 widgets library for technical applications (runtime)
libqwt5-qt4-dev - Qt4 widgets library for technical applications (development)
libqwt6abi1 - Qt widgets library for technical applications (runtime, qt4)
libqwtmathml-dev - Text Engine for Qwt (development, qt4)
libqwtmathml-qt5-6 - Text Engine for Qwt (runtime, qt5)
libqwtmathml-qt5-dev - Text Engine for Qwt (development, qt5)
libqwtmathml6abi1 - Text Engine for Qwt (runtime, qt4)
libqwtplot3d-doc - 3D plotting library based on Qt/OpenGL (documentation)
libqwtplot3d-qt5-0 - 3D plotting library based on Qt5/OpenGL (runtime)
libqwtplot3d-qt5-dev - 3D plotting library based on Qt5/OpenGL (development)
python-guiqwt - efficient 2D data-plotting library - Python 2
python-guiqwt-doc - efficient 2D data-plotting library - Documentation
python-qwt - Pure Python implementation of Qwt - Python 2
python-qwt5-doc - Python Qwt5 technical widget library, documentation and examples
python-qwt5-qt4 - Python version of the Qwt5 technical widget library
python3-guiqwt - efficient 2D data-plotting library - Python 3
python3-qwt - Pure Python implementation of Qwt - Python 3
python-qwt-doc - Pure Python implementation of Qwt - Documentation

찾고 있는 항목을 올바르게 찾으려면 cmake 목록을 어떻게 편집해야 합니까?

답변1

인터넷으로 검색한 후'Qt5Qwt6' 패키지를 찾을 수 없습니다.gnuradio, 문제 추적기에 이 문제가 표시되는 것을 발견했습니다 .권장 솔루션:

-DQWT_LIBRARIES=/usr/lib/libqwt.sognuradion cmake 스크립트를 활성화하려면 아치에 기록이 필요합니다 gr-qtgui.

여기,아치ArchLinux를 참조하지만 이것이 이 솔루션이 ArchLinux에 격리되어 있고 귀하에게 매우 잘 작동할 수 있다는 의미는 아닙니다.

답변2

APT 기반 방법을 사용하는 것이 좋습니다. GNU 라디오플러그인과 함께 패키지되어 있습니다우분투에서. 그리고 처음에는 다음과 같이 간단하게 바이너리 패키지를 사용하여 시작합니다.

sudo apt-get install gnuradio

컴파일로 패키징되었으며 컴파일에는 빌드 타임 종속성이 필요합니다. 다음 작업을 통해 얻을 수 있습니다.

  1. 소프트웨어 및 업데이트( software-properties-gtk)를 열고 활성화합니다.소스 코드여기에 저장소
  2. 간단한 명령으로 빌드 종속성을 설치합니다.

    sudo apt-get build-dep gnuradio
    

    위 명령은 GNU Radio 3.7.11-10(Ubuntu 18.04 LTS에서와 같이)에 대한 빌드 시간 종속성을 설치합니다. 이 버전은 다음과 같이 너무 새로운 것은 아닙니다.공식 사이트(2018-07-15 뉴스에는 GNU Radio v3.7.13.4 릴리스 발표가 포함되어 있습니다).

  3. 간단한 명령으로 Ubuntu 저장소에서 GNU Radio 소스 3.7.11-10을 가져옵니다.

    apt-get source gnuradio
    

    원하는 대로 패치/변경/업데이트하세요.

관련 정보