CV工程师
2023-05-23 09:02:00 阅读:499
今天在安装gr-iio && Gnuradio的过程中遇到一些问题,遇到了如下报错:
CMake Warning at CMakeLists.txt:90 (find_package):
By not providing "FindGnuradio.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Gnuradio",
but CMake did not find one.
Could not find a package configuration file provided by "Gnuradio"
(requested version 3.8) with any of the following names:
GnuradioConfig.cmake
gnuradio-config.cmake
Add the installation prefix of "Gnuradio" to CMAKE_PREFIX_PATH or set
"Gnuradio_DIR" to a directory containing one of the above files. If
"Gnuradio" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:92 (find_package):
By not providing "FindGnuradio.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Gnuradio",
but CMake did not find one.
Could not find a package configuration file provided by "Gnuradio"
(requested version 3.9) with any of the
难搞,经过一番摸索后发现问题出现在Ubuntu,主要原因是18.04默认安装的GnuRadio是3.7版本,如何安装3.8版本呢?直接看了官网教程:https://wiki.gnuradio.org/index.php/UbuntuInstall
由于是Ubuntu18,所以先执行以下命令:
sudo apt install git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy \
python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev \
libsdl1.2-dev libgsl-dev libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 \
liblog4cpp5-dev libzmq3-dev python3-yaml python3-click python3-click-plugins \
python3-zmq python3-scipy
安装完成依赖以后依次执行如下命令:
sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo apt-get update
sudo apt-get install gnuradio
这样gnuRadio3.8.2就安装完成咯。
安装完成以后,执行如下命令:
git clone https://github.com/analogdevicesinc/gr-iio.git
cd gr-iio
cmake .
make
sudo make install
cd ..
sudo ldconfig
就顺利安装gr-iio了。
评论
扫描二维码获取文章详情
更多精彩内容尽在:WWW.ZNGG.NET