Skip to content

Instantly share code, notes, and snippets.

@V0rt
Last active June 9, 2020 18:21
Show Gist options
  • Save V0rt/21b09fd280637dfa0e9cdb0f1e49df2e to your computer and use it in GitHub Desktop.
Save V0rt/21b09fd280637dfa0e9cdb0f1e49df2e to your computer and use it in GitHub Desktop.
Gnuradio dev env
sudo apt install gnuradio
sudo apt install cmake
sudo apt install swig
sudo apt install git
sudo apt install autoconf
sudo apt install libtool-bin
sudo apt install pkg-config

And some othet helpfull tools at https://www.blackhillsinfosec.com/intro-to-software-defined-radio-and-gsm-lte/

For Run Filter Design Tool in Gnu-Radio

sudo apt install python-qwt5-qt4

For include fft libraries

From: Marcus M?ller address@hidden

you use gr-fft in your code, but then don't tell your linker to link against that, which leaves your libgnuradio-comso missing the symbols from gr::fft, which breaks linking test-comso.

So what you need to do is edit your CMakeLists.txt in your module's root dir and replace

set(GR_REQUIRED_COMPONENTS RUNTIME)

by

set(GR_REQUIRED_COMPONENTS RUNTIME FFT)

which will add the necessary linker directives, usually. Then you will need to add ${GNURADIO_FFT_LIBRARY_DIRS}

to your link_directories(...)

further down. now, in your lib/ directory, edit the CMakeLists.txt and extend the target_link_libraries(...) directive with ${GNURADIO_FFT_LIBRARIES} and do the same for the test-<yourmoduletarget_link_libraries.

undefined reference to gr::fft::fft_complex::fft_complex(int, bool, int) undefined reference to gr::fft::fft_complex::execute()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment