[Top][All Lists]

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

[Discuss-gnuradio] New block outside of gnuradio-core

From: Lee Patton
Subject: [Discuss-gnuradio] New block outside of gnuradio-core
Date: Thu, 11 May 2006 16:07:34 -0400

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

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'.
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.

 - Lee

Attachment: log.conf
Description: Text document

Attachment: log.make
Description: Text document

Attachment: rad.i
Description: Text document

reply via email to

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