Staging/libiio1 support - #37
Open
dNechita wants to merge 8 commits into
Open
Conversation
Signed-off-by: Dan <dan.nechita@analog.com>
Signed-off-by: Dan <dan.nechita@analog.com>
dNechita
force-pushed
the
staging/libiio1-support
branch
from
September 24, 2025 11:21
86ae1ae to
771212f
Compare
qemu is not supported and qemu-user-static needs to be installed instead. Based on this discussion: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087822 Disable Address Space Layout Randomization for the ppc64le, x390x, armv7/8 builds to pass. Signed-off-by: Andreea Andrisan <Andreea.Andrisan@analog.com>
There is no support of pytests fro libiio v1 meaning this step will fail. Until the propper support will be added we can disable this step. Signed-off-by: Andreea Andrisan <Andreea.Andrisan@analog.com>
The nameing of libiio.lib was changed to libiio1.lib Signed-off-by: Andreea Andrisan <Andreea.Andrisan@analog.com>
Libiio v1 uses _Generic feature which is supported starting from C11. Since Libiio is a dependency the libad9166-iio needs to update its requirements regarding the C standard. Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Windows doesn't use POSIX macros. The POSIX macros only affect Unix-like systems. Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Otherwise build will fail with errors like: C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\ ctype.h(241,5): warning C5105: macro expansion producing 'defined' has undefined behavior [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ winbase.h(9254,5): warning C5105: macro expansion producing 'defined' has undefined behavior [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(487,17): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\shared\ wtypes.h(745): message : in expansion of macro '_VARIANT_BOOL' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(487,17): error C2059: syntax error: '/' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(502,17): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\shared\ wtypes.h(745): message : in expansion of macro '_VARIANT_BOOL' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(502,17): error C2059: syntax error: '/' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(529,40): warning C4094: untagged 'struct' declared no symbols [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(530,17): error C2059: syntax error: '}' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(531,13): error C2059: syntax error: '}' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(533,9): error C2059: syntax error: '}' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(534,5): error C2059: syntax error: '}' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(665,16): error C2079: 'varDefaultValue' uses undefined struct 'tagVARIANT' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ oaidl.h(950,16): error C2079: 'varValue' uses undefined struct 'tagVARIANT' [D:\a\1\s\build\ad9166.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\ propidlbase.h(319,24): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token [D:\a\1\s\build\ad9166.vcxproj] Signed-off-by: Dan Nechita <dan.nechita@analog.com>
dNechita
force-pushed
the
staging/libiio1-support
branch
from
October 3, 2025 09:45
f2b324e to
6c5924c
Compare
dNechita
marked this pull request as ready for review
May 5, 2026 08:19
dNechita
requested review from
SRaus,
cristina-suteu and
mhennerich
as code owners
May 5, 2026 08:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Update the library, the tests and the cmake such that libad9166 builds with libiio v1.x
PR Type
PR Checklist