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 2012-06-25 22:15
on 2012-06-25 23:49
On Mon, Jun 25, 2012 at 4:14 PM, Daniel Labarowski <labarowski.1@gmail.com> 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 2012-06-26 00:25
On Mon, Jun 25, 2012 at 5:47 PM, Tom Rondeau <tom@trondeau.com> 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
on 2012-06-26 00:47
> > > 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 Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.