Tuesday, September 15, 2020

Re: gr-osmosdr link error with target_link_libraries

I've been able to reproduce this. It happens with any OOT that links to
gnuradio-blocks.

I've added the patch to this pull request.

https://github.com/gnuradio/gnuradio/pull/3750

BTW, that pull request makes libsndfile1-dev a soft dependency. If it's
not available, the wavfile sink and source blocks are not included in
GNU Radio instead of the build failing.

Ron

On 9/14/20 15:29, Chris Gorman wrote:
> Hello All,
>
> Just a quick patch for gr-blocks/lib/CMakeLists.txt. I find without
> this patch the command passes sndfile::sndfile to the linker, which
> causes a gr-osmosdr build to fail. I am using a LFS-10.0 install and
> have libsndfile installed. I'm not sure this patch is necessary, but
> it fixes the error on my system.
>
> Please let me know if this should be fixed elsewhere, or if it causes
> any breakages.
>
> Chris

No comments:

Post a Comment