# Header missing when compiling dial\_tone.cc

**URL:** <https://www.ruby-forum.com/t/header-missing-when-compiling-dial-tone-cc/220940>\
**Category:** GNU Radio\
**Created:** [June 25, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/header-missing-when-compiling-dial-tone-cc/220940 "2012-06-25T22:15:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 25, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/header-missing-when-compiling-dial-tone-cc/220940/1 "2012-06-25T22:15:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Daniel\_Labarowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@Daniel\_Labarowski](https://www.ruby-forum.com/u/Daniel_Labarowski)\
**Post date:** [June 25, 2012, 11:49pm UTC](https://www.ruby-forum.com/t/header-missing-when-compiling-dial-tone-cc/220940/2 "2012-06-25T23:49:00Z")

</div>

On Mon, Jun 25, 2012 at 4:14 PM, Daniel Labarowski  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![Daniel\_Labarowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@Daniel\_Labarowski](https://www.ruby-forum.com/u/Daniel_Labarowski)\
**Post date:** [June 26, 2012, 12:25am UTC](https://www.ruby-forum.com/t/header-missing-when-compiling-dial-tone-cc/220940/3 "2012-06-26T00:25:49Z")

</div>

On Mon, Jun 25, 2012 at 5:47 PM, Tom R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![Daniel\_Labarowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@Daniel\_Labarowski](https://www.ruby-forum.com/u/Daniel_Labarowski)\
**Post date:** [June 26, 2012, 12:47am UTC](https://www.ruby-forum.com/t/header-missing-when-compiling-dial-tone-cc/220940/4 "2012-06-26T00:47:27Z")

</div>

> 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

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.
