2021-07-05

在Ubuntu上尝试更新并安装cmake到3.9.1版本后,配置UHD库3.15时遇到问题。CMake成功检测到C和C++编译器,但无法找到Python numpy库。关键问题在于找不到Boost库的正确版本,导致编译配置失败。尝试通过`apt-get install`安装相关依赖,但未能找到LibUHD包。最后,列出了一些已安装的库和开发包,但仍然无法完成配置。
摘要由CSDN通过智能技术生成

#cmake uhd3.15 ERROR
#update cmake 3.9.1

root@test:/tmp/uhd/uhd/host/build# cmake -DCMAKE_INSTALL_PREFIX=/usr ../
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 
-- Configuring the Python interpreter...
-- Python interpreter: /usr/bin/python3.5 Version: 3.5.2
-- Override with: -DPYTHON_EXECUTABLE=<path-to-python>
-- Python runtime interpreter: /usr/bin/python3.5 Version: 3.5.2
-- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python>
-- Finding Python Libraries...
-- Could not find Python Libraries.
-- Working off of feature or development branch. Updating version number.
-- Using UHD Images Directory: /usr/share/uhd/images
-- Build type not specified: defaulting to release.
-- Performing Test HAVE_VISIBILITY_HIDDEN
-- Performing Test HAVE_VISIBILITY_HIDDEN - Success
-- Performing Test HAVE_VISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_VISIBILITY_INLINES_HIDDEN - Success
-- 
-- Configuring Boost C++ Libraries...
-- 
-- Checking for Boost version 1.58 or greater
--   Looking for required Boost components...
CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Warning at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:767 (message):
  Imported targets not available for Boost version
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:871 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1501 (_Boost_MISSING_DEPENDENCIES)
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


CMake Error at /usr/local/share/cmake-3.9/Modules/FindBoost.cmake:1878 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  cmake/Modules/UHDBoost.cmake:176 (find_package)
  CMakeLists.txt:296 (include)


-- Looking for Boost version 1.58 or greater - not found
-- 
-- Python checking for Python version 3.5 or greater
-- Python checking for Python version 3.5 or greater - found
-- 
-- 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 - "import numpy" failed
-- 
-- Configuring LibUHD support...
--   Dependency Boost_FOUND = 0
--   Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
--   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:363 (LIBUHD_REGISTER_COMPONENT)


-- Configuring incomplete, errors occurred!
See also "/tmp/uhd/uhd/host/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/uhd/uhd/host/build/CMakeFiles/CMakeError.log".
root@test:/tmp/uhd/uhd/host/build# apt install LibUHD
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package LibUHD

#install

sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev libuhd-dev libuhd003 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值