Does anyone have an example CMakeLists.txt to build something very simple like
dial_tone.cc? I DON'T want to do this in the GR source tree, rather just have
simple ~/dial_tone containing the single *.cc and CmakeLists.txt. I have
learned enough c++ now to work through the guided tutorials, but the build
environment is still somewhat overwhelming, so I want to start basic and work
my way up.
I tried using the gr_modtool with adding a 'noblock' but that still wants to
treat the block it as a shared library.
I tried piecing a CMakeLists.txt together from the GR source tree, and while it
runs (i.e finds boost, cppunit, etc.) I'm still getting undefined reference
during compile (see below).
Thanks,
Lou
--
madengr@tesla[~/dialtone]$ cmake .
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- filesystem
-- system
Checking for GNU Radio Module: RUNTIME
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib64/libgnuradio-runtime.so
GNURADIO_RUNTIME_FOUND = TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/madengr/dialtone
madengr@tesla[~/dialtone]$ make
[ 50%] Linking CXX executable dialtone
CMakeFiles/dialtone.dir/dialtone.cc.o: In function `main':
dialtone.cc:(.text+0x40): undefined reference to
`gr::make_top_block(std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)'
Sent from iCloud
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio