Never mind. I was basing my rad.i file on gr_file_source.i. However, gr_file_source.i is not stand-alone (unlike the *.i file in the howto). Instead, it is included in io.i.
So, I was missing some requisite SWIG file stuff. On Thu, 2006-05-11 at 16:07 -0400, Lee Patton wrote: > I successfully built the how-to-write-a-block example outside of > gnuradio-core. Now, I would like to implement my own version of > gr_file_source, and I was hoping to do it outside of gnuradio-core. > > As a first step, I copied gr_file_source.* from core into a directory > structure similar to that used in the howto, and then changed all > occurrences of gr_file* to rad_file* and made the appropriate (?) > changes to configure.ac and all the Makefile.am. > > However, on make, SWIG reports that it doesn't know anything about > gr_sync_block, which is inherited from rad_file_source. Here's what make > says: > > make all-recursive > make[1]: Entering directory `/home/pattonlk/grrad/radar' > Making all in config > make[2]: Entering directory `/home/pattonlk/grrad/radar/config' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/pattonlk/grrad/radar/config' > Making all in src > make[2]: Entering directory `/home/pattonlk/grrad/radar/src' > Making all in lib > make[3]: Entering directory `/home/pattonlk/grrad/radar/src/lib' > /gnuradio/gr/bin/swig -c++ -fvirtual -python -modern - > I/gnuradio/gr/include/gnuradio/swig -I/gnuradio/gr/include/gnuradio - > module rad -o rad.cc rad.i > rad.i:31: Error: Syntax error in input(1). > rad.i:35: Warning(401): Nothing known about base class 'gr_sync_block'. > Ignored. > make[3]: *** [rad.cc] Error 1 > make[3]: Leaving directory `/home/pattonlk/grrad/radar/src/lib' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/pattonlk/grrad/radar/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/pattonlk/grrad/radar' > make: *** [all] Error 2 > > > gr_sync_block.h is in /gnuradio/gr/include/gnuradio, which is in the > include path. Do I need a -L or something? Does anyone have any idea > what bone-headed thing I'm doing wrong? I've attached logs of configure > and make, along with my swig file. > > Thanks, > - Lee > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio