-1

我试图按照OutOfTreeModulessquare_ff中给出的步骤为 GNU Radio创建一个树外模块。

命令后make test我得到一个错误。我输入ctest -V并得到以下结果。我是新来的。

manash@manash-Studio-1435:~/gr-howto/build$ ctest -V
UpdateCTestConfiguration  from :/home/manash/gr-howto/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/home/manash/gr-howto/build/DartConfiguration.tcl
Test project /home/manash/gr-howto/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: test_howto

1: Test command: /bin/sh "/home/manash/gr-howto/build/lib/test_howto_test.sh"
1: Test timeout computed to be: 9.99988e+06
1: 
1: 
1/2 Test #1: test_howto .......................   Passed    0.00 sec
test 2
    Start 2: qa_square_ff

2: Test command: /bin/sh "/home/manash/gr-howto/build/python/qa_square_ff_test.sh"
2: Test timeout computed to be: 9.99988e+06
2: Traceback (most recent call last):
2:   File "/home/manash/gr-howto/python/qa_square_ff.py", line 22, in <module>
2:     import howto_swig as howto
2:   File "/home/manash/gr-howto/build/swig/howto_swig.py", line 416, in <module>
2:     square_ff = square_ff.make;
2: AttributeError: 'function' object has no attribute 'make'
2/2 Test #2: qa_square_ff .....................***Failed    0.38 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) =   0.38 sec
.. 
4

1 回答 1

0

测试告诉你没有为你的'square_ff'找到'make'工厂函数。您是否使用整个 GNUradio 中使用的私有实现来实现您的代码,并创建了一个 square_ff::make() 工厂构造函数?

如果您不确定,请查看 GNURadio 或 Ettus Research UHD 软件中的其他模块,然后发布您自己的代码。

于 2013-08-18T20:33:15.040 回答