Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error for zstd - libiio #1165

Open
Mas313 opened this issue May 9, 2024 · 1 comment
Open

make error for zstd - libiio #1165

Mas313 opened this issue May 9, 2024 · 1 comment

Comments

@Mas313
Copy link

Mas313 commented May 9, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants