Why is an included C-header not found when cross-compiling but well when not cc?

63 Views Asked by At

I'm trying to crossl-compile the IIO tools from the Linux kernel repository for a Raspberry Pi on a x64 Lubuntu machine, compiling the whole Raspbian kernel worked fine though. First I tested it on the x64 machine: ~/linux/tools$ make iio

Which worked fine. Next step adding some cross-compiler arguments: ~/linux/tools$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- iio

Now he can't find the file included in iio_event_monitor.c anymore. What I'm missing here?

0

There are 0 best solutions below