Swig gnuradio.i cannot find gruel_common.i

Hi,

I am experiencing the same problem as:

http://www.ruby-forum.com/topic/4040797#new

I am a newbie, and I am trying to build an OutofTree module that I have
inherited. The output when I run ‘make’ is attached.

Making the changes to Makefile.common as per:

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
    

Does not make any difference. Where is ‘GRUEL_INCLUDEDIR’ defined? If I
remove all of these lines completely from Makefile.common then I still
get the error:

“usr/include/gnuradio/swig/gnuradio.i:31 Error: Unable to find
‘gruel_common.i’”

I know this is looking in the wrong folder, but why is it still looking
in the wrong place - is there another file that overrides the
Makefile.common? This is the contents of the block’s directory.

aclocal.m4 config.h depcomp Makefile.am NEWS
AUTHORS config.h.in INSTALL Makefile.common
py-compile
autom4te.cache config.log install-sh Makefile.common~ python
bootstrap config.status lib Makefile.in README
build config.sub libtool Makefile.in~
README.hacking
ChangeLog configure ltmain.sh Makefile.swig stamp-h1
config configure.ac Makefile Makefile.swig.gen.t swig
config.guess COPYING Makefile~ missing
version.sh

I didn’t understand the user’s comment in:

http://www.ruby-forum.com/topic/4040797#new

where they said “Thanks Tom, that helped (together with adding the check
for gruel in gr_standalone.m4).”

Perhaps adding that check that would help me too?

Thanks.

David