Gnuradio вылетает после установки собственного блока

я пытаюсь установить собственный блок для gnuradio. Я прохожу через это (http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_C++) руководство. Но на Шаге 5, Установка, я получаю некоторые проблемы.

Я установил его, но я не видел блок в gnuradio-companion.
Я добавил путь:

export PYTHONPATH = / usr / local / lib / python2.7 / site-packages /

экспорт GRC_BLOCKS_PATH = / usr / local / share / gnuradio / grc / blocks /

Теперь я могу видеть Блок: Но если я хочу использовать его, сбой gnuradio-companion.

^[[A^[[BFatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

Gnuradio Версия: 3.7.10.1

ОС: OS X El Capitan

В чем может быть проблема? Неправильный / недостающий путь? Ошибка в программе?

/ edit2: чтобы добавить блок, написанный на python работает нормально (с учебником: http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python)

/ edit: при установке я получаю много предупреждений при использовании cmake:

-- Build type not specified: defaulting to release.
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   filesystem
--   system
Checking for GNU Radio Module: RUNTIME
* INCLUDES=/opt/local/include
* LIBS=/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib
GNURADIO_RUNTIME_FOUND = TRUE
CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "test-tutorialCPP".
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
lib/CMakeLists.txt:77 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Using install prefix: /usr/local
-- Building for version: v1.0-compat-xxx-xunknown / 1.0.0git
--
-- Checking for module SWIG
-- Found SWIG version 3.0.10.
CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target
"gnuradio-tutorialCPP".  Use the target name directly with
add_custom_command, or use the generator expression $<TARGET_FILE>, as
appropriate.

Call Stack (most recent call first):
python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target
"/opt/local/bin/python2.7".
Call Stack (most recent call first):
python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target
"/Users/abc/dev/gnuradio/modul/gr-tutorialCPP/python/qa_my_qpsk_demod_cb.py".
Call Stack (most recent call first):
python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/abc/dev/gnuradio/modul/gr-tutorialCPP/build

2

Решение

Это происходит, когда GNU Radio и ваш модуль связаны с разными библиотеками Python.

На OSX обычно есть системная установка и другая от Homebrew или MacPorts. Попробуйте связать все с библиотеками Homebrew / MacPorts.

Вы, кажется, установили Python в /opt/local, использование CMake перенастроить свой модуль и указать PYTHON_LIBRARY а также PYTHON_INCLUDE_DIR для установки в / опц.

1

Другие решения

Других решений пока нет …

По вопросам рекламы [email protected]