pothosware / SoapyPlutoSDR

Soapy SDR plugin for PlutoSDR
https://github.com/pothosware/SoapyPlutoSDR/wiki
GNU Lesser General Public License v2.1
53 stars 22 forks source link

Link against minor libiio soname version #36

Open FFY00 opened 3 years ago

FFY00 commented 3 years ago

It looks like the libiio API can change in minor soname bumps, so we should be linking against the minor soname version. Currently libad9361 is linking against libiio.so.0 but it should be linking against libiio.so.0.21.

zuckschwerdt commented 3 years ago

0.21 seems to be the latest version. Are there API or ABI changes with current master?

guruofquality commented 3 years ago

The script for cmake above should be finding libiio.so which is also a symlink.

If developers do it right, you wont see an ABI issue because of the symlinks, but many times the ABI changes and the number does not get bumped. I would guess that libiio.so.0 has never seen an ABI increment. Therefore you have to recompile when the iio library is reinstalled.

FFY00 commented 3 years ago

Yes, that is exactly the issue. Because the libiio upstream does not provide proper ABI increments, I think soapyplutosdr should link to libiio.so.0.21 so that we do not see random hard to track crashes.

In Arch Linux we are rebuilding on every libiio update.