[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] swig gnuradio.i and ultra-cheap-sdr (RTL2832U) Go
Re: [Discuss-gnuradio] swig gnuradio.i and ultra-cheap-sdr (RTL2832U) Google Group
Sat, 21 Apr 2012 19:22:52 +1000
I have merged Alex's pull request (resolution of the 'gruel_common' issue in
gr-baz) on github, and committed that change to SVN too.
My thanks to Tom and Alex for formulating the fix.
PS: If anyone is experimenting with GNU Radio using their 'ultra-cheap'
RTL2832U-based DVB-T USB dongle, and would like to ask questions/post
results/etc specifically regarding the device, I have set up a Google Group
for this purpose:
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On Behalf Of
> Alexandru Csete
> Sent: Monday, 16 April 2012 5:37 AM
> To: address@hidden
> Subject: Re: [Discuss-gnuradio] swig gnuradio.i cannot find gruel_common.i
> in 3.6.0
> On Sun, Apr 15, 2012 at 8:45 PM, Tom Rondeau <address@hidden> wrote:
> > On Sun, Apr 15, 2012 at 12:48 PM, Alexandru Csete <address@hidden>
> >> On Tue, Apr 10, 2012 at 7:27 PM, Josh Blum <address@hidden> wrote:
> >>> On 04/10/2012 08:49 AM, Justin Ford wrote:
> >>> > I'm trying to build an existing tool against gnuradio 3.6.0
> >>> > (master branch 3.6.0git-7-g779d8c67). I'm getting the following
> >>> > error from make when gnuradio.i is included by swig:
> >>> > /usr/local/include/gnuradio/swig/gnuradio.i:28: Error: Unable to
> >>> > find 'gruel_common.i'
> >>> >
> >>> > I have attached gnuradio.i from my build, line 28 is trying to
> >>> > include gruel_common.i. I found gruel_common.i in
> >>> > /usr/local/include/gruel/swig/, but I think it's expected to be in
> >>> > /usr/local/include/gnuradio/swig/.
> >>> >
> >>> > Is this an issue with my build? Or does a change in the more
> >>> > recent master branch version require a patch to gnuradio.i?
> >>> >
> >>> This looks to be a recent change. The gruel swig stuff was moved to
> >>> a new install path include/gruel/swig.
> >>> > Should I just copy (or link) the contents of
> >>> > /usr/local/include/gruel/swig/ to
> >>> > /usr/local/include/gnuradio/swig/ as a workaround?
> >>> >
> >>> You should add this path to the swig search path for your application.
> >> Can someone please tell me how to do this for
> >> https://github.com/balint256/gr-baz
> >> I tried to modify Makefile.common updating swigincludedir but it has
> >> no effect :(
> >> Alex
> > The change was from commit aaa98c095a85724a8782a28717162c1d30d865c2.
> > Here's the relevant lines changed in Makefile.common to get this to
> > work. I'm not really sure why, buy swignincludedir is not the right
> > variable to manipulate here.
> > diff --git a/gr-howto-write-a-block/Makefile.common
> > b/gr-howto-write-a-block/Makefile.common
> > index fca6133..2b9cc75 100644
> > --- a/gr-howto-write-a-block/Makefile.common
> > +++ b/gr-howto-write-a-block/Makefile.common
> > @@ -56,7 +56,8 @@ STD_DEFINES_AND_INCLUDES = \
> > $(DEFINES) \
> > -I$(abs_top_srcdir)/lib \
> > -I$(GNURADIO_CORE_INCLUDEDIR) \
> > - -I$(GNURADIO_CORE_INCLUDEDIR)/swig
> > + -I$(GNURADIO_CORE_INCLUDEDIR)/swig \
> > + -I$(GRUEL_INCLUDEDIR)/gruel/swig
> Thanks Tom, that helped (together with adding the check for gruel in
> Discuss-gnuradio mailing list