1

按照此处的说明创建 OOT 模块 -

https://wiki.gnuradio.org/index.php/Guided_Tutorial_GNU_Radio_in_Python

The cmake etc all works fine -
`cmake ../
make
sudo make install
sudo ldconfig`

但是当我加载 GNURadio 时,模块并没有出现。这是 make install 的输出 -

`gnuradio@cjswin ~/gr-tutorial/build >> sudo make install
[ 66%] Built target pygen_python_98246
[ 66%] Built target pygen_apps_9a6dd
[100%] Built target doxygen_target
Install the project…
– Install configuration: “Release”
– Up-to-date: /home/gnuradio/pybombs/lib/cmake/tutorial/tutorialConfig.cmake
– Up-to-date: /home/gnuradio/pybombs/include/tutorial/api.h
– Up-to-date: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/init.py
– Up-to-date: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/multiply_py_ff.py
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/init.pyc
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/multiply_py_ff.pyc
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/init.pyo
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/multiply_py_ff.pyo
– Up-to-date: /home/gnuradio/pybombs/usr/share/gnuradio/grc/blocks/tutorial_multiply_py_ff.xml
– Up-to-date: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/indexpage.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/combine.xslt
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/namespacestd.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/api_8h.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/compound.xsd
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/index.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/index.xsd
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/dir_d44c64559bbebec7f509842c48db8b23.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/group__defs_8dox.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/group__block.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/dir_bebffc0fe021578eb5c034119e3e6a53.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/main__page_8dox.xml
– Up-to-date: /home/gnuradio/pybombs/share/doc/gr-tutorial/html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/files.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/jquery.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_s.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/dir_d44c64559bbebec7f509842c48db8b23.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/modules.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/folderopen.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtree.css
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_b.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/resize.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/group__defs_8dox.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/group__block.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/dir_bebffc0fe021578eb5c034119e3e6a53.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/dynsections.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/closed.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_h.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_a.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/open.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/bc_s.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/globals_defs.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/api_8h_source.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/files.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtreedata.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/api_8h.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/doxygen.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tabs.css
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/index.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/sync_on.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/nav_f.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/sync_off.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/globals.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtreeindex0.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/splitbar.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/nav_h.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtree.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/doxygen.css
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/folderclosed.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/nav_g.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/bdwn.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/doc.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/api_8h.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/main__page_8dox.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/modules.js`

其他一些论坛建议更改 config.conf 文件,所以我去了 -

/home/.gnuradio/config.conf and added in the following (looking at the make install above my xml file seems to be going somewhere totally different to where the other gnuradio xml files are)
`[grc]
local_blocks_path=/home/gnuradio/pybombs/usr/share/gnuradio/grc/blocks`

The other xml files are here - `/usr/share/gnuradio/grc/blocks`

I have also tried doing the cmake with a prefix to that location -

`cmake -DCMAKE_INSTALL_PREFIX=/usr/share/gnuradio …/`

但这也没有任何区别,当我在 GNURadio 中时,我仍然看不到该模块。

非常感谢任何帮助

4

2 回答 2

1

尝试在src您的 pybombs 前缀的文件夹中创建您的 OOT 模块,例如:当类型pybombs install gnuradio安装到~/pybombs/default/src/(在此示例中前缀名称为default)时,请尝试在此目录(~/pybombs/default/src/gr-your-OOT/)中创建您的 OOT 模块并继续像往常一样工作去做(这个选项对我有用......)

于 2021-04-03T00:39:02.953 回答
0

/home/.gnuradio/config.conf 并添加到以下内容(查看我的 xml 文件上方的 make install 似乎与其他 gnuradio xml 文件所在的位置完全不同)

[grc]
local_blocks_path=/home/gnuradio/pybombs/usr/share/gnuradio/grc/blocks

您需要编辑的文件是/home/gnuradio/.gnuradio/config.conf,您缺少一个子目录。

cmake -DCMAKE_INSTALL_PREFIX=/usr/share/gnuradio …/

在您的情况下,正确的安装前缀是/home/gnuradio/pybombs/而不是/usr/share/gnuradio/. 如果您确实希望将模块安装在/usr其中并阻止定义/usr/share/gnuradio/grc/blocks(我推荐这样做),那么前缀应该是/usr/(不带/share/gnuradio

于 2020-01-27T23:51:49.507 回答