I have an Ubuntu machine with petalinux 2019.1 installed and I managed to build a simple user application which does not use libiio (main.c that just prints hello world to stdout), and I managed to run this application on adrv9364's zynq processor
(meaning - I used the petalinux build system to build an image [BOOT.bin etc.] which contains that simple application).
When I tried to change that simple application to use libiio (include the iio.h header file for example) I've got an error that says "iio.h file not found" in the build process .
In order to solve this I tried to cross-compile libiio (from source I've cloned from git) but I failed (too many problems like missing LIBXML2 etc that I failed to solve too.).
So now, as I understand that cross compiling to zynq's arm is a very hard task, I want to ask two questions that might help me:
1. How do I make the petalinux build system to recognize/be aware of the libiio library? Is it even possible ?
2. How do I build such an application [that uses libiio] on the target device [ZYNQ's arm in my case]? I tried to find the answer here but it does not really explain how to do so....
My goal is to build a simple application like ad9361-iiostream.c [from libiio examples] and run it directly on the zynq device [meaning - using the local backend, I don't want it to run on host PC and use network/usb backend]
thanks a lot for your help here