Post Go back to editing

Missing header file when adding libiio into yocto

Thread Summary

The user is unable to find the iio.h header file after adding libiio to their Yocto build, preventing them from using the library. The final answer suggests referencing the libiio_%25.bbappend recipe from the meta-adi-xilinx layer to resolve the issue.
AI Generated Content
Category: Software
Product Number: AD5242

Hi there,

I would like to use libiio to control iio devices from my application. I added the library into my yocto build and I can find it on my target board:

./usr/lib/libiio.so.0
./usr/lib/libiio.so.0.21
./var/lib/opkg/info/libiio0.list
./var/lib/opkg/info/libiio0.postinst
./var/lib/opkg/info/libiio0.control

But there is no iio.h file in 'usr/include/linux/iio' or any folder, so I can't use the library. Please help me out. Thank you!