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

Rgetz misc fixes - add libzstd to README_BUILD.md and don't allow WITH_IIOD_USBD=0 when WITH_AIO=1 #1095

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

rgetz
Copy link
Contributor

@rgetz rgetz commented Dec 7, 2023

This should fix #984 and #1045

rgetz added 2 commits December 4, 2023 14:12
In ./README_BUILD.md we keep track of Prerequisites, now for libiio 1.x

should resolve analogdevicesinc#1045

Signed-off-by: Robin Getz <rgetz@mathworks.com>
at cmake time, not at link time.

Turns this:
/usr/bin/ld: CMakeFiles/iiod.dir/iiod.c.o: in function `main':
/home/benja/git/libiio/iiod/iiod.c:531: undefined reference to `start_usb_daemon'
[100%] Built target iio_stresstest
collect2: error: ld returned 1 exit status
make[2]: *** [iiod/CMakeFiles/iiod.dir/build.make:227: iiod/iiod] Error 1
make[1]: *** [CMakeFiles/Makefile2:466: iiod/CMakeFiles/iiod.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target iio_attr
make: *** [Makefile:136: all] Error 2

into this:
CMake Error at iiod/CMakeLists.txt:72 (message):
  Sorry, USB support in iiod (WITH_IIOD_USBD) requires async I/O support
  (WITH_AIO)

should resolve analogdevicesinc#984

Signed-off-by: Robin Getz <rgetz@mathworks.com>
@rgetz rgetz changed the title Rgetz misc fixes - add libzstd to README_BUILD.md and don't allow WITH_IIOD_USBD=0 when WITH_AIO=0 Rgetz misc fixes - add libzstd to README_BUILD.md and don't allow WITH_IIOD_USBD=0 when WITH_AIO=1 Dec 7, 2023
@pcercuei pcercuei self-requested a review December 7, 2023 10:48
@pcercuei
Copy link
Contributor

pcercuei commented Dec 7, 2023

Technically libzstd is not a requirement. But I guess it makes sense to add it to the list of build dependencies since it's expected to be enabled by default.

@pcercuei pcercuei merged commit 4480422 into analogdevicesinc:main Dec 7, 2023
22 checks passed
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

Successfully merging this pull request may close these issues.

Libiio 1.0 does not compile with WITH_AIO=0 and WITH_IIOD_USBD=1
2 participants