Skip to content

Staging/libiio1 support - #37

Open
dNechita wants to merge 8 commits into
mainfrom
staging/libiio1-support
Open

Staging/libiio1 support#37
dNechita wants to merge 8 commits into
mainfrom
staging/libiio1-support

Conversation

@dNechita

Copy link
Copy Markdown
Contributor

PR Description

Update the library, the tests and the cmake such that libad9166 builds with libiio v1.x

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have followed the coding standards and guidelines
  • I have conducted a self-review of my own code changes
  • I have commented new code, particulary complex or unclear areas
  • I have built libad9166-iio and check no new warnings/errors were introduced
  • I have checked that my changes did not broke components that use libad9361-iio as dependency
  • I have updated the documentation accordingly (GitHub Pages, READMEs, etc)

Signed-off-by: Dan <dan.nechita@analog.com>
Signed-off-by: Dan <dan.nechita@analog.com>
@dNechita
dNechita force-pushed the staging/libiio1-support branch from 86ae1ae to 771212f Compare September 24, 2025 11:21
Andreea Andrisan and others added 6 commits October 2, 2025 12:25
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
dNechita force-pushed the staging/libiio1-support branch from f2b324e to 6c5924c Compare October 3, 2025 09:45
@dNechita
dNechita marked this pull request as ready for review May 5, 2026 08:19
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.

1 participant