Header missing when compiling dial_tone.cc

Hello,
After a bit of a struggle, I finally managed to compile the dial_tone.cc
example included with gnuradio. The issue I was having was that when
running cmake and then make, make would return “fatal error:
gr_top_block.h: No such file or directory”. I found the header it was
referring to in /usr/local/include/gnuradio/ and managed to get around
the
error by adding “include_directories(/usr/local/include/gnuradio)” to
CMakeLists.txt. This works but it seems like there has to be a better
way?
Is there a PATH that I can add this to or something of that sort?
CPPFLAGS
seemed promising but adding “export
CPPFLAGS=$CPPFLAGS:/usr/local/include/gnuradio/” to my bashrc does not
seem
to do anything. Also, I plan on writing some C++ flowgraphs in the near
future and was wondering how to determine which directories to include
in
the CMakeLists.txt file? The dial tone example has
${GR_AUDIO_INCLUDE_DIRS}
and ${GNURADIO_CORE_INCLUDE_DIRS}. Is there a list of such variables
that
correspond to certain header files, etc.? Thanks ahead of time!

-Dan

On Mon, Jun 25, 2012 at 4:14 PM, Daniel Labarowski
[email protected] wrote:

does not seem to do anything. Also, I plan on writing some C++ flowgraphs in
the near future and was wondering how to determine which directories to
include in the CMakeLists.txt file? The dial tone example has
${GR_AUDIO_INCLUDE_DIRS} and ${GNURADIO_CORE_INCLUDE_DIRS}. Is there a list
of such variables that correspond to certain header files, etc.? Thanks
ahead of time!

-Dan

Yes, that sounds like a problem. Probably a little bitrot on that
example. I’m sure it’s an easy fix, and I’ve put it on my todo list.

Thanks for reporting it.

Tom

On Mon, Jun 25, 2012 at 5:47 PM, Tom R. [email protected] wrote:

adding

include in the CMakeLists.txt file? The dial tone example has
Thanks for reporting it.

Tom

FYI, the build-gnuradio script seems to build the C++ and
python dial_tone examples.

Rick

FYI, the build-gnuradio script seems to build the C++ and
python dial_tone examples.

build-gnuradio does nothing special. It does the same “cmake … && make
&& sudo make install” that a user would do.


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium