所以我一直在关注关于构建 OOT 的 gnuradio 教程。但是我在使用 boost 时遇到了麻烦,所以我遵循了一个解决方案,让我通过命令安装 boost 和 export:
export LD_LIBRARY_PATH=$BOOST_PREFIX/lib
我这样做了,但在运行 cmake 后遇到了另一个错误(如下)
$cmake ../
-- Build type not specified: defaulting to release.
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- checking for module 'gruel'
-- package 'gruel' not found
-- Could NOT find GRUEL (missing: GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)
-- checking for module 'gnuradio-core'
-- package 'gnuradio-core' not found
-- Could NOT find GNURADIO_CORE (missing: GNURADIO_CORE_LIBRARIES GNURADIO_CORE_INCLUDE_DIRS)
-- checking for module 'cppunit'
-- package 'cppunit' not found
-- Could NOT find CPPUNIT (missing: CPPUNIT_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:91 (message):
Gruel required to compile newblock
-- Configuring incomplete, errors occurred!
请谁能帮我解决这个问题并向 gnu radio 添加 block
最佳答案
您缺少 cppunit 开发 header ;请安装它们。
有关 Gruel 的错误表明您正在尝试使用为旧版本的 GNU Radio 制作的 OOT 模板。 Gruel 是旧版本 GNU Radio 的一部分,已被合并到 GNU Radio 的其他部分,不再可用。
生成模块的正确方法是使用 GNU Radio 附带的 gr_modtool
,它只会自动生成有效的 OOT。这在官方 Guided Tutorials 中有很好的记录。 ,gr_modtool nm my_module_name
,参见教程 3。
最好的问候, 马库斯
关于c++ - 编译myblock需要稀粥,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22071209/