c++ - 编译myblock需要稀粥

标签 c++ cmake gnuradio

所以我一直在关注关于构建 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/

相关文章:

c++ - SDL2 不将在单独函数中创建的图像渲染到 SDL_RenderPresent (C++)

c++ - "&"与 "&&"实际上对编译时标志有影响吗?

qt - CMake 如何知道要使用哪个版本的 Qt?

gnuradio - 如何使用 PyBombs 安装特定的 gnuradio 版本?

c++ - 需要在 C++ 中找到两个 XML 文件之间的区别

c++ - 迭代结构;在 RichEdit 框中轻松显示结构字段和值

c++ - 尽管找到了系统范围的安装,但 cmake 和 make 仍无法找到本地 glm 安装

opencv - 如何使raspicam cmake与OpenCV安装一起使用

尝试安装 gr-osmosdr 时出现 CMake 错误

c++ - Gnuradio C++ block : high CPU