On a regular source build (cmake, make, etc) with GNU Radio installed in a custom directory (in my case, /opt/gnuradio-3.7.12git), the linker fails with:
/usr/bin/ld: cannot find -lgnuradio-fec
This can be fixed by using set(GR_REQUIRED_COMPONENTS) instead of target_link_libraries().
On a regular source build (cmake, make, etc) with GNU Radio installed in a custom directory (in my case, /opt/gnuradio-3.7.12git), the linker fails with:
/usr/bin/ld: cannot find -lgnuradio-fec
This can be fixed by using set(GR_REQUIRED_COMPONENTS) instead of target_link_libraries().
In CMakelists.txt change:
set(GR_REQUIRED_COMPONENTS RUNTIME)
to:
set(GR_REQUIRED_COMPONENTS RUNTIME FEC)
and delete -lgnuradio-fec from lib/CMakelists.txt