argilo / gr-nrsc5

A GNU Radio implementation of HD Radio (NRSC-5)
GNU General Public License v3.0
129 stars 24 forks source link

Linking with non-standard install fails. #4

Closed drmpeg closed 6 years ago

drmpeg commented 6 years ago

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

argilo commented 6 years ago

Thanks for the bug report, @drmpeg! I made the suggested change in 1d61d8aafbd6180396d600d286152aa4cb46cd0f. Does it build properly for you now?

drmpeg commented 6 years ago

Wunderbar.