libiio icon indicating copy to clipboard operation
libiio copied to clipboard

Compilation crossroads

Open vvsvvsvvs opened this issue 1 year ago • 2 comments

The cmake compilation process adds 2 libraries: so.0 and so.1 with the same name (libiio.**). Ld(config) subsytems knows one: so.1, thus when linking old progs with -liio, one will get compilation errors with absent functions.

vvsvvsvvs avatar Jan 24 '24 15:01 vvsvvsvvs

The compiler will always pick libiio.so when compiling with -liio, which always point to the v1.0 library.

If you want to compile programs based on v0.x Libiio, you have to use Libiio v0.25 or from the libiio-v0 branch.

pcercuei avatar Jan 25 '24 09:01 pcercuei

1st time solution is to add /usr/lib/x86_64-linux-gnu/libiio.so.0 when linking. But some progs go to SIG11.

vvsvvsvvs avatar Feb 01 '24 12:02 vvsvvsvvs