「gr-howto-write-a-blockでコンパイル戦記」の編集履歴(バックアップ)一覧に戻る
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "howto.py", line 6, in <module> import _howto ImportError: ./_howto.so: undefined symbol: _Z19howto_make_print_ffv
deb http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu jaunty main restricted universe multiverse deb http://old-release.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse deb-src http://old-release.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
from gnuradio import gr, howto class my_top_block(gr.top_block): def __init__(self): gr.top_block.__init__(self) src_data = (-3, 4, -5.5, 2, 3, 1, 3, 4 ,5) src = gr.vector_source_f (src_data) sqr = howto.print_ff () dst = gr.vector_sink_f () self.connect (src, sqr) self.connect (sqr, dst) def main(): tb = my_top_block() my_top_block().run() if __name__=='__main__': try: main() except KeyboardInterrupt: pass
root@omori-desktop:/usr/share/gnuradio/examples/digital# python test_print_ff.py noutput_items = 8 in[0]=-3.000000, out[0]=-3.000000 in[1]=4.000000, out[1]=4.000000 in[2]=-5.500000, out[2]=-5.500000 in[3]=2.000000, out[3]=2.000000 in[4]=3.000000, out[4]=3.000000 in[5]=1.000000, out[5]=1.000000 in[6]=3.000000, out[6]=3.000000 in[7]=4.000000, out[7]=4.000000 noutput_items = 1 in[0]=5.000000, out[0]=5.000000