analogdevicesinc / libiio

A cross platform library for interfacing with local and remote Linux IIO devices
http://analogdevicesinc.github.io/libiio/
GNU Lesser General Public License v2.1
484 stars 313 forks source link

make error for zstd - libiio #1165

Closed Mas313 closed 3 months ago

Mas313 commented 4 months ago

Hi, Running make i get following error in iiod-client.c, although zstd is installed in /usr/lib/zstd (output of which zstd). I have also copied zstd.h in the libiio folder I have used following commands sudo apt-get install zstd sudo apt install libzstd-de

output of make

iiod-client.c:975:14: error: ‘ZSTD_CONTENTSIZE_UNKNOWN’ undeclared (first use in this function) if (len == ZSTD_CONTENTSIZE_UNKNOWN || ^ /home/masood/Downloads/libiio/iiod-client.c:975:14: note: each undeclared identifier is reported only once for each function it appears in /home/masood/Downloads/libiio/iiod-client.c:976:14: error: ‘ZSTD_CONTENTSIZE_ERROR’ undeclared (first use in this function) len == ZSTD_CONTENTSIZE_ERROR) { ^ /home/masood/Downloads/libiio/iiod-client.c: In function ‘iiod_client_create_context_private’: /home/masood/Downloads/libiio/iiod-client.c:1084:14: error: ‘ZSTD_CONTENTSIZE_UNKNOWN’ undeclared (first use in this function) if (len == ZSTD_CONTENTSIZE_UNKNOWN || ^ /home/masood/Downloads/libiio/iiod-client.c:1085:14: error: ‘ZSTD_CONTENTSIZE_ERROR’ undeclared (first use in this function) len == ZSTD_CONTENTSIZE_ERROR) {

Any suggestions

tfcollins commented 4 months ago

Can you provide more detail on your Linux distribution, commit used, and cmake arguments used?

tfcollins commented 3 months ago

No response closing.