discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] playing nice with swig


From: David Carr
Subject: [Discuss-gnuradio] playing nice with swig
Date: Tue, 17 Aug 2004 14:44:14 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040815 MultiZilla/1.6.4.0b

I'm working on an AM demodulator using my gr_complex_mag block. Unfourtunately I don't think I have everything working with SWIG.
This is the error I get.

$ python am_demod_file.py 1
audio: using audio_oss
>>> gr_fir_scc: using SSE
>>> gr_fir_fff: using SSE
Traceback (most recent call last):
 File "am_demod_file.py", line 168, in ?
   main (sys.argv[1:])
 File "am_demod_file.py", line 145, in main
   fg = build_graph (IF_freq, None)
 File "am_demod_file.py", line 50, in build_graph
   complex_mag = gr.complex_mag()
AttributeError: 'module' object has no attribute 'complex_mag'

This line in am_demod_file.py causes the error:
complex_mag = gr.complex_mag()

My C++ code compiles.
Here is my gr_complex_mag.i:

GR_SWIG_BLOCK_MAGIC (gr, complex_mag)

gr_complex_mag_sptr gr_make_complex_mag ();

class gr_complex_mag : public gr_sync_block
{
 gr_complex_mag ();
};

I also added %include "gr_complex_mag.i" to general.i as well. I added "gr_complex_mag.cc" to libgeneral_la_SOURCES and "gr_complex_mag.h" to grinclude_HEADERS in Makefile.am

I did a make distclean, bootstrap.sh, configure, make and make install but no love.

-David Carr







reply via email to

[Prev in Thread] Current Thread [Next in Thread]