首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在取消生成"gr-ais“的CMake时找不到模块"mpir”

在取消生成"gr-ais“的CMake时找不到模块"mpir”
EN

Stack Overflow用户
提问于 2021-02-15 21:50:29
回答 1查看 1.8K关注 0票数 0

我试图安装"gr-ais“,在使用CMake时遇到了一个错误:”无法找到MPIR (缺失: MPIRXX_LIBRARY MPIR_INCLUDE_DIR)":

代码语言:javascript
复制
mavo@mavo:~/Dokumente/ais$ cmake gr-ais/
-- Build type not specified: defaulting to release.
-- Checking for module 'mpir >= 3.0'
--   No package 'mpir' found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_INCLUDE_DIR) 
-- User set python executable /usr/bin/python3
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable exact version "3.8.5") 
-- Extracting version information from git describe...
-- Using install prefix: /usr/local
-- Building for version: 21621032 / 0.9.0git
-- 
-- Checking for module SWIG
-- Disabling SWIG because version check failed.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8.5") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mavo/Dokumente/ais

因此,gr_ais无法工作:

代码语言:javascript
复制
mavo@mavo:~/Dokumente/ais$ ais_rx 
Traceback (most recent call last):
  File "/usr/local/bin/ais_rx", line 6, in <module>
    import ais
ModuleNotFoundError: No module named 'ais'

我也安装了mpir3.0 (https://github.com/wbhart/mpir/releases)、gnuradio同伴(3.8.1.0)、GMP 6.2.1和libgmp-dev (2:6.2.0+dfsg-4)。还有其他想法吗?

EN

回答 1

Stack Overflow用户

发布于 2021-02-16 07:21:23

这解决了我的问题:我需要在/usr上安装gr-ais,而不是/usr/local。所以,只需键入cmake -DCMAKE_INSTALL_PREFIX=/usr gr-ais/,我认为在/use/本地python中找不到库.别忘了以前做make clean

我也安装了更多的软件包:

代码语言:javascript
复制
sudo apt install -y cmake autoconf libtool pkg-config build-essential  libcppunit-dev swig doxygen liblog4cpp5-dev gnuradio-dev gr-osmosdr libosmogsm10  libosmocodec0 libosmogsm-doc libosmosdr0 libosmocodec-doc libosmosdr-dev libosmocoding0 libosmocoding-doc libosmocore libosmocore11 libosmocore-dev libosmocore-doc libosmocore-utils libosmoctrl0 libosmoctrl-doc

毕竟,只需做: make和sudo make ais_rx ist就可以用于sudo了。

,但这并没有解决缺少的mpir包。CMake还在抱怨,但是gr-ais似乎现在起作用了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66215857

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档