2016-09-08 2 views
2

gnuradio 용 블록을 직접 설치하려고합니다. 이 (http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_C++) 자습서를 살펴 보겠습니다. 그러나 5 단계, 설치 중 일부 문제가 발생합니다.자신의 블록을 설치 한 후 Gnuradio 크래시가 발생했습니다.

나는 그것을 설치했다. 그러나 나는 gnuradio-companion의 Block을 보지 못했다.

수출 PYTHONPATH =/usr/지방/lib 디렉토리/python2.7/사이트 패키지/

수출 GRC_BLOCKS_PATH =/usr/지방/주/gnuradio/GRC/블록/

: 나는 경로를 추가

이제 블록을 볼 수 있습니다. 그러나 그것을 사용하려면 gnuradio-companion crash를 사용하십시오.

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

Gnuradio 버전 : 3.7.10.1

OS : OS X 엘 카피 탄이

는 어떤 문제가 될 수 있을까? 경로가 잘못되었거나 누락 되었습니까? 프로그램 오류?

/EDIT2 : 블록을 추가하려면, 파이썬에서 writen은 (튜토리얼 : http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python) 잘 작동

/편집 :

-- 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 
: 나는 그것을 설치할 때 내가 cmake를 사용할 때, 나는 많은 경고를 얻을
+0

일반적인 컴퓨팅 하드웨어 및 소프트웨어에 대한 질문은 프로그래밍에 주로 사용되는 도구가 직접 관련되어 있지 않으면 스택 오버플로에 대한 주제가 아닙니다. [Super User] (http://superuser.com/)에 대한 도움을 얻을 수 있습니다. –

답변

1

이것은 GNU 라디오와 모듈이 다른 파이썬 라이브러리에 링크되어있을 때 발생합니다.

OSX에는 일반적으로 시스템 설치가 있으며 Homebrew 또는 MacPorts의 시스템 설치가 있습니다. 모든 것을 Homebrew/MacPorts 라이브러리와 연결해보십시오.

/opt/local에 파이썬 설치가있는 것 같습니다. cmake을 사용하여 모듈을 다시 구성하고 PYTHON_LIBRARYPYTHON_INCLUDE_DIR을/opt에 설치하십시오.

+0

답변 해 주셔서 감사합니다! CMakeCache.txt에서 이것을 발견했습니다 : // 프로그램 경로. PYTHON_EXECUTABLE : FILEPATH =/opt/local/bin/python2.7 // 파일 경로. PYTHON_INCLUDE_DIR : PATH =/usr/include/python2.7 // 라이브러리 경로. PYTHON_LIBRARY : FILEPATH =/usr/lib/libpython2.7.dylib 이렇게 경로를 변경해야합니까? 그러나 나는 이것을 할 방법이 없다. – knuut

+0

파이썬에서 새 블록을 작성할 때 cmake와 같은 경고 메시지가 나타납니다.하지만 제대로 작동합니다. – knuut

+1

문제는 하나의 실행 파일에 여러 Python 라이브러리를 연결하는 것입니다. 그것은 C++의 문제입니다. 물론 파이썬 전용 블록에서는 발생하지 않습니다. cmake 프로젝트의 재구성을 쉽게하는 프론트 엔드가 여러 개 있습니다. – bastibl

관련 문제