Модули OOT не отображаются в GNURadio - PullRequest
0 голосов
/ 24 января 2020

Следуя приведенным здесь инструкциям, создайте модуль 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.

Очень ценю любую помощь

1 Ответ

0 голосов
/ 28 января 2020

/ home / .gnuradio / config.conf и добавил следующее (глядя на файл make install над моим xml файлом, кажется, что-то совершенно отличное от того, где находятся другие файлы 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)

...