0

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?

  • Nothing I can see from here, sadly. You either need to rewrite the question or get lucky and find someone who was in your exact situation in the past. – NadavS Apr 03 '20 at 20:10
  • 2
    Impossible to say for sure with so little info. But one common problem is that you have not provided a sysroot for your cross compilation. – kaylum Apr 03 '20 at 20:52
  • I don't believe there's no existing package for Raspbian of this library. Why to compile at all? – 0andriy Apr 05 '20 at 08:58
  • I didn't actually fix the cross-compiling issue, I just downloaded the source directly on the raspberry pi and compiled it there natively without problems. – user3113027 Apr 09 '20 at 19:33

0 Answers0