discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] swig gnuradio.i cannot find gruel_common.i in 3.6


From: Alexandru Csete
Subject: Re: [Discuss-gnuradio] swig gnuradio.i cannot find gruel_common.i in 3.6.0
Date: Sun, 15 Apr 2012 21:36:56 +0200

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> wrote:
>> 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
gr_standalone.m4).

Alex



reply via email to

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